1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
#pragma once
namespace cpu_features
{
struct cpu_features_t
{
bool CPU_X86_SSE2 = false;
bool CPU_X86_SSE3 = false;
bool CPU_X86_SSE4A = false;
bool CPU_X86_SSE41 = false;
bool CPU_X86_SSE42 = false;
bool CPU_X86_AVX = false;
bool CPU_X86_AVX2 = false;
bool CPU_ARM_NEON = false;
bool CPU_ARM_NEON7 = false;
bool CPU_ARM_NEON8 = false;
};
/*
Parse the Volk machine string to
get available CPU features to utilize
on this machine.
*/
cpu_features_t get_cpu_features();
void print_features(cpu_features_t f);
}
|