-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Eric Blake on 3/31/2008 1:22 PM: | | The trouble is that signbit(result) returns INT_MIN, | | while signbit(-0.0) returns 1. Both seem to be allowed, so | | how about this change? It solves the problem for me. | | Good catch. Yes, signbit is allowed to return any non-zero value when the | argument is negative,
Independent of your patch, should we raise this as a gcc bug, that when it does constant-folding optimization of signbit at compile-time (signbit(-0.0) => 1), it results in a different value than when the macro is used on a runtime value (signbit(result) => mask off all but the sign bit)? - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfxOzoACgkQ84KuGfSFAYDN0wCgu5Opy/M8E6DmKh1vkuH3lQP8 k/wAn2K9+Uw2KrpRkGJ6g3qLCwSx/grf =MuSE -----END PGP SIGNATURE-----