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 #26660 is a reply to message #26648] Wed, 19 September 2001 22:02 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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. :-(

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[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 05:05:51 PDT 2025

Total time taken to generate the page: 0.72059 seconds