// NOTE: Below, we automatically include arch-specific intrinsic headers when we've detected // that the compiler is clang-cl. Clang's headers skip including "unsupported" intrinsics (via // defines like __AVX__ etc.), but only when _MSC_VER is also defined. To get around that, we // directly include the headers for any intrinsics that ought to be present in each opts target. // // Each of the specific intrinsic headers also checks to ensure that immintrin.h has been // included, so do that here, first. #ifdefined(__clang__) && defined(_MSC_VER) #include <immintrin.h> #endif
// Why not put the target string in a #define, and remove the boilerplate? Because GCC doesn't // allow the target() option to be expanded by the preprocessor - it must be a literal string. #if SK_OPTS_TARGET == SK_OPTS_TARGET_SSSE3
#define SK_CPU_LSX_LEVEL SK_CPU_LSX_LEVEL_LASX #define SK_OPTS_NS lasx // The intrinsic from lasxintrin.h is wrapped by the __loongarch_asx macro, so we need to define it. #define __loongarch_asx
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.