]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Avoid endless loop.
authorUlrich Drepper <drepper@redhat.com>
Thu, 7 May 1998 12:05:03 +0000 (12:05 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 7 May 1998 12:05:03 +0000 (12:05 +0000)
sysdeps/libm-i387/e_pow.S
sysdeps/libm-i387/e_powl.S

index 45c41b48ab39e6ad2e83b9b6906a50fd51124a47..75ad211872534e09392ea9400f1d67bc96e38ecc 100644 (file)
@@ -1,5 +1,5 @@
 /* ix87 specific implementation of pow function.
-   Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -125,6 +125,7 @@ ENTRY(__ieee754_pow)
        fmul    %st(1)          // x : ST*x
        fxch
 5:     fmul    %st(0), %st     // x*x : ST*x
+       shrl    $1, %edx
        movl    %eax, %ecx
        orl     %edx, %ecx
        jnz     6b
index 0ea482982284269fd0e83bb6a0c9c8a0e9c59889..2e09dcc820ecb584be23bc9b3ddd94e0c55b90c2 100644 (file)
@@ -1,5 +1,5 @@
 /* ix87 specific implementation of pow function.
-   Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -125,6 +125,7 @@ ENTRY(__ieee754_powl)
        fmul    %st(1)          // x : ST*x
        fxch
 5:     fmul    %st(0), %st     // x*x : ST*x
+       shrl    $1, %edx
        movl    %eax, %ecx
        orl     %edx, %ecx
        jnz     6b