8000 ENH: Improve clang-cl compliance by charris · Pull Request #24174 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: Improve clang-cl compliance #24174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ENH: Enable FPU Mode return for clang-cl
  • Loading branch information
bashtage authored and charris committed Jul 13, 2023
commit f0a7c932e28b0905e4c3b9b889ad303a0a96f50b
2 changes: 1 addition & 1 deletion numpy/core/src/multiarray/_multiarray_tests.c.src
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,7 @@ get_fpu_mode(PyObject *NPY_UNUSED(self), PyObject *args)
result = _controlfp(0, 0);
return PyLong_FromLongLong(result);
}
#elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__))
#elif (defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__))) || (defined(_MSC_VER) && defined(__clang__))
{
unsigned short cw = 0;
__asm__("fstcw %w0" : "=m" (cw));
Expand Down
0