↧
Answer by chqrlie for Understanding bit-level float multiplication in C?
Your test is incorrect: ((float) 0X800001) converts the integer value 0x800001 to the closest float value, not to a float with the same bit representation. To check your results, you must perform type...
View ArticleUnderstanding bit-level float multiplication in C?
I tried to implement float_twice(float_bits x) in C, which multiplies x by 2 in bit-level. I compared the result of float_twice and the real float multiplication implemented in C, but found a...
View Article