2 * 2007 Matthew
Fluet (mfluet@acm
.org
)
3 * Adapted for MLton
. Make use
of $
(SML_LIB
)/basis
/c
-types
.mlb
4 * 2005 Matthew
Fluet (mfluet@acm
.org
)
10 * User
-visible ML
-side representation
of certain primitive C types
.
11 * x86
/Sparc
/PPC
version (all ints
: 32 bit
, all floats
: 64 bit
)
13 * Copyright (c
) 2004 by The Fellowship
of SML
/NJ
15 * Author
: Matthias
Blume (blume@tti
-c
.org
)
17 structure MLRep
= struct
20 structure Signed
= C_SChar
21 structure Unsigned
= C_UChar
22 (* word-style bit
-operations on integers
... *)
23 structure SignedBitops
= IntBitOps(structure I
= Signed
24 structure W
= Unsigned
)
28 structure Signed
= C_SShort
29 structure Unsigned
= C_UShort
30 (* word-style bit
-operations on integers
... *)
31 structure SignedBitops
= IntBitOps(structure I
= Signed
32 structure W
= Unsigned
)
36 structure Signed
= C_SInt
37 structure Unsigned
= C_UInt
38 (* word-style bit
-operations on integers
... *)
39 structure SignedBitops
= IntBitOps(structure I
= Signed
40 structure W
= Unsigned
)
44 structure Signed
= C_SLong
45 structure Unsigned
= C_ULong
46 (* word-style bit
-operations on integers
... *)
47 structure SignedBitops
= IntBitOps(structure I
= Signed
48 structure W
= Unsigned
)
52 structure Signed
= C_SLongLong
53 structure Unsigned
= C_ULongLong
54 (* word-style bit
-operations on integers
... *)
55 structure SignedBitops
= IntBitOps(structure I
= Signed
56 structure W
= Unsigned
)
58 structure Float
= C_Float
59 structure Double
= C_Double