Do denormal flags like Denormals-Are-Zero (DAZ) affect comparisons for equality?
问题 If I have 2 denormal floating point numbers with different bit patterns and compare them for equality, can the result be affected by the Denormals-Are-Zero flag, the Flush-to-Zero flag, or other flags on commonly used processors? Or do these flags only affect computation and not equality checks? 回答1: DAZ (Denormals Are Zero) affects reading input, so DAZ affects compares . All denormals are literally treated as -0.0 or +0.0 , according to their sign. FTZ (Flush To Zero) affects only writing