FLINT3.7.0-dev

_fmpz_sub_small

Synopsis#include <flint/fmpz_extras.h>
slong _fmpz_sub_small(const fmpz_t x, const fmpz_t y)source

Returns x - y as an slong when it can be represented cheaply: exactly if x and y are both inline or if |x - y| \le COEFF_MAX, and otherwise WORD_MAX or -WORD_MAX with the sign of x - y. The sign of the result is always correct, which suffices to compare exponents and to decide whether two floating-point numbers overlap.

Guides#

Cite this page

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