Header files for x86 SIMD intrinsics
问题 Which header files provide the intrinsics for the different x86 SIMD instruction set extensions (MMX, SSE, AVX, ...)? It seems impossible to find such a list online. Correct me if I\'m wrong. 回答1: These days you should normally just include <immintrin.h> . It includes everything. GCC and clang will stop you from using intrinsics for instructions you haven't enabled at compile time (e.g. with -march=native or -mavx2 -mbmi2 -mpopcnt -mfma -mcx16 -mtune=znver1 or whatever.) MSVC and ICC will let