integer overflow: use compiler intrinsics if supported
gcc and clang support __builtin_add_overflow, use it whenever possible, falling back to our naive routines.
Showing
Please
register
or
sign in
to comment
gcc and clang support __builtin_add_overflow, use it whenever possible, falling back to our naive routines.