8000 BUG: Fix Clang warning in loops_half.dispatch.c.src (#28841) · r-devulap/numpy@4961a14 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4961a14

Browse files
authored
BUG: Fix Clang warning in loops_half.dispatch.c.src (numpy#28841)
Fix macro expansion warning [-Wexpansion-to-defined] by removing 'defined' usage in the NPY__SVML_IS_ENABLED macro expansion.
1 parent 1923b38 commit 4961a14

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

numpy/_core/src/umath/loops_half.dispatch.c.src

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
#include "fast_loop_macros.h"
77

88

9-
#define NPY__SVML_IS_ENABLED (NPY_SIMD && defined(NPY_HAVE_AVX512_SKX) && defined(NPY_CAN_LINK_SVML))
9+
#if NPY_SIMD && defined(NPY_HAVE_AVX512_SKX) && defined(NPY_CAN_LINK_SVML)
10+
#define NPY__SVML_IS_ENABLED 1
11+
#else
12+
#define NPY__SVML_IS_ENABLED 0
13+
#endif
1014

1115
#if NPY__SVML_IS_ENABLED && !defined(NPY_HAVE_AVX512_SPR)
1216

0 commit comments

Comments
 (0)
0