1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-05 19:35:52 +03:00

Optimie x86-64 SSE4 memcmp for unaligned data.

This commit is contained in:
H.J. Lu
2010-04-14 17:53:44 -07:00
committed by Ulrich Drepper
parent 404a6e3201
commit dd37cd1a12
3 changed files with 380 additions and 6 deletions

View File

@@ -3168,6 +3168,10 @@ static Void_t* sYSMALLOc(nb, av) INTERNAL_SIZE_T nb; mstate av;
size = nb + mp_.top_pad + MINSIZE;
#define TWOM (2*1024*1024)
char *cur = (char*)MORECORE(0);
size = (char*)((size_t)(cur + size + TWOM - 1)&~(TWOM-1))-cur;
/*
If contiguous, we can subtract out existing space that we hope to
combine with new space. We add it back later only if