ulong
Synopsis
#include <flint/flint.h>ulongAn unsigned integer of FLINT_BITS bits, the same type as GMP's mp_limb_t. It is used for limbs of multiprecision integers, for residues modulo word-size moduli, and for other values that need the full word range. In function names, a ulong argument is denoted by ui, as in fmpz_add_ui. It is printed with flint_printf using %wu or %{ulong}.
Guides#
- Characteristics, derivatives and precision (
acb_theta) - Characters in the Conrey numbering (
dirichlet) - Arithmetic in transform space (
fft_small) - Where FLINT uses fft_small (
fft_small) - Canonical form and the fmpq interface (
fmpq) - Getting started with fmpz (
fmpz) - The fmpz representation (
fmpz) - Getting started with fmpz_mpoly (
fmpz_mpoly) - Getting started with generic rings (
gr) - Implementing a ring (
gr) - Getting started (
gr_dft) - Algorithms, complex mode and threads (
gr_dft) - Two-word arithmetic with longlong.h (
longlong) - Portable vec4d code (
machine_vectors) - Fixed-point kernels (
mp_real) - Using mpn_mod (
mpn_mod) - Basic arithmetic modulo n (
nmod) - Computing discrete logarithms (
nmod) - Using Montgomery arithmetic (
nmod) - Linear algebra modulo n (
nmod_mat) - Getting started with nmod_mpoly (
nmod_mpoly) - Getting started with nmod_poly (
nmod_poly) - Using qqbar (
qqbar) - Using the thread pool directly (
thread_pool)
Cite this page
The FLINT team, “ulong (flint.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/flint/ulong.html (generated 2026-10-20).
@misc{flint-doc-flint-ulong,
author = {{The FLINT team}},
title = {{ulong (flint.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/flint/ulong.html},
note = {Generated 2026-10-20}
}