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:
@ -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)};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user