cpu_features
« Back to VersTracker
Description:
Cross platform C99 library to get cpu features at runtime
Type: Formula  |  Latest Version: 0.10.1@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: System utilities
Tags: cpu hardware performance library cross-platform c99
Install: brew install cpu_features
About:
cpu_features is a C99 library that provides runtime access to CPU instruction set features across multiple architectures including x86, ARM, and PowerPC. It enables developers to perform CPU feature detection for optimization without relying on platform-specific APIs. The library is lightweight, dependency-free, and suitable for high-performance computing applications.
Key Features:
  • Cross-platform CPU feature detection
  • Support for x86, ARM, PowerPC, and MIPS architectures
  • Zero external dependencies
  • Compile-time and runtime feature checking
  • Command-line tool for inspection
Use Cases:
  • Optimizing numerical computing libraries for specific CPU capabilities
  • Building portable performance-critical applications
  • Runtime dispatching for SIMD-optimized code paths
  • Embedded systems with diverse CPU targets
Alternatives:
  • cpuid – Linux-specific, less portable than cpu_features
  • Boost.Preprocessor – Compile-time only, no runtime detection
License: Apache-2.0
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, sonoma, ventura, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 11, 2025 2:53am 0 VERSION_BUMP 42af3ae9