flint_cleanup
Synopsis
#include <flint/flint.h>void flint_cleanup(void)sourceFrees the data cached by the current thread: calls the registered cleanup functions (and forgets them), frees MPFR's caches and returns the memory of the fmpz reuse pool. It does not touch the global shared caches, which other threads may be reading, or the thread pool. In a build with --enable-reentrant and without thread-local storage it does nothing.
Guides#
- Branch cuts (
acb) - Getting started with acb (
acb) - Using acb_hypgeom (
acb_hypgeom) - Elementary functions (
arb) - Getting started with arb (
arb) - Using the floating-point wrappers (
arb_fpwrap) - Where FLINT uses fft_small (
fft_small) - The fmpz representation (
fmpz)
Cite this page
The FLINT team, “flint_cleanup (flint.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/flint/flint_cleanup.html (generated 2026-10-20).
@misc{flint-doc-flint-flint-cleanup,
author = {{The FLINT team}},
title = {{flint\_cleanup (flint.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/flint/flint_cleanup.html},
note = {Generated 2026-10-20}
}