Registry / utility / cpu-features

cpu-features

JSON →
library0.10.1vcpkgunverified

A cross-platform C library to retrieve CPU features (such as available instructions) at runtime.

vcpkg install cpu-features
INSTALL
IMPORT
SIG · CPU-FEATURES
C
cpu-features
utilitycppv0.10.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cpu_features_macros.h
#include <cpu_features_macros.h>

Check for SSE4.2 support on x86

#include "cpu_features_macros.h" #include "cpuinfo_x86.h" int main() { cpu_features::X86Info info = cpu_features::GetX86Info(); if (info.features.sse4_2) { // Use SSE4.2 instructions } return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.10.1latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

cpu-features — pip install cpu-features · libregistry