FLINT3.7.0-dev

_mul, _madd

Synopsis#include <flint/crt_helpers.h>
void _mul(ulong * hi, ulong * lo, ulong y, ulong x)source
void _madd(ulong * hi, ulong * lo, ulong y, ulong x)source

Set (hi,lo)(\mathit{hi}, \mathit{lo}) to the two-limb product xyxy, respectively add xyxy to the two-limb (hi,lo)(\mathit{hi}, \mathit{lo}) modulo B2B^2. They use unsigned __int128 where available.

Cite this page

The FLINT team, “_mul, _madd (crt_helpers.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/crt_helpers/_mul.html (generated 2026-11-02).