|
In your memory allocator, what is the purpose or meaning behind getting the memory_arena aligned? |
Answered by
bagaffey
Sep 13, 2025
Replies: 1 comment
|
This is done so that memory is properly aligned -- that means that the memory falls within power of 2 boundaries. That makes it easier to compute. |
0 replies
Answer selected by
btgvesta
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is done so that memory is properly aligned -- that means that the memory falls within power of 2 boundaries. That makes it easier to compute.
The point of this is to ensure that the next block of memory is properly aligned. Some SIMD intrinsics require aligned addresses.