dcleblanc / SafeInt

SafeInt is a class library for C++ that manages integer overflows.
MIT License
202 stars 37 forks source link

Implement 64bit multiplication in terms of efficient 64x64=int128. #26

Closed jaykrell closed 3 years ago

jaykrell commented 3 years ago

On AMD64, the exact same multiplication is done, at least in the full 64x64 case (probably same as 32x64 also).

Note that the "intrinsic" function names could be reused here, making the diff much smaller.

jaykrell commented 3 years ago

https://github.com/dcleblanc/SafeInt/issues/21

dcleblanc commented 3 years ago

This is fixed, though slightly differently, in fix/intrinsic branch. Please review, and I'll merge that branch into main.

dcleblanc commented 3 years ago

Closed as fixed