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-nlffigen/endian-little.sml
ViewVC logotype

View of /sml/trunk/src/ml-nlffigen/endian-little.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 828 - (download) (annotate)
Fri May 11 18:32:07 2001 UTC (19 years ago) by blume
File size: 293 byte(s)
added new FFI code to repository
(*
 * endian-little.sml - How to get at a bit field on a "little endian" machine.
 *
 *  (C) 2001, Lucent Technologies, Bell Labs
 *
 * author: Matthias Blume (blume@research.bell-labs.com)
 *)
structure Endian = struct
    fun shift (s: int, ib: int, b: word) = Word.fromInt (ib - s) - b
end

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