3 ms·
I don’t think there is much systems code that needs an exponent of -1, maybe none that needs exponents at all (aside from 2^n, which has opcodes, not C function
by vermilingua 1y ago
I don’t think there is much systems code that needs an exponent of -1, maybe none that needs exponents at all (aside from 2^n, which has opcodes, not C functions)
- terminalbraid 1y agoThe bug is for an exponent of 2. The base is -1.
- Dylan16807 1y agoThey mean power of -1.
- CodesInChaos 1y agoMost critical OS functionality will use integers, not floats. And I'd expect most programmers to write squaring a float as `x * x`.