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 (\mathit{hi}, \mathit{lo}) to the two-limb product xy, respectively add xy to the two-limb (\mathit{hi}, \mathit{lo}) modulo B^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-10-20).