[libc-commits] [libc] [libc] Efficiently implement 'realloc' for AMDGPU devices (PR #145960)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Fri Jun 27 06:14:17 PDT 2025
================
@@ -550,5 +551,26 @@ void deallocate(void *ptr) {
release_slab(slab);
}
+void *reallocate(void *ptr, uint64_t size) {
----------------
jhuber6 wrote:
It's `size_t` in the interface to make the standard happy, but we just cast it to 64-bit immediately since that's what it is for the targets we support.
https://github.com/llvm/llvm-project/pull/145960
More information about the libc-commits
mailing list