mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Olivier Galibert <galibert@pobox.com>
To: Rich Felker <dalias@libc.org>
Cc: Jon Chesterfield <jonathanchesterfield@gmail.com>,
	musl@lists.openwall.com
Subject: Re: [musl] [PATCH] stdlib: implement qsort_r
Date: Mon, 9 Aug 2021 08:03:35 +0200	[thread overview]
Message-ID: <CAMFK0gvUABnLAN51GWMfRbVOij6L2xnY9H_aEKNmD_YmAyBuxg@mail.gmail.com> (raw)
In-Reply-To: <20210808230535.GY13220@brightrain.aerifal.cx>

[-- Attachment #1: Type: text/plain, Size: 1583 bytes --]

Yeah, the wrapper_cmp version looks rather good, I didn’t realize it would
go down to one instruction.  Or that an old patch would have been stalled
for five months ;-)

  OG

Le lun. 9 août 2021 à 01:05, Rich Felker <dalias@libc.org> a écrit :

> On Sun, Aug 08, 2021 at 10:21:06PM +0100, Jon Chesterfield wrote:
> > On Sun, Aug 8, 2021 at 9:39 PM Érico Nogueira <ericonr@disroot.org>
> wrote:
> >
> > > This is the favored approach, from what I understood of the discussions
> > > surrounding it. It's implemented with musl's namespacing rules and such
> > > in [1].
> > >
> >
> > Unsurprisingly I like your patch.
> >
> > >
> > > It is badly optimized for some archs, unfortunately, as explained in
> the
> > > thread from [2]. I believe that's what's holding it up.
> > >
> > > [1]
> > >
> https://inbox.vuxu.org/musl/20210309210213.29539-1-ericonr@disroot.org/
> > > [2]
> > >
> https://inbox.vuxu.org/musl/20210309150320.GU32655@brightrain.aerifal.cx/
> >
> >
> > And that's what I get for not reading the list carefully enough. I missed
> > the thread
> > from March entirely.
>
> No problem. Indeed, this was stalled because of concerns about bad
> compiler behavior on some archs, but I really don't want to allow that
> to dictate how we solve the problem. The compiler is doing the wrong
> thing (failing to tail call) and should just be fixed. I'll probably
> merge the tail-call patch as-is, or with any minimal fixes needed,
> right after this release so as not to make major API changes at last
> minute.
>
> Rich
>

[-- Attachment #2: Type: text/html, Size: 2384 bytes --]

  reply	other threads:[~2021-08-09  6:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-08 11:26 Olivier Galibert
2021-08-08 12:42 ` Jon Chesterfield
2021-08-08 19:39   ` Olivier Galibert
2021-08-08 20:35   ` Érico Nogueira
2021-08-08 21:21     ` Jon Chesterfield
2021-08-08 23:05       ` Rich Felker
2021-08-09  6:03         ` Olivier Galibert [this message]
2021-08-09 17:27   ` Florian Weimer
2021-08-08 20:28 ` Érico Nogueira
2021-08-18 17:36 Olivier Galibert
2021-08-18 20:18 ` Rich Felker

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=CAMFK0gvUABnLAN51GWMfRbVOij6L2xnY9H_aEKNmD_YmAyBuxg@mail.gmail.com \
    --to=galibert@pobox.com \
    --cc=dalias@libc.org \
    --cc=jonathanchesterfield@gmail.com \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).