Hacker News new | ask | show | jobs
by comrade1234 356 days ago
How does the OS still function with a basic bug like this?
4 comments

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)
The bug is for an exponent of 2. The base is -1.
They mean power of -1.
Most critical OS functionality will use integers, not floats. And I'd expect most programmers to write squaring a float as `x * x`.
There was an article some time ago where someone ran doom with progressively more incorrect value of pi
Due to how windows manage dependencies, you can have different versions of same library all the way back to windows xp days. It's not necessary other software on the computer will hit the bug on this version of library.
What critical OS functionality would this break?