3 ms·
>Why do GCC/clang not have: __builtin_addition_would_overflow(a, b) But they do: https://news.ycombinator.com/item?id=11711608 https://news.ycombinator.com/ite
by Kristine1975 10y ago
>Why do GCC/clang not have: __builtin_addition_would_overflow(a, b)
But they do: https://news.ycombinator.com/item?id=11711608 https://news.ycombinator.com/item?id=11711608 :-)
- efaref 10y agoThe API for those is equally insane (they replace the arithmetic operation). See my sibling comment for a more reasonable proposal.