medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit fa66016ebee1ce4b3c9d933f7acd72ea10acc228
parent b014733fe63019962e35fa7dafb0ff983ce38165
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed Sep 14 01:59:59 +0100

Align to 16 bytes by default so SIMD is easier

Diffstat:
memory_arena.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/memory_arena.h b/memory_arena.h @@ -26,7 +26,7 @@ struct MemoryArenaAutoCheckpoint { void memarena_init( MemoryArena * const arena, u8 * const memory, const size_t size ); -u8 * memarena_push_size( MemoryArena * const arena, const size_t size, const uptr alignment = sizeof( void * ) ); +u8 * memarena_push_size( MemoryArena * const arena, const size_t size, const uptr alignment = 16 ); #define memarena_push_type( arena, type, ... ) ( ( type * ) memarena_push_size( arena, sizeof( type ), ##__VA_ARGS__ ) ) #define memarena_push_many( arena, type, count, ... ) ( ( type * ) memarena_push_size( arena, sizeof( type ) * count, ##__VA_ARGS__ ) )