Removed old feature check flags

This commit is contained in:
Joel Höner 2017-11-25 00:41:27 +01:00
parent f1316c434e
commit 066e7f359d
2 changed files with 2 additions and 14 deletions

View File

@ -111,8 +111,6 @@ enum ZydisFeatures
{
ZYDIS_FEATURE_EVEX,
ZYDIS_FEATURE_MVEX,
ZYDIS_FEATURE_FLAGS,
ZYDIS_FEATURE_CPUID
};
/* ============================================================================================== */

View File

@ -45,24 +45,14 @@ ZydisBool ZydisIsFeatureEnabled(ZydisFeature feature)
#else
return ZYDIS_FALSE;
#endif
case ZYDIS_FEATURE_MVEX:
#ifndef ZYDIS_DISABLE_MVEX
return ZYDIS_TRUE;
#else
return ZYDIS_FALSE;
#endif
case ZYDIS_FEATURE_FLAGS:
#ifndef ZYDIS_DISABLE_FLAGS
return ZYDIS_TRUE;
#else
return ZYDIS_FALSE;
#endif
case ZYDIS_FEATURE_CPUID:
#ifndef ZYDIS_DISABLE_CPUID
return ZYDIS_TRUE;
#else
return ZYDIS_FALSE;
#endif
default:
return ZYDIS_FALSE;
}