Martin Spott wrote: > If there's no suitable replacement for 'finite' then I'd suggest the > following patch:
Alternatively we can just use something like the following (untested) code. All modern CPUs (and certainly all the ones we support) use IEEE format for their floating point values. int finite(double d) { int exp = ((*(uint64_t*)&d) >> 52) & 0x7ff; return (exp != 0x7ff) && (exp != 0); } Andy _______________________________________________ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d