libcpuid
« Back to VersTracker
Description:
Small C library for x86 CPU detection and feature extraction
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: System utilities
Tags: x86 cpu hardware-detection library c
Install: brew install libcpuid
About:
Libcpuid is a low-level C library designed for detailed x86 CPU identification and feature detection. It provides developers with precise information about processor vendors, models, cache hierarchy, and supported instruction sets like AVX or SSE. This enables software to perform runtime optimizations or compatibility checks based on actual hardware capabilities.
Key Features:
  • Detailed CPU identification (vendor, family, model, stepping)
  • Detection of instruction set extensions (MMX, SSE, AVX, AVX2, etc.)
  • Cache topology and TLB (Translation Lookaside Buffer) information
  • Benchmarking functions for measuring CPU-specific performance
  • Cross-platform support (Windows, Linux, macOS)
Use Cases:
  • Building CPU-Z-like diagnostic tools for system analysis
  • Optimizing high-performance computing applications by leveraging specific instruction sets
  • Verifying hardware compatibility for security-sensitive or scientific software
Alternatives:
  • cpuid (command-line tool) – Libcpuid is a library intended for integration into other software, whereas 'cpuid' is typically a standalone command-line utility for displaying CPU info.
  • CPUFeatureDetector (Android) – Libcpuid focuses specifically on the x86 architecture, while Android-based detectors focus on ARM architectures.
Version History
Detected Version Rev Change Commit