|
|
|
|
|
by shaggie76
22 days ago
|
|
While I'm a fan of unsigned (size_t mostly) there have been a few times when the tax for converting them to float was shockingly high: https://godbolt.org/z/96T4jTshc 1-2 instructions for signed vs 11 including a branch for unsigned. (in times like these I found casting to signed first preferable) |
|
Then to finish the conversion you subtract 2^52 and 2^(52 + 32) respectively from the halves and add them together.
Here CONST1 = [0x43300000, 0x45300000, 0, 0] and CONST2 = [0, 0x43300000, 0, 0x45300000].