1#include "cpuinfo_x86.h"
2
3// For C++, add `using namespace CpuFeatures;`
4static const X86Features features = GetX86Info().features;
5
6void Compute(void) {
7 if (features.aes && features.sse4_2) {
8 // Run optimized code.
9 } else {
10 // Run standard code.
11 }
12}