Overview  Index  Help 
Standard ML Basis Library

Word31Imp


structure Word31Imp : WORD =
struct
  structure W31 = InlineT.Word31
  structure LW = Word32
  type word = word
  val wordSize : int
  val toLargeWord : word -> LargeWord.word
  val toLargeWordX : word -> LargeWord.word
  val fromLargeWord : LargeWord.word -> word
  val toLargeInt : word -> LargeInt.int
  val toLargeIntX : word -> LargeInt.int
  val fromLargeInt : LargeInt.int -> word
  val toInt : word -> int
  val toIntX : word -> int
  val fromInt : int -> word
  val orb : word * word -> word
  val xorb : word * word -> word
  val andb : word * word -> word
  val notb : word -> word
  val * : word * word -> word
  val + : word * word -> word
  val - : word * word -> word
  val div : word * word -> word
  val mod : word * word -> word
  val << : word * Word.word -> word
  val >> : word * Word.word -> word
  val ~>> : word * Word.word -> word
  val compare : word * word -> order
  val > : word * word -> bool
  val >= : word * word -> bool
  val < : word * word -> bool
  val <= : word * word -> bool
  val min : word * word -> word
  val max : word * word -> word
  val fmt : StringCvt.radix -> word -> string
  val toString : word -> string
  val scan
      : StringCvt.radix ->
          (char, 'a) StringCvt.reader -> (word, 'a) StringCvt.reader
  val fromString : string -> word option
end

 
Type detail

word

type word = word

     
Value detail

wordSize

val wordSize : int


toLargeWord

val toLargeWord : word -> LargeWord.word


toLargeWordX

val toLargeWordX : word -> LargeWord.word


fromLargeWord

val fromLargeWord : LargeWord.word -> word


toLargeInt

val toLargeInt : word -> LargeInt.int


toLargeIntX

val toLargeIntX : word -> LargeInt.int


fromLargeInt

val fromLargeInt : LargeInt.int -> word


toInt

val toInt : word -> int


toIntX

val toIntX : word -> int


fromInt

val fromInt : int -> word


orb

val orb : word * word -> word


xorb

val xorb : word * word -> word


andb

val andb : word * word -> word


notb

val notb : word -> word


*

val * : word * word -> word


+

val + : word * word -> word


-

val - : word * word -> word


div

val div : word * word -> word


mod

val mod : word * word -> word


<<

val << : word * Word.word -> word


>>

val >> : word * Word.word -> word


~>>

val ~>> : word * Word.word -> word


compare

val compare : word * word -> order


>

val > : word * word -> bool


>=

val >= : word * word -> bool


<

val < : word * word -> bool


<=

val <= : word * word -> bool


min

val min : word * word -> word


max

val max : word * word -> word


fmt

val fmt : StringCvt.radix -> word -> string


toString

val toString : word -> string


scan

val scan
    : StringCvt.radix ->
        (char, 'a) StringCvt.reader -> (word, 'a) StringCvt.reader


fromString

val fromString : string -> word option

 


Overview  Index  Help 
Standard ML Basis Library

This document may be distributed freely over the internet as long as the copyright notice and license terms below are prominently displayed within every machine-readable copy.

Copyright © 2003 AT&T and Lucent Technologies. All rights reserved.

Permission is granted for internet users to make one paper copy for their own personal use. Further hardcopy reproduction is strictly prohibited. Permission to distribute the HTML document electronically on any medium other than the internet must be requested from the copyright holders by contacting the editors. Printed versions of the SML Basis Manual are available from Cambridge University Press. To order, please visit www.cup.org (North America) or www.cup.cam.ac.uk (outside North America).