Google Rolls Out cpu_features Library
Written by Michael Larabel in Google on 8 February 2018 at 08:00 AM EST. 16 Comments
Google's cpu_features library makes it easier for detecting modern CPU capabilities like FMA, SSE, and AVX extensions when writing hand-tuned code.

While there is /proc/cpuinfo for parsing CPU instruction set extensions and various other means of determining a processor's features, the new cpu_features library from Google is designed to be very portable, support different CPU architectures and operating systems, and can be used practically anywhere.

This library supports x86, ARM, ARM64 / AArch64, and MIPS processors currently and reports available CPU features. The library is written in C89 for making it portable as possible. This library also supports caching of results, checking compile time flags, and also noting of hardware CPUs with poorly implemented but present extensions.

More details via the Google Open-Source Blog. The code to this library is hosted on GitHub under the Apache 2.0 license.
Related News
About The Author
Author picture

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter or contacted via

Popular News This Week