work of fesetenv:
0.33343 hex: 3eab
0.33313 hex: 3eaa
FPU control words: 37f, f7f
For correct work output :
0.33343 hex: 3eab
0.33343 hex: 3eab
FPU control words: 37f, 37f
чт, 7 мар. 2019 г. в 21:50, Liu Hao :
>
> 在 2019/2/25 22:41, Liu Hao 写道:
> > 在 2
After this commit:
[e98d80] (2.0 kB) by Kai Tietz
Add a fix for working fesetenv in libquadmath-library
fesetenv was broken and do not sets new fpu state because it's now
overwrites new env state by fnstenv.
And this patch must fix it by store only mxcsr and load its afterwards:
diff --git
Fesetenv does not change fpu rounding mode. This bug already described
in https://sourceforge.net/p/mingw-w64/bugs/541/
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based