macOS
brew install cpu_featureslocal Homebrew formula metadata
brew
cpu_features のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install cpu_featureslocal Homebrew formula metadata
sudo apt install libcpu-features-devDebian stable package indexes · libcpu-features-dev · ソース: deb.debian.org
nix profile install nixpkgs#cpu_featuresnixpkgs package indexes · pkgs/by-name/cp/cpu_features/package.nix · ソース: api.github.com
概要
Cross platform C99 library to get cpu features at runtime
履歴
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.
セキュリティ状態
generalized runtime or code generation signal.
リスク yellow · 信頼度 中 · runtime
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
list_cpu_features | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/google/cpu_features
インストールメタデータ
| パッケージキー | brew:cpu_features |
|---|---|
| バージョン | 0.11.0 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/cpu_features |
| ホームページ | https://github.com/google/cpu_features |
| リポジトリ | https://github.com/google/cpu_features |
| 上流ドキュメント | https://github.com/google/cpu_features#readme |
| ライセンス | Apache-2.0 |
| ソースアーカイブ | https://github.com/google/cpu_features/archive/refs/tags/v0.11.0.tar.gz |
| 最終更新 | 2026-06-01T17:25:20Z |
| Pulse | updated |
| ビルド依存関係 | cmake |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| 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 |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
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-devソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.