Would it be any difference in the outcome of a comparison between trivially comparing two always-positive floats and comparing them but after reinterpreting their binary representation as unsigned integers?
In other words, given variables float x,y;
that are known to be always positive or zero and knowing the ieee-754 standard for storing 32-bit floats, can I assume that this comparison:
float x,y;
...
if ( x < y ) {...}
is always equivalent to:
float x,y;
unsigned int uix, uiy;
...
uix = *(unsigned int*)&x;
uiy = *(unsigned int*)&y;
if ( uix < uiy ) {...}
?