[libc] Remove special case for 8 and 16 bytes

They don't seem to gain much in real apps and its better to favor less branches and smaller code.
This commit is contained in:
Guillaume Chatelet 2020-09-15 20:48:08 +00:00
parent 7d26d6a1b0
commit c3fd2a50ba
2 changed files with 0 additions and 8 deletions

View File

@ -44,12 +44,8 @@ static void memcpy_impl(char *__restrict dst, const char *__restrict src,
return CopyBlock<4>(dst, src);
if (count < 8)
return CopyBlockOverlap<4>(dst, src, count);
if (count == 8)
return CopyBlock<8>(dst, src);
if (count < 16)
return CopyBlockOverlap<8>(dst, src, count);
if (count == 16)
return CopyBlock<16>(dst, src);
if (count < 32)
return CopyBlockOverlap<16>(dst, src, count);
if (count < 64)

View File

@ -59,12 +59,8 @@ static void memcpy_x86(char *__restrict dst, const char *__restrict src,
return CopyBlock<4>(dst, src);
if (count < 8)
return CopyBlockOverlap<4>(dst, src, count);
if (count == 8)
return CopyBlock<8>(dst, src);
if (count < 16)
return CopyBlockOverlap<8>(dst, src, count);
if (count == 16)
return CopyBlock<16>(dst, src);
if (count < 32)
return CopyBlockOverlap<16>(dst, src, count);
if (count < 64)