PreviousUpNext

15.4.13  src/app/c-glue-maker/endian-little.pkg


# Compiled by:
#     src/app/c-glue-maker/c-glue-maker.lib

# endian-little.pkg - 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)

package endian_little {

    fun shift (s:  Int,
               ib: Int,
               b:  Unt)
        =
        unt::from_int (ib - s) - b;
};


Comments and suggestions to: bugs@mythryl.org

PreviousUpNext