Re: [PATCH] lib/string: Bring optimized memcmp from glibc

From: Linus Torvalds
Date: Wed Jul 21 2021 - 14:56:15 EST


On Wed, Jul 21, 2021 at 11:45 AM Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> - the code generation is actually quite good with both gcc and clang.

Side note: I only looked at whether the code looked good, I didn't
check whether it looked *correct*.

So caveat emptor. It looks trivially correct both on the source and
assembly level, but it's entirely untested, which probably means that
it has some stupid bug.

Linus