56 C and C++ Source-Level Optimizations Chapter 2
25112 Rev. 3.06 September 2005
Software Optimization Guide for AMD64 Processors
float t = f1 - f2;
if (FLOAT2INTCAST(t) <= 0)
if (f1 <= f2)
float t = f1 - f2;
if (FLOAT2INTCAST(t) > 0)
if (f1 > f2)
float t = f1 - f2;
f (FLOAT2UINTCAST(f) <= 0x80000000U)
if (f1 >= f2)
Table 5: Comparisons among Two Floats
Use this … Instead of this.