Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/ml-nlffi-lib/memory/mlrep-i32f64.sml
ViewVC logotype

View of /sml/trunk/src/ml-nlffi-lib/memory/mlrep-i32f64.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1029 - (download) (annotate)
Fri Jan 18 21:42:35 2002 UTC (18 years, 9 months ago) by blume
File size: 954 byte(s)
more FFI fiddling
(*
 * User-visible ML-side representation of certain primitive C types.
 *
 * x86/Sparc version (all ints: 32 bit, all floats: 64 bit)
 *
 *  (C) 2001, Lucent Technologies, Bell Labs
 *
 * author: Matthias Blume (blume@research.bell-labs.com)
 *)
structure MLRep = struct
    structure SChar = Int32
    structure UChar = Word32
    structure SInt = Int32
    structure UInt = Word32
    structure SShort = Int32
    structure UShort = Word32
    structure SLong = Int32
    structure ULong = Word32
    structure Float = Real
    structure Double = Real

    (* word-style bit-operations on integers... *)
    structure SCharBitops = IntBitOps
				(structure I = SChar structure W = UChar)
    structure SIntBitops = IntBitOps
			       (structure I = SInt structure W = UInt)
    structure SShortBitops = IntBitOps
				 (structure I = SShort structure W = UShort)
    structure SLongBitops = IntBitOps
				(structure I = SLong structure W = ULong)
end

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0