2016-11-12 06:03:35 +08:00
|
|
|
libcpuid (library for x86 CPU detection)
|
|
|
|
|
2015-08-03 09:49:44 +08:00
|
|
|
libcpuid is a small C library for x86 CPU detection and feature extraction.
|
|
|
|
Using it, you can:
|
|
|
|
|
|
|
|
* get the processor vendor, model, brand string, code name
|
2016-11-12 06:03:35 +08:00
|
|
|
* get information about CPU features such as: number of cores or logical
|
|
|
|
CPUs, cache sizes, CPU clock
|
|
|
|
* check if the processor implements a specific instruction set such as SSE2
|
|
|
|
or 3DNow!
|
2015-08-03 09:49:44 +08:00
|
|
|
* execute the CPUID and RDTSC instructions (portably!)
|
2016-11-12 06:03:35 +08:00
|
|
|
* and have this all in your commercial application, without getting into
|
|
|
|
trouble.
|
2015-08-03 09:49:44 +08:00
|
|
|
|
2016-11-12 06:03:35 +08:00
|
|
|
It works on Windows, Linux and Mac OS X, both 32-bit and 64-bit
|
|
|
|
flavours. Compiler support includes GCC and Microsoft Visual C++ (and
|
|
|
|
compatible, e.g. Intel C++ compiler).
|