mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 09:56:31 +00:00
refactor: move Arena and ArenaMem to memory_defs.h (#26240)
This commit is contained in:
@@ -577,7 +577,9 @@ void alloc_block(Arena *arena)
|
||||
|
||||
static size_t arena_align_offset(uint64_t off)
|
||||
{
|
||||
#define ARENA_ALIGN MAX(sizeof(void *), sizeof(double))
|
||||
return ((off + (ARENA_ALIGN - 1)) & ~(ARENA_ALIGN - 1));
|
||||
#undef ARENA_ALIGN
|
||||
}
|
||||
|
||||
/// @param arena if NULL, do a global allocation. caller must then free the value!
|
||||
|
Reference in New Issue
Block a user