Polly
22.0.0git
llvm-project
polly
lib
External
isl
mp_get_memory_functions.c
Go to the documentation of this file.
1
#include <gmp.h>
2
3
void
mp_get_memory_functions
(
4
void
*(**alloc_func_ptr) (
size_t
),
5
void
*(**realloc_func_ptr) (
void
*,
size_t
,
size_t
),
6
void
(**free_func_ptr) (
void
*,
size_t
))
7
{
8
if
(alloc_func_ptr)
9
*alloc_func_ptr = __gmp_allocate_func;
10
if
(realloc_func_ptr)
11
*realloc_func_ptr = __gmp_reallocate_func;
12
if
(free_func_ptr)
13
*free_func_ptr = __gmp_free_func;
14
}
mp_get_memory_functions
void mp_get_memory_functions(void *(**alloc_func_ptr)(size_t), void *(**realloc_func_ptr)(void *, size_t, size_t), void(**free_func_ptr)(void *, size_t))
Definition
mp_get_memory_functions.c:3
Generated on
for Polly by
1.14.0