slong
Synopsis
#include <flint/flint.h>slongA signed integer of FLINT_BITS bits, the same type as GMP's mp_limb_signed_t. It is used for lengths, indices, degrees, exponents and precisions, even when these are known to be nonnegative, and for small integer values. In function names, an slong argument is denoted by si, as in fmpz_add_si. It is printed with flint_printf using %wd or %{slong}.
Guides#
- Branch cuts (
acb) - Getting started with acb (
acb) - Using acb_hypgeom (
acb_hypgeom) - Taylor series of complex functions (
acb_poly) - Elementary functions (
arb) - Getting started with arb (
arb) - Getting started with arb_mat (
arb_mat) - Power series and Taylor expansions (
arb_poly) - Using dfloat (
dfloat) - Characters in the Conrey numbering (
dirichlet) - Building and printing expressions (
fexpr) - Multiplying integers and polynomials (
fft) - Arithmetic in transform space (
fft_small) - Where FLINT uses fft_small (
fft_small) - Getting started with fmpz (
fmpz) - The fmpz representation (
fmpz) - Exact linear algebra over the integers (
fmpz_mat) - Prime and composite moduli (
fmpz_mod_mat) - Getting started with fmpz_mpoly (
fmpz_mpoly) - Getting started with fmpz_poly (
fmpz_poly) - Getting started with finite fields (
fq_default) - Getting started with fq_nmod_mpoly (
fq_nmod_mpoly) - Getting started with generic rings (
gr) - Implementing a ring (
gr) - Getting started (
gr_dft) - Linear algebra over general and inexact rings (
gr_mat) - Two-word arithmetic with longlong.h (
longlong) - Portable vec4d code (
machine_vectors) - Computing with mp_real balls (
mp_real) - Getting started with nfloat (
nfloat) - Linear algebra modulo n (
nmod_mat) - Getting started with nmod_mpoly (
nmod_mpoly) - Getting started with nmod_poly (
nmod_poly) - Computing modulo a fixed polynomial (
nmod_poly) - Computing in the class group (
qfb) - Arithmetic in radix b^e (
radix) - Using the thread pool directly (
thread_pool)
Cite this page
The FLINT team, “slong (flint.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/flint/slong.html (generated 2026-10-20).
@misc{flint-doc-flint-slong,
author = {{The FLINT team}},
title = {{slong (flint.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/flint/slong.html},
note = {Generated 2026-10-20}
}