Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: libm i386: make use of __builtin_cpu_supports()
To:
Christian Weisgerber <naddy@mips.inka.de>
Cc:
tech@openbsd.org
Date:
Fri, 31 Jul 2026 07:25:39 -0600

Download raw body.

Thread
Christian Weisgerber <naddy@mips.inka.de> 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.