comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Way to determine big/little endian?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Way to determine big/little endian? [message #26648] Thu, 20 September 2001 06:38 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
David Fanning <david@dfanning.com> writes:

> Craig Markwardt (craigmnet@cow.physics.wisc.edu) writes:
>
>> I use this code when I need to. It's pretty much the same as yours,
>> but I think mine is just a bit cuter :-).
>>
>> big_endian = (long(['01'xb,'02'xb,'03'xb,'04'xb],0,1))(0) EQ '01020304'xl
>
> Gosh, now I'm *really* embarrassed about my simple little
> contribution. I think I only had two sets of nested
> parentheses. :-(

Round blades! Round blades! :-) Actually I only had two sets of nested
parentheses as well. Sigh, I like your submission a little better.
It captures the essence of the test a little better.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: PV-WAVE Device Copy Memory Bug in WinNT
Next Topic: Re: wait loop

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 08:07:03 PDT 2025

Total time taken to generate the page: 0.01117 seconds