View Single Post
Old 06 July 2018, 11:22   #15
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,510
Quote:
Originally Posted by PeterK View Post
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.
Toni Wilen is offline  
 
Page generated in 0.04155 seconds with 11 queries