From: Ulrich Drepper Date: Fri, 16 Jul 1999 23:25:29 +0000 (+0000) Subject: Use addl instead of pop/pop to keep program deterministic. X-Git-Tag: cvs/glibc_2-1-2~261 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=094e45d49dbcd14ff447f130e91daf40dfe26697;p=thirdparty%2Fglibc.git Use addl instead of pop/pop to keep program deterministic. --- diff --git a/sysdeps/libm-i387/e_pow.S b/sysdeps/libm-i387/e_pow.S index 75ad2118725..6b20482319f 100644 --- a/sysdeps/libm-i387/e_pow.S +++ b/sysdeps/libm-i387/e_pow.S @@ -1,5 +1,5 @@ /* ix87 specific implementation of pow function. - Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. @@ -279,8 +279,7 @@ ENTRY(__ieee754_pow) ret 25: fstp %st(0) -26: popl %eax - popl %edx +26: addl $8, %esp 27: // Raise divide-by-zero exception and get infinity value. fldl MO(one) fdivl MO(zero) diff --git a/sysdeps/libm-i387/e_powf.S b/sysdeps/libm-i387/e_powf.S index d7342bf56f6..9ea41ba3c97 100644 --- a/sysdeps/libm-i387/e_powf.S +++ b/sysdeps/libm-i387/e_powf.S @@ -1,5 +1,5 @@ /* ix87 specific implementation of pow function. - Copyright (C) 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. @@ -272,7 +272,7 @@ ENTRY(__ieee754_powf) ret 25: fstp %st(0) -26: popl %eax +26: addl $4, %esp 27: // Raise divide-by-zero exception and get infinity value. fldl MO(one) fdivl MO(zero) diff --git a/sysdeps/libm-i387/e_powl.S b/sysdeps/libm-i387/e_powl.S index 2e09dcc820e..e733e522c85 100644 --- a/sysdeps/libm-i387/e_powl.S +++ b/sysdeps/libm-i387/e_powl.S @@ -1,5 +1,5 @@ /* ix87 specific implementation of pow function. - Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. @@ -269,8 +269,7 @@ ENTRY(__ieee754_powl) ret 25: fstp %st(0) -26: popl %eax - popl %edx +26: addl $8, %esp 27: // Raise divide-by-zero exception and get infinity value. fldl MO(one) fdivl MO(zero)