OK, I read a bit further and found on the LAD group that I have to invoke "-fno-strict-aliasing" to make this test (and ones like it) work correctly. This may also slow the code down slightly; I'll check that.
cheers Miller
On Fri, Sep 19, 2003 at 01:55:34PM +0200, Krzysztof Czaja wrote:
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)
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list