![]() ![]() |
![]() |
File: [Development] / JSOC / proj / flatfield / pzt_flat_IDL / is_ieee_big.pro
(download)
Revision: 1.1, Fri Feb 18 00:21:17 2011 UTC (12 years, 7 months ago) by richard Branch: MAIN CVS Tags: Ver_LATEST, Ver_9-5, Ver_9-41, Ver_9-4, Ver_9-3, Ver_9-2, Ver_9-1, Ver_9-0, Ver_8-8, Ver_8-7, Ver_8-6, Ver_8-5, Ver_8-4, Ver_8-3, Ver_8-2, Ver_8-12, Ver_8-11, Ver_8-10, Ver_8-1, Ver_8-0, Ver_7-1, Ver_7-0, Ver_6-4, Ver_6-3, Ver_6-2, Ver_6-1, Ver_6-0, Ver_5-14, Ver_5-13, HEAD IDL package for calculating pzt flatfields 2011.02.17 |
function is_ieee_big ;+ ; NAME: ; IS_IEEE_BIG ; PURPOSE: ; Determine if the current machine uses IEEE, big-endian numbers. ; EXPLANATION: ; (Big endian implies that byteorder XDR conversions are no-ops). ; CALLING SEQUENCE: ; flag = is_ieee_big() ; INPUT PARAMETERS: ; None ; RETURNS: ; 1 if the machine appears to be IEEE-compliant, 0 if not. ; COMMON BLOCKS: ; None. ; SIDE EFFECTS: ; None ; RESTRICTIONS: ; PROCEDURE: ; The first byte of the two-byte representation of 1 is examined. ; If it is zero, then the data is stored in big-endian order. ; MODIFICATION HISTORY: ; Written 15-April-1996 by T. McGlynn for use in MRDFITS. ; 13-jul-1997 jkf/acc - added calls to check_math to avoid ; underflow messages in V5.0 on Win32 (NT). ; Converted to IDL V5.0 W. Landsman September 1997 ; Follow RSI and just do a single test W. Landsman April 2003 ;- return, 1b - (byte(1,0,1))[0] end
Karen Tian |
Powered by ViewCVS 0.9.4 |