2 ms·
int->float conversion, followed by extraction and unbiasing of the exponent, also works for log2 and is more portable.
by pklausler 5y ago
int->float conversion, followed by extraction and unbiasing of the exponent, also works for log2 and is more portable.
- failwhaleshark 5y agoI don't normally convert my ints to floats, but when I do, I *(float *)(&x). ;-) (or fild)