]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
JIT: Fix raw_facos_rr for x86-64
authorFrode Solheim <frode@fs-uae.net>
Wed, 23 Sep 2015 18:13:49 +0000 (20:13 +0200)
committerFrode Solheim <frode@fs-uae.net>
Wed, 23 Sep 2015 18:13:49 +0000 (20:13 +0200)
jit/codegen_x86.cpp

index d45c1836adb9e8de4039dcaa63375afaa153d24b..1363d8d3634bbe319a14707411688cf927ff3865 100644 (file)
@@ -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) */