Re:Solutions to Integer Overflow
by douchescript on Saturday September 03, 2016 @03:10PM
(#12420590)
There's always the overflow flag in the cpu, I don't get why it's not readily available in C when needed.
[ Parent
| on HN ]
Indeed, strange. There are also other flags for floating point exceptions, but I have never heard about anyone actually using them. I'd like to have a look at language that supports these flags - do you know any?
Re:Solutions to Integer Overflow
by douchescript on Monday September 05, 2016 @06:58PM
(#12432662)
The compilers have it, google __builtin_add_overflow as an example.