imops
imops copied to clipboard
Imports of `ffast-math` compiled extensions change global FPU state
For example import imops breaks floating point subnormals flushing them to 0:
import sys
sys.float_info.min / 2 != 0.0 # True
import imops
sys.float_info.min / 2 != 0.0 # False
https://github.com/llvm/llvm-project/issues/57589
https://moyix.blogspot.com/2022/09/someones-been-messing-with-my-subnormals.html