yorick banner

Home

Manual

Packages

Global Index

Keywords

Quick Reference

functions in ieee.i - i

 
 
 
ieee


             ieee.i  
 
     native_align, native_fix, native_flt, native_flim, native_dlim  
       describe the binary formats of the native primitive numeric types  
     as_chars(x)      -- gets/sets bits of x as char array  
     ieee_test(x)     -- tests for ieee754 special values  
     ieee_set(x,what) -- sets ieee754 special values  
keyword,  defined at i/ieee.i   line 6  
 
 
 
ieee_set


             ieee_set, x, what  
 
     set X to ieee754 special value WHAT  
     X must be an array of float or double values  
       (note that X cannot be a scalar double value)  
     WHAT = 0  means leave unchanged  
     WHAT = 1  means set to Inf  
     WHAT = 2  means set to qNaN  
     WHAT = 3  means set to sNaN  
     WHAT = 4  means set to 0.0  
       negate WHAT to set the sign bit of X as well  
     WHAT may be an array conformable with X, in order to set only  
     some values of X  
     this routine is a no-op if this machine is not known to  
     support these ieee754 special values  
   Warning-- apparently there is no universal standard for what  
     constitutes signalling versus quiet NaN  
     on MIPS and HPPA architectures, qNaN and sNaN are reversed  
interpreted function, defined at i/ieee.i   line 408  
SEE ALSO: ieee_test,   as_chars  
 
 
 
ieee_test


             ieee_test(x)  
 
     return values:  
     0 if this is an ordinary number  
     -1 if this is -Inf  
     1 if this is Inf  
     2 if this is qNaN  
     3 if this is sNaN  
     4 if this is a denormal  
     5 if this is a denormal which will be treated as NaN  
   Warning-- apparently there is no universal standard for what  
     constitutes signalling versus quiet NaN  
     on MIPS and HPPA architectures, qNaN and sNaN are reversed  
interpreted function, defined at i/ieee.i   line 326  
SEE ALSO: ieee_set,   as_chars