Skip to content

Commit

Permalink
Fix regcall warning on WASM
Browse files Browse the repository at this point in the history
  • Loading branch information
Auburn committed Apr 23, 2024
1 parent 397dea9 commit 396d9c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/FastSIMD/ToolSet/Generic/Register.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <utility>
#include <tuple>

#include <FastSIMD/Utility/ArchDetect.h>
#include <FastSIMD/Utility/FeatureEnums.h>

#ifdef _MSC_VER
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions include/FastSIMD/Utility/ArchDetect.h
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 396d9c8

Please sign in to comment.