How to check for overflow when adding/multiplying numbers?

Dave P. dave287091 at gmail.com
Mon Dec 6 17:46:35 UTC 2021


I’m porting some C code which uses the gcc intrinsics to do a 
multiply/add with overflow checking. See 
[here](https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins.html) for reference. Is there a D equivalent?


More information about the Digitalmars-d-learn mailing list