![]() |
LeechCraft
0.6.70-13729-g7046a9d2a7
Modular cross-platform feature rich live environment.
|
#include "cpufeatures.h"
Public Types | |
| enum | Feature { Feature::SSSE3, Feature::SSE41, Feature::AVX, Feature::XSave, Feature::AVX2, Feature::None } |
Public Member Functions | |
| CpuFeatures () | |
| bool | HasFeature (Feature) const |
Static Public Member Functions | |
| static QString | GetFeatureName (Feature) |
| template<typename T > | |
| static T | Choose (std::initializer_list< std::pair< Feature, T >> funcs, T fallback) |
Definition at line 42 of file cpufeatures.h.
|
strong |
| Enumerator | |
|---|---|
| SSSE3 | |
| SSE41 | |
| AVX | |
| XSave | |
| AVX2 | |
| None | |
Definition at line 49 of file cpufeatures.h.
| LC::Util::CpuFeatures::CpuFeatures | ( | ) |
Definition at line 49 of file cpufeatures.cpp.
|
inlinestatic |
Definition at line 65 of file cpufeatures.h.
References HasFeature().
Here is the call graph for this function:
|
static |
Definition at line 74 of file cpufeatures.cpp.
References AVX, AVX2, None, SSE41, SSSE3, LC::Util::Unreachable(), and XSave.
Here is the call graph for this function:| bool LC::Util::CpuFeatures::HasFeature | ( | Feature | feature | ) | const |
Definition at line 95 of file cpufeatures.cpp.
References AVX, AVX2, None, SSE41, SSSE3, LC::Util::Unreachable(), and XSave.
Referenced by Choose().
Here is the call graph for this function:
Here is the caller graph for this function: