Re:Efficient Integer Overflow Checking in LLVM (2016)
by nly on Thursday September 24, 2020 @04:50AM
(#24576642)
Is this tongue in cheek? JavaScript numbers are floating point, are they not?
[ Parent
| on HN ]
Re:Efficient Integer Overflow Checking in LLVM (2016)
by titzer on Thursday September 24, 2020 @04:52AM
(#24576657)
No, JS engines optimize heavily for small integers (31 or 32 bits) and dynamically overflow into double range as necessary.
Re:Efficient Integer Overflow Checking in LLVM (2016)
by chrisseaton on Thursday September 24, 2020 @06:06AM
(#24577048)
They aren’t literally implemented as floating point in most cases. That’d be crazy! If the number fits in an integer then a sensible implementation uses an integer.