mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
follow same pattern with assuming memory alignment
This commit is contained in:
parent
4fc72f8112
commit
07e5f62cab
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue