You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you please review my approach for implementing GCC built-ins overflow checking in my code? I used "__builtin_add_overflow_p" for addition instead of "__builtin_add_overflow" due to the third argument requirement. For multiplication, I utilized a similar library for signed numbers, as I couldn't find one for unsigned numbers. I left subtraction unchanged since it uses addition checking internally. Lastly, I couldn't find a built-in function for division. Do you think this approach is appropriate, or do you have any suggestions for improvement?
See
librz/include/rz_types_overflow.h
See https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins.html
An example how Meson checks for those could be added: bbc5457
The text was updated successfully, but these errors were encountered: