diff --git a/client/deps/hardnested/hardnested_bf_core.c b/client/deps/hardnested/hardnested_bf_core.c index 0d4e680fb..64b0696aa 100644 --- a/client/deps/hardnested/hardnested_bf_core.c +++ b/client/deps/hardnested/hardnested_bf_core.c @@ -163,7 +163,8 @@ static void *malloc_bitslice(size_t x) { } #define free_bitslice(x) free(x) #else -#define malloc_bitslice(x) memalign(MAX_BITSLICES / 8, (x)) +//#define malloc_bitslice(x) memalign(MAX_BITSLICES / 8, (x)) +#define malloc_bitslice(x) __builtin_assume_aligned(memalign(MAX_BITSLICES / 8, (x)), MAX_BITSLICES / 8); #define free_bitslice(x) free(x) #endif diff --git a/client/deps/hardnested/hardnested_tables.c b/client/deps/hardnested/hardnested_tables.c index ce2f42cff..aade0c0cd 100644 --- a/client/deps/hardnested/hardnested_tables.c +++ b/client/deps/hardnested/hardnested_tables.c @@ -85,7 +85,8 @@ static void *malloc_bitarray(size_t x) { } #define free_bitarray(x) free(x) #else -#define malloc_bitarray(x) memalign(__BIGGEST_ALIGNMENT__, (x)) +//#define malloc_bitarray(x) memalign(__BIGGEST_ALIGNMENT__, (x)) +#define malloc_bitarray(x) __builtin_assume_aligned(memalign(__BIGGEST_ALIGNMENT__, (x)), __BIGGEST_ALIGNMENT__); #define free_bitarray(x) free(x) #endif