[libc] Align to 32B instead of 16B for optimized memcmp

This commit is contained in:
Guillaume Chatelet 2021-08-20 13:09:35 +00:00
parent d52f506192
commit 791d88f35f
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ static int memcmp_impl(const char *lhs, const char *rhs, size_t count) {
return ThreeWayCompare<HeadTail<_32>>(lhs, rhs, count);
if (count <= 128)
return ThreeWayCompare<HeadTail<_64>>(lhs, rhs, count);
return ThreeWayCompare<Align<_16>::Then<Loop<_32>>>(lhs, rhs, count);
return ThreeWayCompare<Align<_32>::Then<Loop<_32>>>(lhs, rhs, count);
}
LLVM_LIBC_FUNCTION(int, memcmp,