i386 fpu function rewrite
Jakub Jelinek
jakub@redhat.com
Sat May 5 11:31:00 GMT 2001
On Sat, May 05, 2001 at 08:08:30PM +0200, Andreas Jaeger wrote:
> asm ("fld %%st /* x : x */
> fmul %%st(0) /* x^2 : x */
> fld1 /* 1 : x^2 : x */
> fsubp /* 1 - x^2 : x */
> fsqrt /* sqrt (1 - x^2) : x */
> fxch %%st(1) /* x : sqrt (1 - x^2) */
> fpatan /* atan (sqrt(1 - x^2) / x) */"
> : "=t" (res) : "0" (x) : "st(1)");
Now that gcc deprecates multi-line string literals you probably should either
use \n\ or make it a bunch of one line strings contatenated together.
Jakub
More information about the Libc-alpha
mailing list