Date: Wed, 14 Jan 2026 18:19:48 +0100
Hi Hans,
On Wed, Jan 14, 2026 at 06:00:37PM +0100, Hans Ã…berg via Std-Proposals wrote:
>
> > On 14 Jan 2026, at 16:34, Thiago Macieira via Std-Proposals <std-proposals_at_[hidden]> wrote:
> >
> > What Hans has to show and has so far failed to do is that it would be
> > *impossible* for LLVM to match the performance of his code, providing a reason
> > why that would be the case.
>
> It looks difficult to do in C in the absence of templates, unlike C++
> then, because the code should be expanded statically for pipelining,
> even though there are suggestions in this thread that it might be possible.
LLVM should be able to implement _BinInt() as a template if it would
make it more efficient. That's an implementation detail. The fact that
it's *currently* written in C doesn't prevent them from rewriting it in
C++, or in assembly.
Have a lovely day!
Alex
On Wed, Jan 14, 2026 at 06:00:37PM +0100, Hans Ã…berg via Std-Proposals wrote:
>
> > On 14 Jan 2026, at 16:34, Thiago Macieira via Std-Proposals <std-proposals_at_[hidden]> wrote:
> >
> > What Hans has to show and has so far failed to do is that it would be
> > *impossible* for LLVM to match the performance of his code, providing a reason
> > why that would be the case.
>
> It looks difficult to do in C in the absence of templates, unlike C++
> then, because the code should be expanded statically for pipelining,
> even though there are suggestions in this thread that it might be possible.
LLVM should be able to implement _BinInt() as a template if it would
make it more efficient. That's an implementation detail. The fact that
it's *currently* written in C doesn't prevent them from rewriting it in
C++, or in assembly.
Have a lovely day!
Alex
-- <https://www.alejandro-colomar.es>
Received on 2026-01-14 17:20:03
