From 360a68798d084051af03331ab52a04e61e7ae7fc Mon Sep 17 00:00:00 2001 From: Frode Solheim Date: Wed, 23 Sep 2015 20:13:49 +0200 Subject: [PATCH] JIT: Fix raw_facos_rr for x86-64 --- jit/codegen_x86.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jit/codegen_x86.cpp b/jit/codegen_x86.cpp index d45c1836..1363d8d3 100644 --- a/jit/codegen_x86.cpp +++ b/jit/codegen_x86.cpp @@ -4933,9 +4933,7 @@ LOWFUNC(NONE,NONE,2,raw_facos_rr,(FW d, FR s)) emit_byte(0xc9); /* fxch swap x with sqrt(1-(x^2)) */ emit_byte(0xd9); emit_byte(0xf3); /* fpatan atan(x/sqrt(1-(x^2))) & pop */ - emit_byte(0xdb); - emit_byte(0x2d); - emit_long(uae_p32(&pihalf)); /* fld load pi/2 from pihalf */ + raw_fldt((uintptr) &pihalf); /* fld load pi/2 from pihalf */ emit_byte(0xde); emit_byte(0xe1); /* fsubrp pi/2 - asin(x) & pop */ tos_make(d); /* store y=acos(x) */ -- 2.47.3