A technical quip - long multiplication
21
Jul
2009
Submitted by larry
How to multiply a 64-bit unsigned number by a 32-bit unsigned number into a 64-bit unsigned result:
#include
// (h,l) is the 64-bit operand
// a is the 32-bit operand
// result is in (h,l)
{ h, l } = mac(l, a, h*a, 0);
»
- larry's blog
- Login or register to post comments


