i386 floating point asm in mathinline.h (gcc related)
Ulrich Drepper
drepper@cygnus.com
Tue Oct 19 09:28:00 GMT 1999
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 `------------------------
More information about the Libc-alpha
mailing list