util: Add an aligned realloc function
authorDylan Baker <dylan@pnwbakers.com>
Wed, 12 Sep 2018 23:26:38 +0000 (16:26 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 21 Apr 2020 18:09:03 +0000 (11:09 -0700)
commitbb560f2d653dd5d080c7f03859936ce50bea5b72
treeff08455bd067485b901520f8e1ec84b7c2b41e81
parentb85775900d084e3d27f269c3bd336b9aa356b98d
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 <marek.olsak@amd.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3024>
src/util/os_memory.h
src/util/os_memory_aligned.h
src/util/os_memory_stdc.h
src/util/u_memory.h