From: m5@vail.tivoli.com (Mike McNally)
To: solovay@math.berkeley.edu (Robert M. Solovay)
Message Hash: 5eeddc5146f95881fd644b9f93e70f9e86e1e2ec0ab015152e4deb9da9886c9e
Message ID: <9402111342.AA09424@vail.tivoli.com>
Reply To: <199402110013.QAA08947@mail.netcom.com>
UTC Datetime: 1994-02-11 13:50:31 UTC
Raw Date: Fri, 11 Feb 94 05:50:31 PST
From: m5@vail.tivoli.com (Mike McNally)
Date: Fri, 11 Feb 94 05:50:31 PST
To: solovay@math.berkeley.edu (Robert M. Solovay)
Subject: Magic money not working bigendian
In-Reply-To: <199402110013.QAA08947@mail.netcom.com>
Message-ID: <9402111342.AA09424@vail.tivoli.com>
MIME-Version: 1.0
Content-Type: text/plain
Robert M. Solovay writes:
> Is there a simple way to find out if ones computer is big-endian or
> not? [Like a simple C program that one can compile and run to settle
> the question.]
Perhaps I can redeem myself by doing the cypherpunk thing and writing
code:
int isBigEndian()
{
int test = 0;
char *testP = (char *) &test;
*testP = 0xff;
return !(test & 0xff);
}
--
| GOOD TIME FOR MOVIE - GOING ||| Mike McNally <m5@tivoli.com> |
| TAKE TWA TO CAIRO. ||| Tivoli Systems, Austin, TX: |
| (actual fortune cookie) ||| "Like A Little Bit of Semi-Heaven" |
Return to February 1994
Return to “solovay@math.berkeley.edu (Robert M. Solovay)”