Quote:
Originally Posted by PeterK
The strange thing is that at the moment it only seems to be necessary for the Jit to force "round to nearest" for FACOS. The non-Jit code seems to ignore the user requested rounding mode. That could really be a general non-Jit bug ??
|
Non-jit has always forced to round to nearest when executing trigonometric/logarithmic functions. 64-bit requires it because C-library function expects it (some functions return really wrong results if not round to nearest). I did the some to 80-bit when using multi-instruction code (trigonometric/logaritmic) because "wrong" mid instruction rounding would cause side-effects.
Quote:
I just wonder whether the code for restoring the control word could be simplified at several locations by replacing the
|
It is not going to work because regs.fpcr content would become JIT compile time constant. It needs to be pointer to regs.fpcr.