Fix floating point comparisons for some hardware.

This is a patch being carried in the wfmath Debian packaging to fix a FTBFS on the PPC architecture due to test suite failure.