MLtonWord - MLton Standard ML Compiler (SML Compiler)

MLton MLTONWIKIVERSION | MLtonWord |
Home Index

    signature MLTON_WORD =
       sig
          type t

          val bswap: t -> t
          val rol: t * word -> t
          val ror: t * word -> t
       end

- `type t`
  the type of words. For `MLton.LargeWord` this is `LargeWord.word`, for `MLton.Word` this is `Word.word`, for `MLton.Word8` this is `Word8.word`, for `MLton.Word16` this is `Word16.word`, for `MLton.Word32` this is `Word32.word`, for `MLton.Word64` this is `Word64.word`.

- `bswap w`
  byte swap.

- `rol (w, w')`
  rotates left (circular).

- `ror (w, w')`
  rotates right (circular).

Last edited on 2008-02-20 15:28:17 by MatthewFluet.