Xlinkers Home

A technical quip - long multiplication

Bookmark and Share

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);


User login

Affiliate sites

affiliate

Advertisments

affiliate

Recent Projects

Go to projects page