1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-01 13:21:13 +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; size_t size;
} BumpAllocator; } BumpAllocator;
char gGlobalBuffer[64 * 1024]; __attribute__((aligned(8))) char gGlobalBuffer[64 * 1024];
BumpAllocator gBumpAllocator = {.ptr = gGlobalBuffer, BumpAllocator gBumpAllocator = {.ptr = gGlobalBuffer,
.size = sizeof(gGlobalBuffer)}; .size = sizeof(gGlobalBuffer)};