mirror of
https://github.com/FEX-Emu/xxHash.git
synced 2024-11-27 08:40:34 +00:00
enlarge initial allocation
to be able to move start forward to an aligned position.
This commit is contained in:
parent
8762a1d5f4
commit
47128513a9
2
xxhsum.c
2
xxhsum.c
@ -346,7 +346,7 @@ static int BMK_benchFiles(const char** fileNamesTable, int nbFiles, U32 specific
|
||||
|
||||
static int BMK_benchInternal(size_t keySize, int specificTest)
|
||||
{
|
||||
void* const buffer = calloc(keySize+3, 1);
|
||||
void* const buffer = calloc(keySize+16+3, 1);
|
||||
void* const alignedBuffer = ((char*)buffer+15) - (((size_t)((char*)buffer+15)) & 0xF); /* align on next 16 bytes */
|
||||
if(!buffer) {
|
||||
DISPLAY("\nError: not enough memory!\n");
|
||||
|
Loading…
Reference in New Issue
Block a user