FLINT3.7.0-dev

__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 *))source
void __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 *))source

As __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).