diff --git a/include/FastSIMD/ToolSet/Generic/Register.h b/include/FastSIMD/ToolSet/Generic/Register.h index c81033a..df3d777 100644 --- a/include/FastSIMD/ToolSet/Generic/Register.h +++ b/include/FastSIMD/ToolSet/Generic/Register.h @@ -5,6 +5,7 @@ #include #include +#include #include #ifdef _MSC_VER @@ -15,7 +16,9 @@ #define FS_NEVERINLINE __attribute__( ( noinline ) ) #endif -#ifdef __clang__ +#if FASTSIMD_CURRENT_ARCH_IS( WASM ) +#define FS_VECTORCALL +#elif defined( __clang__ ) #define FS_VECTORCALL __regcall #elif defined( _MSC_VER ) #define FS_VECTORCALL __vectorcall diff --git a/include/FastSIMD/Utility/ArchDetect.h b/include/FastSIMD/Utility/ArchDetect.h index f95eebe..ec3dd06 100644 --- a/include/FastSIMD/Utility/ArchDetect.h +++ b/include/FastSIMD/Utility/ArchDetect.h @@ -1,3 +1,4 @@ +#pragma once //Based on the Qt processor detection code, so should be very accurate //https: code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/global/qprocessordetection.h