imops icon indicating copy to clipboard operation
imops copied to clipboard

Imports of `ffast-math` compiled extensions change global FPU state

Open vovaf709 opened this issue 2 years ago • 2 comments

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

vovaf709 avatar Sep 10 '23 09:09 vovaf709

https://github.com/llvm/llvm-project/issues/57589

vovaf709 avatar Sep 10 '23 09:09 vovaf709

https://moyix.blogspot.com/2022/09/someones-been-messing-with-my-subnormals.html

vovaf709 avatar Sep 10 '23 09:09 vovaf709