macOS
brew install cpu_featureslocal Homebrew formula metadata
brew
Cross platform C99 library to get cpu features at runtime. Version 0.11.0 via Homebrew; verified 2026-06-01.
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 | cli | global executable |
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.
https://github.com/google/cpu_features
install metadata
| Package key | brew:cpu_features |
|---|---|
| Version | 0.11.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cpu_features |
| Homepage | https://github.com/google/cpu_features |
| Repository | https://github.com/google/cpu_features |
| Upstream docs | https://github.com/google/cpu_features#readme |
| License | Apache-2.0 |
| Source archive | https://github.com/google/cpu_features/archive/refs/tags/v0.11.0.tar.gz |
| Last updated | 2026-06-01T17:25:20Z |
| Pulse | updated |
| Build dependencies | cmake |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cpu_features |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
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.