8000 Fix build · numpy/numpy@15a7520 · GitHub
[go: up one dir, main page]

Skip to content

Commit 15a7520

Browse files
committed
Fix build
1 parent 0fbe5ec commit 15a7520

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

numpy/_core/src/multiarray/lowlevel_strided_loops.c.src

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -859,10 +859,11 @@ NPY_NO_EXPORT PyArrayMethod_StridedLoop *
859859

860860
#endif
861861

862-
#if (@is_native_half1@ || @is_float1@ || @is_double1@) && \
863-
(@is_native_half2@ || @is_float2@ || @is_double2@)
864-
// Enable Vectorization on Clang for floating point casts
865-
NPY_IGNORE_FP_EXCEPTIONS_ON
862+
#if @is_native_half1@ || @is_float1@ || @is_double1@
863+
#if @is_native_half2@ || @is_float2@ || @is_double2@
864+
// Enable Vectorization on Clang for floating point casts
865+
NPY_IGNORE_FP_EXCEPTIONS_ON
866+
#endif
866867
#endif
867868
static NPY_GCC_OPT_3 int
868869
@prefix@_cast_@name1@_to_@name2@(
@@ -957,9 +958,10 @@ static NPY_GCC_OPT_3 int
957958
}
958959
return 0;
959960
}
960-
#if (@is_native_half1@ || @is_float1@ || @is_double1@) && \
961-
(@is_native_half2@ || @is_float2@ || @is_double2@)
962-
NPY_IGNORE_FP_EXCEPTIONS_OFF
961+
#if @is_native_half1@ || @is_float1@ || @is_double1@
962+
#if @is_native_half2@ || @is_float2@ || @is_double2@
963+
NPY_IGNORE_FP_EXCEPTIONS_OFF
964+
#endif
963965
#endif
964966

965967
#undef _CONVERT_FN

0 commit comments

Comments
 (0)
0