Skip to content

Commit 53e0c89

Browse files
committed
Remove deprecated OJ_USE_SSE4_2 define
Use only compiler-provided __SSE4_2__ define for SIMD detection. The old OJ_USE_SSE4_2 macro is no longer needed since we rely on compiler flags (-msse4.2) which automatically define __SSE4_2__. This simplifies the code and removes legacy configuration.
1 parent 5db5d10 commit 53e0c89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/oj/simd.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
#define HAVE_SIMD_X86 1
1010

1111
// SSE4.2 support (Intel Core i7+, AMD Bulldozer+)
12-
#if defined(__SSE4_2__) || defined(OJ_USE_SSE4_2)
12+
// Enabled automatically when compiler has -msse4.2 flag
13+
#if defined(__SSE4_2__)
1314
#define HAVE_SIMD_SSE4_2 1
1415
#include <nmmintrin.h>
1516
#endif

0 commit comments

Comments
 (0)