Skip to content
/ cpuid Public

cross-platform cross-compiler single-header C/C++ cpuid intrinsic

Notifications You must be signed in to change notification settings

anzz1/cpuid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

cpuid

cross-platform cross-compiler single-header C/C++ cpuid intrinsic.

This should alleviate the clusterfuck of __cpuid intrinsics as it seems that every compiler decided
that they had to have their own instead of using a common standard.

Being simply pure machine code, this should work with every compiler on planet Earth.

cpuid.h
can be included to your application or just copypasta the functions you need

cpuid.c
example command-line test application

TODO

Architectures
  • x86
  • x86_64
  • ARM
  • PPC
  • ...

Most of the features are implemented, but not every single one of them because laziness.
If a feature you need isn't covered, feel free to post an issue

About

cross-platform cross-compiler single-header C/C++ cpuid intrinsic

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages