FLINT3.7.0-dev

fmpz_val2

Synopsis#include <flint/fmpz.h>
flint_bitcnt_t fmpz_val2(const fmpz_t x)source

Returns the exponent of the largest power of 2 dividing x (the number of trailing zero bits), and 0 for x = 0.

Cite this page

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