HostFeatures: Removes distinction between AVX and AVX2

We now no longer care about AVX versions, consolidate them in to a
single config option which enables both.
This commit is contained in:
Ryan Houdek committed 2024-06-26 14:56:01 -07:00
1 parent 52e541d453
commit add0e7a8db
5 files changed
+3 -21

No files matched your search

+1 -8
View File
@@ -307,8 +307,7 @@ public:
FEATURE_BMI2 = (1 << 7),
FEATURE_CLWB = (1 << 8),
FEATURE_LINUX = (1 << 9),
FEATURE_AVX2 = (1 << 10),
FEATURE_AES256 = (1 << 11),
FEATURE_AES256 = (1 << 10),
};
bool Requires3DNow() const {
@@ -320,9 +319,6 @@ public:
bool RequiresAVX() const {
return BaseConfig.OptionHostFeatures & HostFeatures::FEATURE_AVX;
}
bool RequiresAVX2() const {
return BaseConfig.OptionHostFeatures & HostFeatures::FEATURE_AVX2;
}
bool RequiresRAND() const {
return BaseConfig.OptionHostFeatures & HostFeatures::FEATURE_RAND;
}
@@ -492,9 +488,6 @@ public:
bool RequiresAVX() const {
return Config.RequiresAVX();
}
bool RequiresAVX2() const {
return Config.RequiresAVX2();
}
bool RequiresRAND() const {
return Config.RequiresRAND();
}