News for hackers. Stuff that matters.
Re:The cpu_features library by jwilk on Wednesday February 07, 2018 @06:07PM (#16328802)
GCC has the __builtin_cpu_supports() function on some architectures, so you may want to use that instead.

It's supported:

* on x86 since GCC 4.8

* on PowerPC since GCC 6 (you will also need glibc ≥ 2.23)

Documentation:

https://gcc.gnu.org/onlinedocs/gcc/x86-Built-in-Functions.ht...

https://gcc.gnu.org/onlinedocs/gcc/PowerPC-Built-in-Function...

Re:The cpu_features library by bringtheaction on Thursday February 08, 2018 @09:53AM (#16332346)
Does clang have anything similar?
Re:The cpu_features library by jwilk on Thursday February 08, 2018 @12:28PM (#16333830)
Since Clang 3.8 at least, it has __builtin_cpu_supports() too.