[RFC] Implementing inet_pton4 and inet_pton6 on x86 using AVX512 Icelake instructions

Shreesh Adiga 16567adigashreesh@gmail.com
Tue Jun 2 11:39:46 GMT 2026


On Wed, May 6, 2026 at 12:22 AM Adhemerval Zanella Netto <
adhemerval.zanella@linaro.org> wrote:

>
>
> On 05/05/26 11:32, Cristian Rodriguez wrote:
> > On Sun, May 3, 2026 at 10:32 AM Shreesh Adiga
> > <16567adigashreesh@gmail.com> wrote:
> >>
> >> Hi,
> >>
> >> I was able to implement inet_pton4 and inet_pton6 using AVX512
> instructions on my Zen4 desktop
> >
> > That is a nice academic exercise but I don't believe these functions
> > are ever hot enough to justify the burden of maintaining yet another
> > version of them.
>
> I agree, this would also require a lot of extra support to be proper
> implemented
> (ifunc wrappers, extra sysdeps overrides).
>
This implementation was also independently reviewed and blogged here:
https://lemire.me/blog/2026/05/23/parsing-ipv6-addresses-crazily-fast-with-avx-512/
I think this is worth adding for glibc, which already includes a lot of
optimizations written in assembly for various architectures.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20260602/eebc384c/attachment.htm>


More information about the Libc-alpha mailing list