diff options
author | Dylan Baker <[email protected]> | 2018-09-12 16:26:38 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2020-04-21 11:09:03 -0700 |
commit | bb560f2d653dd5d080c7f03859936ce50bea5b72 (patch) | |
tree | ff08455bd067485b901520f8e1ec84b7c2b41e81 /src/util/os_memory.h | |
parent | b85775900d084e3d27f269c3bd336b9aa356b98d (diff) |
util: Add an aligned realloc function
Mesa has one of these in imports.h, so u_memory needs one as well. This
is the version from mesa ported.
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3024>
Diffstat (limited to 'src/util/os_memory.h')
-rw-r--r-- | src/util/os_memory.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/os_memory.h b/src/util/os_memory.h index 7a67e440dee..bfb70815118 100644 --- a/src/util/os_memory.h +++ b/src/util/os_memory.h @@ -60,6 +60,9 @@ os_malloc_aligned(size_t size, size_t alignment); void os_free_aligned(void *ptr); +void * +os_realloc_aligned(void *ptr, size_t oldsize, size_t newsize, size_t alignemnt); + #ifdef __cplusplus } #endif |