thanks Olaf,
in essence, this is the test Pd uses too (just split in two), unfortunately, so gcc-3.3 does not like it either...
Krzysztof
Olaf Matthes wrote:
Krzysztof Czaja schrieb:
Does anybody know, how to modify it without a performance loss?
Here is what Max/MSP (Windows) uses:
#define IS_DENORM_FLOAT(v) ((((*(unsigned long *)&(v))&0x7f800000)==0)&&((v)!=0.f))
...
#define IS_NAN_FLOAT(v) (((*(unsigned long *)&(v))&0x7f800000)==0x7f800000)