macOS
brew install cpu_featureslocal Homebrew formula metadata
brew / rank 2861
Cross platform C99 library to get cpu features at runtime. Version 0.11.0 via Homebrew; verified 2026-06-01. Also installable with debian: sudo apt install libcpu-features-dev.
install
brew install cpu_featureslocal Homebrew formula metadata
sudo apt install libcpu-features-devDebian stable package indexes · libcpu-features-dev · source: deb.debian.org
nix profile install nixpkgs#cpu_featuresnixpkgs package indexes · pkgs/by-name/cp/cpu_features/package.nix · source: api.github.com
overview
Cross platform C99 library to get cpu features at runtime
history
cpu_features is Google's portable C99 library for detecting CPU instruction-set and microarchitecture features at runtime.
The official repository was created in 2018. Its README emphasizes portability, old-compiler compatibility, sandbox-aware detection strategies, thread safety, no allocation, no exceptions, unit tests, and suitability for low-level code such as libc-style routines.
The README positions cpu_features as cross-platform infrastructure across Linux, macOS, Windows, Android, and several CPU families. It also describes Android support and an NDK cpu-features.h compatibility layer, making it relevant to projects that need runtime dispatch without depending on platform-specific probes.
Users include architecture-specific headers such as cpuinfo_x86.h or cpuinfo_arm.h, read feature structures returned by GetX86Info or GetArmInfo, and select optimized code paths based on runtime CPU support. The package also builds list_cpu_features for inspecting detected features, including JSON output.
For packagers, cpu_features is a small but foundational library: it helps upstreams choose optimized code paths while still shipping generic binaries, and it is designed to build with CMake, Bazel, and Zig across many architectures.
security posture
generalized runtime or code generation signal.
yellow risk · medium confidence · runtime
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
list_cpu_features | executable | indexed executable | Discovered from the local executable index. |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:cpu_features |
|---|---|
| Version | 0.11.0 |
| Package manager | Homebrew |
| Homepage | https://github.com/google/cpu_features |
| Repository | https://github.com/google/cpu_features |
| Last updated | 2026-06-01T17:25:20Z |
| Pulse | updated |
| Bottle | not recorded |
| Service | none declared |
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libcpu-features-dev 0.9.0-1+b1
cross platform C99 library to get cpu features
https://github.com/google/cpu_features
sudo apt install libcpu-features-devcpu_features
nix profile install nixpkgs#cpu_featureslibcpu-features-dev 0.9.0-1
cross platform C99 library to get cpu features
https://github.com/google/cpu_features
sudo apt install libcpu-features-devsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.