Skip to content

Commit

Permalink
Use regcall instead of vectorcall on clangcl
Browse files Browse the repository at this point in the history
  • Loading branch information
Auburn committed Jul 22, 2023
1 parent 0804199 commit a09c99d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/FastSIMD/ToolSet/Generic/Register.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@
#ifdef _MSC_VER
#define FS_FORCEINLINE __forceinline
#define FS_NEVERINLINE __declspec(noinline)
#define FS_VECTORCALL __vectorcall
#else
#define FS_FORCEINLINE __attribute__( ( always_inline ) ) inline
#define FS_NEVERINLINE __attribute__( ( noinline ) )
#endif

#ifdef __clang__
#define FS_VECTORCALL __regcall
#elif defined( _MSC_VER )
#define FS_VECTORCALL __vectorcall
#else
#define FS_VECTORCALL
#endif
#endif


namespace FS
{
Expand Down

0 comments on commit a09c99d

Please sign in to comment.