arf_complex_mul, arf_complex_mul_fallback
#include <flint/arf.h>int arf_complex_mul(arf_t e, arf_t f, const arf_t a, const arf_t b, const arf_t c, const arf_t d, slong prec, arf_rnd_t rnd)sourceint arf_complex_mul_fallback(arf_t e, arf_t f, const arf_t a, const arf_t b, const arf_t c, const arf_t d, slong prec, arf_rnd_t rnd)sourceSet with both parts correctly rounded. Bit 0 of the return value is the inexact flag of and bit 1 that of .
If one of is zero, the product is computed with two real multiplications and no additions, even if another component is infinite or NaN; special values follow from this rule. From 13 limbs of precision (up to 2000 limbs), for balanced parts of comparable magnitude, the complex high product (flint_mpn_mulhigh_n_complex) gives both parts within a few units of a guard limb, and the rounding is certified as in arf_mul. Otherwise arf_complex_mul forms the exact products and rounds and once each: when all four mantissas have at least 20 limbs and the exponents of the real and imaginary parts are within 64 bits of each other, with the exact complex product flint_mpn_mul_complex (Karatsuba's three products, or shared fft_small transforms), else with four real products. arf_complex_mul_fallback is the plain version with four products, kept for testing.
The FLINT team, “arf_complex_mul, arf_complex_mul_fallback (arf.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arf/arf_complex_mul.html (generated 2026-11-20).
@misc{flint-doc-arf-arf-complex-mul,
author = {{The FLINT team}},
title = {{arf\_complex\_mul, arf\_complex\_mul\_fallback (arf.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/arf/arf_complex_mul.html},
note = {Generated 2026-11-20}
}