This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: i386 floating point asm in mathinline.h (gcc related)


Andreas Jaeger <aj@suse.de> writes:

> Currently we use e.g.
>  __inline_mathop (log, "fldln2; fxch; fyl2x")
> which expands to (I simplified a little bit):
> 
> inline double log (double __x)
> {
>   register double __result;
>   __asm __volatile__ ("fldln2; fxch; fyl2x" : "=t" (__result) : "0" (__x))
>   return __result;
> }

This is not the latest version.  In the latest versio it is specified
that st(1) is clobbered.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]