Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

DSIWsMulMod

procedure DSIWsMulMod(const aDst, aX, aY, aM, aProd, aQuot: iDSInteger);
aDst := (aX * aY) mod aM without allocation. Requirements: aX,aY >= 0 and less than aM; aM.MSB is a multiple of 64; aProd is a double-width product scratch; aQuot is a quotient scratch. aDst may alias aX or aY.