MLton MLTONWIKIVERSION

MLtonWord

Home Index

    signature MLTON_WORD =
       sig
          type 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 2007-08-23 03:45:58 by MatthewFluet.