msvcrt: improve accuracy of exp/pow/cosh and sinh

Ruslan Kabatsayev b7.10110111 at
Sat Apr 4 13:36:09 CDT 2015


Are you sure this will be of any use if one selects SSE instead of x87
instruction set to handle doubles (like -mfpmath=sse)? No one
guarantees the functions like sinh will be evaluated on x87 FPU and
even that this legacy instruction set will used at all.


On Sat, Apr 4, 2015 at 7:40 PM, Zheng Chen <chanchengcc at> wrote:
> The default fpu_cw = 0x27f makes the exp/pow/cosh/sinh functions producing
> less accurate results. This patch temporally changes fpu_cw to 0x37f in
> these functions for more accurate results.
> Thanks to Qian for his ideas.
> This patch fixes parts of these two bugs: 37149, 37150

More information about the wine-patches mailing list