FLINT3.7.0-dev

fmpzi_mul, fmpzi_sqr

Synopsis#include <flint/fmpzi.h>
void fmpzi_mul(fmpzi_t res, const fmpzi_t x, const fmpzi_t y)source
void fmpzi_sqr(fmpzi_t res, const fmpzi_t x)source

Set res to xy, respectively x^2.

Single-word operands use two-word products. When all four parts are multiword, the product is computed by flint_mpn_mul_complex (or flint_mpn_sqr_complex), which uses three real multiplications in the Karatsuba manner or a joint transform for large operands; otherwise four fmpz multiplications are used (two for squaring, with special cases for purely real or imaginary input).

Cite this page

The FLINT team, “fmpzi_mul, fmpzi_sqr (fmpzi.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpzi/fmpzi_mul.html (generated 2026-10-20).