From: Bagas Sanjaya <bagasdotme@gmail.com>
To: Willy Tarreau <w@1wt.eu>
Cc: "André Coelho" <andrealbergaria@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: strings
Date: Fri, 21 Apr 2023 19:21:36 +0700 [thread overview]
Message-ID: <bf4ef6ce-8fa9-57b8-7d18-2a4cbb41455b@gmail.com> (raw)
In-Reply-To: <ZEIuh80SfDms30dc@1wt.eu>
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
prev parent reply other threads:[~2023-04-21 12:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-20 2:58 strings André Coelho
2023-04-21 4:20 ` strings Bagas Sanjaya
2023-04-21 6:34 ` strings Willy Tarreau
2023-04-21 12:21 ` Bagas Sanjaya [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bf4ef6ce-8fa9-57b8-7d18-2a4cbb41455b@gmail.com \
--to=bagasdotme@gmail.com \
--cc=andrealbergaria@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=w@1wt.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox