<story><title>The cpu_features library</title><url>https://opensource.googleblog.com/2018/02/cpu-features-library.html</url></story><parent_chain></parent_chain><comment><author>jwilk</author><text>GCC has the __builtin_cpu_supports() function on some architectures, so you may want to use that instead.&lt;p&gt;It&amp;#x27;s supported:&lt;p&gt;* on x86 since GCC 4.8&lt;p&gt;* on PowerPC since GCC 6 (you will also need glibc ≥ 2.23)&lt;p&gt;Documentation:&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;gcc.gnu.org&amp;#x2F;onlinedocs&amp;#x2F;gcc&amp;#x2F;x86-Built-in-Functions.html&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;gcc.gnu.org&amp;#x2F;onlinedocs&amp;#x2F;gcc&amp;#x2F;x86-Built-in-Functions.ht...&lt;/a&gt;&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;gcc.gnu.org&amp;#x2F;onlinedocs&amp;#x2F;gcc&amp;#x2F;PowerPC-Built-in-Functions.html&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;gcc.gnu.org&amp;#x2F;onlinedocs&amp;#x2F;gcc&amp;#x2F;PowerPC-Built-in-Function...&lt;/a&gt;</text></comment>
<story><title>The cpu_features library</title><url>https://opensource.googleblog.com/2018/02/cpu-features-library.html</url></story><parent_chain></parent_chain><comment><author>CoolGuySteve</author><text>I guess this is helpful for new projects, but most high performance programmers are already parsing cpuid output.&lt;p&gt;I was hoping for a more convenient hwloc replacement for discovering NUMA topology and logical&amp;#x2F;physical cores.&lt;p&gt;I guess what I mean is that if you&amp;#x27;re already at the level of caring what avx you have, then parsing cpuid isn&amp;#x27;t too difficult.</text></comment>