News for hackers. Stuff that matters.
Re:The Compiler Is Your Best Friend, Stop Lying to It by mark-r on Friday January 02, 2026 @09:03AM (#46464823)
Funny you should mention the floating point rounding mode, I actually had to fix a bug like that once. Our program worked fine, until you printed to an HP printer - then it crashed shortly after. It took forever to discover the cause - the printer driver was changing the floating point rounding mode and not restoring it. The fix was to set the mode to a known value each and every time after you printed something.
Re:The Compiler Is Your Best Friend, Stop Lying to It by cozzyd on Friday January 02, 2026 @06:08PM (#46470635)
That is amazingly devious. Well done HP.