am i right suspecting that only the first half of the PD_BADFLOAT macro is optimized away? (because otherwise the optimizer were buggy, weren't it?) Then, there's another possibility to test for almost denormals, suggested on the musicdsp site:
#define IS_ALMOST_DENORMAL(f) (fabs(f) < 3.e-34)
well, isn't this, what the PD_BADFLOAT is doing?
cheers ... tim