yes but >> 8 is so much faster
You don’t divide a float by 256 by shifting it right eight bits; that would yield complete garbage. You subtract 8 from the exponent, then check if you got an underflow.
It's just multiplication. Floating multiply is extraordinarily fast.
Only in micro-benchmarks.
For real usage, today's CPUs are limited by memory bandwidth.
You don’t divide a float by 256 by shifting it right eight bits; that would yield complete garbage. You subtract 8 from the exponent, then check if you got an underflow.