__flint_set_all_memory_functions, __flint_get_all_memory_functions
Synopsis
#include <flint/flint.h>void __flint_set_all_memory_functions(void * (* alloc_func)(size_t), void * (* calloc_func)(size_t, size_t), void * (* realloc_func)(void *, size_t), void (* free_func)(void *), void * (* aligned_alloc_func)(size_t, size_t), void (* aligned_free_func)(void *))sourcevoid __flint_get_all_memory_functions(void * (** alloc_func)(size_t), void * (** calloc_func)(size_t, size_t), void * (** realloc_func)(void *, size_t), void (** free_func)(void *), void * (** aligned_alloc_func)(size_t, size_t), void (** aligned_free_func)(void *))sourceAs __flint_set_memory_functions and __flint_get_memory_functions, including the functions behind flint_aligned_alloc and flint_aligned_free. aligned_alloc_func takes the alignment first and the size second.
Cite this page
The FLINT team, “__flint_set_all_memory_functions, __flint_get_all_memory_functions (flint.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/flint/__flint_set_all_memory_functions.html (generated 2026-10-20).
@misc{flint-doc-flint-flint-set-all-memory-functions,
author = {{The FLINT team}},
title = {{\_\_flint\_set\_all\_memory\_functions, \_\_flint\_get\_all\_memory\_functions (flint.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/flint/__flint_set_all_memory_functions.html},
note = {Generated 2026-10-20}
}