Merge remote branch 'nsz/master'
authorRich Felker <dalias@aerifal.cx>
Wed, 11 Apr 2012 18:59:36 +0000 (14:59 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 11 Apr 2012 18:59:36 +0000 (14:59 -0400)
src/math/i386/asin.s
src/math/x86_64/asinl.s

index cab7bfc..932c754 100644 (file)
@@ -15,9 +15,10 @@ asinl:
 asin:
        fldl 4(%esp)
 1:     fld %st(0)
-       fmul %st(0)
        fld1
-       fsubp %st(1)
+       fsub %st(0),%st(1)
+       fadd %st(2)
+       fmulp
        fsqrt
        fpatan
        ret
index 83c392f..ed212d9 100644 (file)
@@ -3,10 +3,10 @@
 asinl:
        fldt 8(%rsp)
 1:     fld %st(0)
-       fmul %st(0)
        fld1
-       fsubp %st(1)
+       fsub %st(0),%st(1)
+       fadd %st(2)
+       fmulp
        fsqrt
        fpatan
        ret
-