Skip to content

Commit c85a173

Browse files
committed
ENH: Enable FPU Mode return for clang-cl
1 parent cdba263 commit c85a173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/core/src/multiarray/_multiarray_tests.c.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,7 @@ get_fpu_mode(PyObject *NPY_UNUSED(self), PyObject *args)
19721972
result = _controlfp(0, 0);
19731973
return PyLong_FromLongLong(result);
19741974
}
1975-
#elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__))
1975+
#elif (defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__))) || (defined(_MSC_VER) && defined(__clang__))
19761976
{
19771977
unsigned short cw = 0;
19781978
__asm__("fstcw %w0" : "=m" (cw));

0 commit comments

Comments
 (0)