3 ms·
This is about as good as it gets for the concept, but lacks as a name. I propose boof. But actually there's two "natural" hardware implementations for this.
by klyrs 6y ago
This is about as good as it gets for the concept, but lacks as a name. I propose boof.
But actually there's two "natural" hardware implementations for this. First is like floating point with no sign bits (mantissa is positive or zero, exponent is negative). The other is fixed point, basically re-interpreting unsigned ints as being implicitly divided by 0xfff...f -- both have advantages and drawbacks. And then comes the operations. Multiplication is the only closed operation -- addition, subtraction and division need special cases: should they be clamped, or wrap around? Both, probably -- wrapping is useful for trig functions, for example.