Skip to content

Commit c92de5f

Browse files
committed
REVIEWED: Comments about intrinsics support #5316
1 parent ca89934 commit c92de5f

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/raymath.h

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,26 +177,24 @@ typedef struct float16 {
177177
#if defined(RAYMATH_USE_SIMD_INTRINSICS)
178178
// SIMD is used on the most costly raymath function MatrixMultiply()
179179
// NOTE: Only SSE intrinsics support implemented
180-
// TODO: Consider support for other SIMD instrinsics
180+
// TODO: Consider support for other SIMD instrinsics:
181+
// - SSEx, AVX, AVX2, FMA, NEON, RVV
181182
/*
182183
#if defined(__SSE4_2__)
183-
#define SW_HAS_SSE42
184184
#include <nmmintrin.h>
185+
#define RAYMATH_SSE42_ENABLED
185186
#elif defined(__SSE4_1__)
186-
#define SW_HAS_SSE41
187187
#include <smmintrin.h>
188+
#define RAYMATH_SSE41_ENABLED
188189
#elif defined(__SSSE3__)
189-
#define SW_HAS_SSSE3
190190
#include <tmmintrin.h>
191+
#define RAYMATH_SSSE3_ENABLED
191192
#elif defined(__SSE3__)
192-
#define SW_HAS_SSE3
193193
#include <pmmintrin.h>
194+
#define RAYMATH_SSE3_ENABLED
194195
#elif defined(__SSE2__) || (defined(_M_AMD64) || defined(_M_X64)) // SSE2 x64
195-
#define SW_HAS_SSE2
196196
#include <emmintrin.h>
197-
#elif defined(__SSE__)
198-
#define SW_HAS_SSE
199-
#include <xmmintrin.h>
197+
#define RAYMATH_SSE2_ENABLED
200198
#endif
201199
*/
202200
#if defined(__SSE__) || defined(_M_X64) || (defined(_M_IX86_FP) && (_M_IX86_FP >= 1))

0 commit comments

Comments
 (0)