A simple C++ code to detect all features on your current X86 CPU.
This code requires Clang header cpuid.h. Tested with both Linux (clang++) and Windows (clang-cl). GCC has not been tested.
DetectCPUFeatures is available under the Apache 2.0 license. See the LICENSE file for more info.