SML# Document Version 4.1.0
26.41 WORD
Provide primitive functions for unsigned integers.
signature WORD = sig eqtype word val * : word * word -> word val + : word * word -> word val - : word * word -> word val < : word * word -> bool val << : word * Word.word -> word val <= : word * word -> bool val > : word * word -> bool val >= : word * word -> bool val >> : word * Word.word -> word val andb : word * word -> word val compare : word * word -> order val div : word * word -> word val fmt : StringCvt.radix -> word -> string val fromInt : int -> word val fromLarge : LargeWord.word -> word val fromLargeInt : LargeInt.int -> word val fromLargeWord : LargeWord.word -> word val fromString : string -> word option val max : word * word -> word val min : word * word -> word val mod : word * word -> word val notb : word -> word val orb : word * word -> word val scan : StringCvt.radix -> (char, ’a) StringCvt.reader -> (word, ’a) StringCvt.reader val toInt : word -> int val toIntX : word -> int val toLarge : word -> LargeWord.word val toLargeInt : word -> LargeInt.int val toLargeIntX : word -> LargeInt.int val toLargeWord : word -> LargeWord.word val toLargeWordX : word -> LargeWord.word val toLargeX : word -> LargeWord.word val toString : word -> string val wordSize : int val xorb : word * word -> word val ~ : word -> word val ~>> : word * Word.word -> word end
Structures that implement the signature
-
•
Word : WORD
type word = word
Word32 is a structure replication of Word
-
•
Word64 : WORD
type word = word64
LargeWord is a structure replication of Word64
-
•
Word8 : WORD
type word = word8