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 /nlffi/releases/release-110.60/gen/endian-little.sml
ViewVC logotype

View of /nlffi/releases/release-110.60/gen/endian-little.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2215 - (download) (annotate)
Thu Nov 9 21:29:14 2006 UTC (12 years, 10 months ago) by blume
File size: 299 byte(s)
Release 110.60
(*
 * 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 EndianLittle = 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