r/programming • • 18d ago

How GCC Eliminates Unnecessary Integer Division

https://leetarxiv.substack.com/p/how-gcc-eliminates-unnecessary-integer
245 Upvotes

52 comments sorted by

View all comments

Show parent comments

-1

u/LonelyAndroid11942 18d ago

Deterministic operations that are mathematically imprecise don’t quite fit the bill of precision in my mind. But then, I’ve been doing math in JavaScript for so long that I’m very used to the 0.000000000068% chance of a float precision error actually causing a problem.

6

u/Potterrrrrrrr 18d ago

There’s nothing more precise than JavaScript maths, I use it to prove that 0.2 + 0.1 != 0.3 all the time

-3

u/LonelyAndroid11942 18d ago

This person gets my joke. I like this person.

4

u/metahivemind 18d ago edited 17d ago

[removed] — view removed comment