[PD] denormalized numbers bugfix in PD

Miller Puckette mpuckett at man104-1.ucsd.edu
Sun Sep 21 00:07:47 CEST 2003


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 at iem.at
> http://iem.at/cgi-bin/mailman/listinfo/pd-list




More information about the Pd-list mailing list