[PD] denormalized numbers bugfix in PD
Krzysztof Czaja
czaja at chopin.edu.pl
Fri Sep 19 13:55:34 CEST 2003
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)
More information about the Pd-list
mailing list