This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: i386 floating point asm in mathinline.h (gcc related)
- To: Andreas Jaeger <aj at suse dot de>
- Subject: Re: i386 floating point asm in mathinline.h (gcc related)
- From: Ulrich Drepper <drepper at cygnus dot com>
- Date: 19 Oct 1999 09:25:48 -0700
- Cc: "GNU C. library Alpha Tester List" <libc-alpha at sourceware dot cygnus dot com>, Tim Prince <tprince at computer dot org>
- References: <u8n1tfl8ys.fsf@gromit.rhein-neckar.de>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
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 `------------------------