Endian check for a Mac - help requested
Avi Bryant
avi at beta4.com
Tue Sep 28 22:53:45 UTC 2004
On Sep 29, 2004, at 12:48 AM, David T. Lewis wrote:
>
> Could somebody with a Mac (big endian machine) please evaluate the
> following
> and let me know what you get? I'm trying to finalize a FloatTest and
> want to
> make sure it's going to work on little endian and big endian boxes.
>
> { SmalltalkImage current endianness . Float nan at: 1 . Float nan
> at: 2 }
>
> On a little endian box, I get:
>
> #(#little 4294443008 0)
I get:
#(#big 2146959360 0)
Avi
More information about the Squeak-dev
mailing list
|