Formatting/Comments of new allocation proxies

This commit is contained in:
Simon Maertens
2026-08-05 16:28:57 +01:00
parent aa622d1183
commit f556d04306
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -45,11 +45,11 @@ extern "C" {
/** \brief Allocate through the installed allocator (malloc by default). */
void *LAPACKE_malloc_proxy(size_t size);
/** \brief Release through the installed deallocator (free by default). */
void LAPACKE_free_proxy(void *ptr);
/** \brief Install a custom allocator: malloc_fn / free_fn must form a
* matching pair; NULL restores the defaults. Mutates global state and is
* not thread-safe. */
/** \brief Install a custom allocator for LAPACKE-internal allocations. */
void LAPACKE_set_alloc(void *(*malloc_fn)(size_t), void (*free_fn)(void *));
#ifndef LAPACKE_malloc
+2 -2
View File
@@ -16,7 +16,7 @@ static void *(*lapacke_malloc_fn)(size_t) = malloc;
static void (*lapacke_free_fn)(void *) = free;
/**
* \brief Allocate memory through the installed allocator.
* \brief Allocate through the installed allocator (malloc by default).
*
* Default of the LAPACKE_malloc macro.
*
@@ -29,7 +29,7 @@ void *LAPACKE_malloc_proxy(size_t size)
}
/**
* \brief Release memory through the installed deallocator.
* \brief Release through the installed deallocator (free by default).
*
* Default of the LAPACKE_free macro.
*