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

Home » Public Forums » archive » Re: Determining machine endian-ness
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: Determining machine endian-ness [message #12140 is a reply to message #12129] Thu, 02 July 1998 00:00 Go to previous messageGo to previous message
menakkis is currently offline  menakkis
Messages: 37
Registered: June 1998
Member
Mark Rivers (rivers@cars3.uchicago.edu) asked:
>> Is there a way to determine whether the machine on which IDL is executing is
>> big endian or little endian?

And David Fanning (davidf@dfanning.com) replied:
> I see in the IDL 5.1 on-line help that there are keywords
> SWAP_IF_BIG_ENDIAN and SWAP_IF_LITTLE_ENDIAN to the
> BYTEORDER procedure that allow conditional byte ordering depending
> upon the "endianness" of the machine IDL is running on. Sounds
> like just the ticket. :-)

Even more conveniently, in IDL 5.1 the OPEN routine (now) takes keywords
SWAP_ENDIAN, SWAP_IF_LITTLE_ENDIAN and SWAP_IF_BIG_ENDIAN. These pertain to
the computer running IDL, not the file. Presumably they make READU/WRITEU
(and ASSOC?) smart about byte reordering. Anyone tried them yet?


Cheers
Peter Mason

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Important object lesson
Next Topic: Re: Using ASSOC function

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

Current Time: Fri Oct 17 23:54:25 PDT 2025

Total time taken to generate the page: 2.64060 seconds