Re: libm i386: make use of __builtin_cpu_supports()

"Theo de Raadt" <[email protected]> Fri, 31 Jul 2026 07:25:39 -0600
Newsgroups gmane.os.openbsd.tech
Message-ID <[email protected]>
Christian Weisgerber <[email protected]> wrote:

> Christian Weisgerber:
> 
> > On i386, libm queries the machdep.sse sysctl to check at runtime
> > whether the CPU supports SSE.
> > 
> > kettenis@ has pointed out elsewhere that the compiler runtime on
> > x86 now provides a CPU feature array that we can test with
> > __builtin_cpu_supports().  No need to handroll this ourselves.
> 
> After switching over libm, we can also remove the special casing in
> pledge_sysctl().
> 
> (How long would we wait before doing this?  Until after the next
> release?)

I'm going to guess a full year.