1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-01 05:11:15 +02:00

Making sure global variable is 8B aligned as well

This commit is contained in:
Guillaume Chatelet
2019-11-12 16:53:04 +01:00
parent 0f2f60ab00
commit 7298eda2ff

View File

@ -50,7 +50,7 @@ typedef struct {
size_t size;
} BumpAllocator;
char gGlobalBuffer[64 * 1024];
__attribute__((aligned(8))) char gGlobalBuffer[64 * 1024];
BumpAllocator gBumpAllocator = {.ptr = gGlobalBuffer,
.size = sizeof(gGlobalBuffer)};