Re:Binary search with confidence
by mark-r on Monday March 07, 2022 @11:12AM
(#30589508)
The processors I've used all have an overflow flag that will tell you if an addition result exceeded the size of the register. But I'm not aware of any compilers that will use the flag, because it adds overhead that isn't wanted or needed 99.99% of the time.
[ Parent
| on HN ]
There are no comments on this comment yet.