Talk:Ieee arithmetic

Revision as of 23:50, 2 February 2010 by Alexander Kogtenkov (Talk | contribs) (Added a note to use macros instead of functions)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Most probably C compilers inline functions, but just to be sure, I'd convert them into the macros:

#define to_raw_bits(d) *((EIF_NATURAL_64*)&(d))
 
#define eif_is_nan_bits(value) ((value & ~RTU64C(0x8000000000000000)) > RTU64C(0x7ff0000000000000))
 
#define eif_is_nan(v) ((*((EIF_NATURAL_64 *)&(v)) & ~RTU64C(0x8000000000000000)) > RTU64C(0x7ff0000000000000))

Does it affect the benchmarks?