mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
[zone] Alight zone allocations to 64 bytes
Since Ruamoko got vector types, zone's 8-byte alignment was no longer sufficient due to hardware-enforced alignment requirements of the underlying vector operations. Fixes #28.
This commit is contained in:
parent
2bb0f0c104
commit
4694ee693b
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ Z_TagMalloc (memzone_t *zone, size_t size, int tag)
|
|||
// of sufficient size
|
||||
size += sizeof (memblock_t); // account for size of block header
|
||||
size += 4; // space for memory trash tester
|
||||
size = (size + 7) & ~7; // align to 8-byte boundary
|
||||
size = (size + 63) & ~63; // align to 64-byte boundary
|
||||
|
||||
base = rover = zone->rover;
|
||||
start = base->prev;
|
||||
|
|
Loading…
Reference in a new issue