News for hackers. Stuff that matters.
Re:There Are Only Four Billion Floats–So Test Them All (2014) by JoeAltmaier on Friday February 10, 2023 @09:10AM (#34739753)
I remember being surprised when Intel released a Pentium chip that couldn't do floating point right. It would have been trivial to, I don't know, try dividing by 10 and then multiplying back and checking the answer. It couldn't do that.

At the time I was thinking, their test group could have tested every single mantissa over several operations exhaustively. Why didn't they? What excuse could they have had? It was a computer; they feel no pain when asked to do laborious repetitive tasks.

Re:There Are Only Four Billion Floats–So Test Them All (2014) by dragontamer on Friday February 10, 2023 @11:53PM (#34749716)
You'd think so, except no. Floating point operations are innately lossy and even non-associative, and non communative.

A+B+C does not equal B+C+A in floating point.

Re:There Are Only Four Billion Floats–So Test Them All (2014) by JoeAltmaier on Sunday February 12, 2023 @08:11AM (#34762549)
Which should happen in entirely predictable and orderly fashion. In fact, they should be testing for that too.