1
0
mirror of https://github.com/google/cpu_features.git synced 2025-04-27 23:22:31 +02:00

Advertize list_cpu_features demo program. Fixes #19

This commit is contained in:
Guillaume Chatelet 2018-02-12 12:57:15 +01:00
parent ff8f336eb1
commit 8bace7000c

View File

@ -7,6 +7,7 @@ instructions) at runtime.
- [Design Rationale](#rationale)
- [Code samples](#codesample)
- [Running sample code](#usagesample)
- [What's supported](#support)
- [License](#license)
- [Build with cmake](#cmake)
@ -104,6 +105,22 @@ static const bool has_fast_avx = info.features.avx && uarch != INTEL_SNB;
This feature is currently available only for x86 microarchitectures.
<a name="usagesample"></a>
### Running sample code
Building `cpu_features` brings a small executable to test the library.
```shell
% ./build/list_cpu_features
arch : x86
brand : Intel(R) Xeon(R) CPU E5-1650 0 @ 3.20GHz
family : 6 (0x06)
model : 45 (0x2D)
stepping : 7 (0x07)
uarch : INTEL_SNB
flags : aes, avx, sse4_1, sse4_2, ssse3
```
<a name="support"></a>
## What's supported