llvm-project
24828c8c - [libc] Efficiently implement `aligned_alloc` for AMDGPU (#146585)

Commit
75 days ago
[libc] Efficiently implement `aligned_alloc` for AMDGPU (#146585) Summary: This patch uses the actual allocator interface to implement `aligned_alloc`. We do this by simply rounding up the amount allocated. Because of how index calculation works, any offset within an allocated pointer will still map to the same chunk, so we can just adjust internally and it will free all the same.
Author
Parents
Loading