zlacker

[return to "The largest number representable in 64 bits"]
1. abcde6+Oc1[view] [source] 2026-02-02 23:51:27
>>tromp+(OP)
Hi guys, I've come up with a new 64 bit number representation where 0xFFFFFFFF is infinity. Hell you know what every value is just infinity.
◧◩
2. adrian+pl2[view] [source] 2026-02-03 09:03:37
>>abcde6+Oc1
Unfortunately, someone else had this idea before you.

Arithmetic operations with saturation for integers, either unsigned saturation or signed saturation, have been introduced in personal computers since Intel Pentium MMX (launched in January 1997). A few other CPUs and DSPs had such operations much earlier.

"Saturation" means that the highest representable number, e.g. 0xFFFFFFFF, is interpreted as positive infinity and all operations where it appears as an operand are defined accordingly.

While whatever CPU you have in your computer or smartphone certainly supports arithmetic with integer infinities, such operations are not available in the high-level programming languages. So in order to use them, you have to use assembly language, inline assembly language in a high-level language or compiler intrinsics that give access to the corresponding machine instructions.

◧◩◪
3. abcde6+US2[view] [source] 2026-02-03 13:10:36
>>adrian+pl2
I'll sue the bastards for retroactive copyright infringement.
[go to top]