]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Optimize branch code.
authorUlrich Drepper <drepper@redhat.com>
Mon, 17 Mar 1997 04:04:45 +0000 (04:04 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 17 Mar 1997 04:04:45 +0000 (04:04 +0000)
sysdeps/libm-i387/e_log.S
sysdeps/libm-i387/e_log10.S
sysdeps/libm-i387/e_log10f.S
sysdeps/libm-i387/e_log10l.S
sysdeps/libm-i387/e_logf.S
sysdeps/libm-i387/e_logl.S

index e7f567d95065130533d45263cc496d181db77a84..c7cacdfb0a7c5ae2bb08f1d39c7fe56313fd362b 100644 (file)
@@ -47,8 +47,8 @@ ENTRY(__ieee754_log)
        fabs                    // |x-1| : x-1 : x : log(2)
        fcompl  MO(limit)       // x-1 : x : log(2)
        fnstsw                  // x-1 : x : log(2)
-       sahf
-       ja      2f
+       andb    $0x45, %ah
+       jz      2f
        fstp    %st(1)          // x-1 : log(2)
        fyl2xp1                 // log(x)
        ret
index ecb691b9054edf3825adf4b22434b49dc57db2f6..2c8488c3a948827faf4a65825336bbe24eea75e5 100644 (file)
@@ -47,8 +47,8 @@ ENTRY(__ieee754_log10)
        fabs                    // |x-1| : x-1 : x : log10(2)
        fcompl  MO(limit)       // x-1 : x : log10(2)
        fnstsw                  // x-1 : x : log10(2)
-       sahf
-       ja      2f
+       andb    $0x45, %ah
+       jz      2f
        fstp    %st(1)          // x-1 : log10(2)
        fyl2xp1                 // log10(x)
        ret
index aac58d02935e300ecc0e49d8c80229add6aa35b2..2c07161085c0d87a93b316563bceb4a4e3c537ab 100644 (file)
@@ -48,8 +48,8 @@ ENTRY(__ieee754_log10f)
        fabs                    // |x-1| : x-1 : x : log10(2)
        fcompl  MO(limit)       // x-1 : x : log10(2)
        fnstsw                  // x-1 : x : log10(2)
-       sahf
-       ja      2f
+       andb    $0x45, %ah
+       jz      2f
        fstp    %st(1)          // x-1 : log10(2)
        fyl2xp1                 // log10(x)
        ret
index 4f51818bddf78123b650f289f5d0f2417d00fc92..6fe7c5a6f78ffdc1c73cab2cd6d0cdb85adc14aa 100644 (file)
@@ -49,8 +49,8 @@ ENTRY(__ieee754_log10l)
        fabs                    // |x-1| : x-1 : x : log10(2)
        fcompl  MO(limit)       // x-1 : x : log10(2)
        fnstsw                  // x-1 : x : log10(2)
-       sahf
-       ja      2f
+       andb    $0x45, %ah
+       jz      2f
        fstp    %st(1)          // x-1 : log10(2)
        fyl2xp1                 // log10(x)
        ret
index 4459b7fc087d837fe9d14560c9b600886ec76306..bdba1d3225479e63d73f309f243ed899ad914d3d 100644 (file)
@@ -48,8 +48,8 @@ ENTRY(__ieee754_logf)
        fabs                    // |x-1| : x-1 : x : log(2)
        fcompl  MO(limit)       // x-1 : x : log(2)
        fnstsw                  // x-1 : x : log(2)
-       sahf
-       ja      2f
+       andb    $0x45, %ah
+       jz      2f
        fstp    %st(1)          // x-1 : log(2)
        fyl2xp1                 // log(x)
        ret
index 08447a27e74463f51094a341db1815e8d812a212..bda3ea508e3807108fc902115804185159fd6b11 100644 (file)
@@ -48,8 +48,8 @@ ENTRY(__ieee754_logl)
        fabs                    // |x-1| : x-1 : x : log(2)
        fcompl  MO(limit)       // x-1 : x : log(2)
        fnstsw                  // x-1 : x : log(2)
-       sahf
-       ja      2f
+       andb    $0x45, %ah
+       jz      2f
        fstp    %st(1)          // x-1 : log(2)
        fyl2xp1                 // log(x)
        ret