Skip to content

Commit f7624f4

Browse files
authored
Disable fast math (#514)
1 parent d919b46 commit f7624f4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
Changelog
88
=========
99

10+
4.2.2 - unreleased
11+
------------------
12+
13+
**Other changes:**
14+
15+
- We disabled fast math to avoid invalid results (e.g., when dividing by zero).
16+
1017

1118
4.2.1 - 2026-02-04
1219
------------------

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
"-Xpreprocessor",
8080
"-fopenmp",
8181
"-O3",
82-
"-ffast-math",
8382
"--std=c++17",
8483
f"-DJEMALLOC_INSTALL_SUFFIX={je_install_suffix}",
8584
]
@@ -101,7 +100,6 @@
101100
extra_compile_args = [
102101
"-fopenmp",
103102
"-O3",
104-
"-ffast-math",
105103
"--std=c++17",
106104
f"-DJEMALLOC_INSTALL_SUFFIX={je_install_suffix}",
107105
]
@@ -168,6 +166,7 @@
168166
"initializedcheck": False,
169167
"nonecheck": False,
170168
"cdivision": True,
169+
"cpow": True,
171170
"legacy_implicit_noexcept": True,
172171
},
173172
),

0 commit comments

Comments
 (0)