How to check for overflow when adding/multiplying numbers?

Ola Fosheim Grøstad ola.fosheim.grostad at
Mon Dec 6 18:38:37 UTC 2021

On Monday, 6 December 2021 at 17:46:35 UTC, Dave P. wrote:
> I’m porting some C code which uses the gcc intrinsics to do a 
> multiply/add with overflow checking. See 
> [here]( for reference. Is there a D equivalent?

There is:

I have never used it, so I don't know how well it performs.

More information about the Digitalmars-d-learn mailing list