ATOMIC_*() -- endian

From: Tim Newsham <newsham_at_nospam.org>
Date: Sat Sep 17 1994 - 21:16:05 PDT

the ATOMIC_INC() and ATOMIC_DEC() functions are currently
dependant on the machine being little endian. There are both
short (2 byte) and long (4 byte) values passed in. This is
fine for little endian machines where the low bytes are stored
first but on a big endian machine the type has to be known
ahead of time. The prototypes specified void * previously
which I changed to ushort *. There were a few values that
were being passed in as long values: cpu ticks, number of threads
and the statistics (if DEBUG is on) for malloc.

                                Tim N.
Received on Sat Sep 17 20:05:18 1994

This archive was generated by hypermail 2.1.8 : Thu Sep 22 2005 - 15:11:45 PDT