From: Andreas Jaeger Date: Tue, 18 Sep 2001 14:13:20 +0000 (+0000) Subject: Update. X-Git-Tag: upstream/2.30~22466 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51e59281644fd7b99f9ff70af6761b7f5b2b2419;p=external%2Fglibc.git Update. 2001-09-18 Andreas Jaeger * sysdeps/i386/fpu/s_logbl.S: Move to ... * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler. * sysdeps/i386/fpu/s_rintl.S: Move to ... * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler. * sysdeps/i386/fpu/s_significandl.S: Move to ... * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler. --- diff --git a/ChangeLog b/ChangeLog index 00d55cc..619fde2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2001-09-18 Andreas Jaeger + + * sysdeps/i386/fpu/s_logbl.S: Move to ... + * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler. + + * sysdeps/i386/fpu/s_rintl.S: Move to ... + * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler. + + * sysdeps/i386/fpu/s_significandl.S: Move to ... + * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler. + 2001-09-16 Ulrich Drepper * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get diff --git a/sysdeps/generic/initfini.c b/sysdeps/generic/initfini.c index af5846a..3f5c3b3 100644 --- a/sysdeps/generic/initfini.c +++ b/sysdeps/generic/initfini.c @@ -7,7 +7,6 @@ License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. - In addition to the permissions in the GNU Lesser General Public License, the Free Software Foundation gives you unlimited permission to link the compiled version of this file with other diff --git a/sysdeps/i386/fpu/s_logbl.c b/sysdeps/i386/fpu/s_logbl.c new file mode 100644 index 0000000..391e2db --- /dev/null +++ b/sysdeps/i386/fpu/s_logbl.c @@ -0,0 +1,19 @@ +/* + * Written by J.T. Conklin . + * Changes for long double by Ulrich Drepper + * Public domain. + */ + +#include + +long double +__logbl (long double x) +{ + long double res; + + asm ("fxtract\n" + "fstp %%st" : "=t" (res) : "0" (x)); + return res; +} + +weak_alias (__logbl, logbl) diff --git a/sysdeps/i386/fpu/s_rintl.c b/sysdeps/i386/fpu/s_rintl.c new file mode 100644 index 0000000..66af9cb --- /dev/null +++ b/sysdeps/i386/fpu/s_rintl.c @@ -0,0 +1,18 @@ +/* + * Written by J.T. Conklin . + * Changes for long double by Ulrich Drepper + * Public domain. + */ + +#include + +long double +__rintl (long double x) +{ + long double res; + + asm ("frndint" : "=t" (res) : "0" (x)); + return res; +} + +weak_alias (__rintl, rintl) diff --git a/sysdeps/i386/fpu/s_significandl.c b/sysdeps/i386/fpu/s_significandl.c new file mode 100644 index 0000000..f31b77a --- /dev/null +++ b/sysdeps/i386/fpu/s_significandl.c @@ -0,0 +1,19 @@ +/* + * Written by J.T. Conklin . + * Changes for long double by Ulrich Drepper + * Public domain. + */ + +#include + +long double +__significandl (long double x) +{ + long double res; + + asm ("fxtract\n" + "fstp %%st(0)" : "=t" (res) : "0" (x)); + return res; +} + +weak_alias (__significandl, significandl)