public inbox for libc-stable@sourceware.org
 help / color / mirror / Atom feed
From: Sunil Pandey <skpgkp2@gmail.com>
To: Noah Goldstein <goldstein.w.n@gmail.com>,
	 Libc-stable Mailing List <libc-stable@sourceware.org>
Cc: "H.J. Lu" <hjl.tools@gmail.com>,
	GNU C Library <libc-alpha@sourceware.org>
Subject: Re: [PATCH] x86-64: Define __memcmpeq in ld.so
Date: Thu, 12 May 2022 12:24:37 -0700	[thread overview]
Message-ID: <CAMAf5_c4bst1FK36tDQRmrBNa3w=gWZsdDc3adzZv9h2MK-Ecw@mail.gmail.com> (raw)
In-Reply-To: <CAFUsyf+gNqSZmaaTAsc6ZHc3VzkevYm-3eD8utNu01tL+QuXzA@mail.gmail.com>

On Mon, Feb 14, 2022 at 5:20 PM Noah Goldstein via Libc-alpha
<libc-alpha@sourceware.org> wrote:
>
> On Mon, Feb 14, 2022 at 7:50 AM H.J. Lu <hjl.tools@gmail.com> wrote:
> >
> > On Mon, Feb 14, 2022 at 1:18 AM Noah Goldstein <goldstein.w.n@gmail.com> wrote:
> > >
> > > On Sun, Feb 13, 2022 at 8:46 PM H.J. Lu <hjl.tools@gmail.com> wrote:
> > > >
> > > > Define __memcmpeq in ld.so so that compiler can generate __memcmpeq call
> > > > when compiling for ld.so.
> > > > ---
> > > >  sysdeps/x86_64/multiarch/memcmpeq-sse2.S | 4 +++-
> > > >  1 file changed, 3 insertions(+), 1 deletion(-)
> > > >
> > > > diff --git a/sysdeps/x86_64/multiarch/memcmpeq-sse2.S b/sysdeps/x86_64/multiarch/memcmpeq-sse2.S
> > > > index b80a29d4b0..de7f5a7525 100644
> > > > --- a/sysdeps/x86_64/multiarch/memcmpeq-sse2.S
> > > > +++ b/sysdeps/x86_64/multiarch/memcmpeq-sse2.S
> > > > @@ -16,8 +16,10 @@
> > > >     License along with the GNU C Library; if not, see
> > > >     <https://www.gnu.org/licenses/>.  */
> > > >
> > > > -#ifndef memcmp
> > > > +#if IS_IN (libc)
> > > >  # define memcmp        __memcmpeq_sse2
> > > > +#else
> > > > +# define memcmp        __memcmpeq
> > > >  #endif
> > > >  #define USE_AS_MEMCMPEQ        1
> > > >  #include "memcmp-sse2.S"
> > >
> > > How can I test this patch?
> >
> > Please build this GCC branch:
> >
> > https://gitlab.com/x86-gcc/gcc/-/commits/users/hjl/memcmpeq/master
> >
> > and use it to build glibc with
> >
> > CC="gcc -fextra-libc-function=memcmpeq"
> >
> > It will call __memcmpeq when possible.
>
> LGTM.
> >
> > --
> > H.J.

I would like to backport this patch to release branches.
Any comments or objections?

--Sunil

           reply	other threads:[~2022-05-12 19:25 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAFUsyf+gNqSZmaaTAsc6ZHc3VzkevYm-3eD8utNu01tL+QuXzA@mail.gmail.com>]

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='CAMAf5_c4bst1FK36tDQRmrBNa3w=gWZsdDc3adzZv9h2MK-Ecw@mail.gmail.com' \
    --to=skpgkp2@gmail.com \
    --cc=goldstein.w.n@gmail.com \
    --cc=hjl.tools@gmail.com \
    --cc=libc-alpha@sourceware.org \
    --cc=libc-stable@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).