Re: strings

From: Bagas Sanjaya
Date: Fri Apr 21 2023 - 08:21:45 EST


On 4/21/23 13:34, Willy Tarreau wrote:

>> Looks like above link is about hex arithmetic implemented using strings,
>> right?
>
> It looks more like a reinvention of the classical multi-byte string
> processing (memcmp, memcpy, memmove etc).
>
>> Also, on what use cases can your idea fit the kernel context? Or doesn't the
>> kernel already have the implementation yet?
>
> Sure it does, look at __crypto_memneq() for example, or more generally
> at any memcmp() or memcpy() implementation from the last 30 years, for
> example in glibc.
>

Thanks for explanation! I don't have any serious C[++] programming
background, so I was confused when I wrote the original reply.

--
An old man doll... just what I always wanted! - Clara