diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-08-06 08:17:47 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-08-06 08:17:47 +0000 |
commit | 9581d701d8c3a966ee4a73a5221c257a1c1a1e58 (patch) | |
tree | 7d249ade5878a78ed3cec2b3e96c11b7affb978a /libc/sysdeps/linux/i386/bits | |
parent | afedbca93b51b6471704007f5743ba890756b33a (diff) |
- some more asm keyword fixes (Yann E. MORIN)
Diffstat (limited to 'libc/sysdeps/linux/i386/bits')
-rw-r--r-- | libc/sysdeps/linux/i386/bits/mathinline.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/libc/sysdeps/linux/i386/bits/mathinline.h b/libc/sysdeps/linux/i386/bits/mathinline.h index 879b76b40..ca7277d76 100644 --- a/libc/sysdeps/linux/i386/bits/mathinline.h +++ b/libc/sysdeps/linux/i386/bits/mathinline.h @@ -299,12 +299,12 @@ __inline_mathcode (__pow2, __x, \ __extension__ long long int __p = (long long int) __x; \ if (__x == (long double) __p) \ { \ - __asm __volatile__ \ + __asm__ __volatile__ \ ("fscale" \ : "=t" (__value) : "0" (1.0), "u" (__x)); \ return __value; \ } \ - __asm __volatile__ \ + __asm__ __volatile__ \ ("fld %%st(0)\n\t" \ "frndint # int(x)\n\t" \ "fxch\n\t" \ @@ -312,7 +312,7 @@ __inline_mathcode (__pow2, __x, \ "f2xm1 # 2^(fract(x)) - 1\n\t" \ : "=t" (__value), "=u" (__exponent) : "0" (__x)); \ __value += 1.0; \ - __asm __volatile__ \ + __asm__ __volatile__ \ ("fscale" \ : "=t" (__value) : "0" (__value), "u" (__exponent)); \ return __value) @@ -321,7 +321,7 @@ __inline_mathcode (__pow2, __x, \ # define __sincos_code \ register long double __cosr; \ register long double __sinr; \ - __asm __volatile__ \ + __asm__ __volatile__ \ ("fsincos\n\t" \ "fnstsw %%ax\n\t" \ "testl $0x400, %%eax\n\t" \ @@ -373,7 +373,7 @@ __NTH (__sincosl (long double __x, long double *__sinx, long double *__cosx)) register long double __value; \ register long double __exponent; \ register long double __temp; \ - __asm __volatile__ \ + __asm__ __volatile__ \ ("fldl2e # e^x - 1 = 2^(x * log2(e)) - 1\n\t" \ "fmul %%st(1) # x * log2(e)\n\t" \ "fst %%st(1)\n\t" \ @@ -383,7 +383,7 @@ __NTH (__sincosl (long double __x, long double *__sinx, long double *__cosx)) "f2xm1 # 2^(fract(x * log2(e))) - 1\n\t" \ "fscale # 2^(x * log2(e)) - 2^(int(x * log2(e)))\n\t" \ : "=t" (__value), "=u" (__exponent) : "0" (__x)); \ - __asm __volatile__ \ + __asm__ __volatile__ \ ("fscale # 2^int(x * log2(e))\n\t" \ : "=t" (__temp) : "0" (1.0), "u" (__exponent)); \ __temp -= 1.0; \ @@ -398,7 +398,7 @@ __inline_mathcodeNP_ (long double, __expl, __x, return __builtin_expl (__x)) # define __exp_code \ register long double __value; \ register long double __exponent; \ - __asm __volatile__ \ + __asm__ __volatile__ \ ("fldl2e # e^x = 2^(x * log2(e))\n\t" \ "fmul %%st(1) # x * log2(e)\n\t" \ "fst %%st(1)\n\t" \ @@ -408,7 +408,7 @@ __inline_mathcodeNP_ (long double, __expl, __x, return __builtin_expl (__x)) "f2xm1 # 2^(fract(x * log2(e))) - 1\n\t" \ : "=t" (__value), "=u" (__exponent) : "0" (__x)); \ __value += 1.0; \ - __asm __volatile__ \ + __asm__ __volatile__ \ ("fscale" \ : "=t" (__value) : "0" (__value), "u" (__exponent)); \ return __value @@ -421,7 +421,7 @@ __inline_mathcodeNP_ (long double, __expl, __x, __exp_code) __inline_mathcodeNP (tan, __x, \ register long double __value; \ register long double __value2 __attribute__ ((__unused__)); \ - __asm __volatile__ \ + __asm__ __volatile__ \ ("fptan" \ : "=t" (__value2), "=u" (__value) : "0" (__x)); \ return __value) @@ -435,7 +435,7 @@ __inline_mathcodeNP2_ (long double, __atan2l, __y, __x, #else # define __atan2_code \ register long double __value; \ - __asm __volatile__ \ + __asm__ __volatile__ \ ("fpatan" \ : "=t" (__value) : "0" (__x), "u" (__y) : "st(1)"); \ return __value @@ -449,7 +449,7 @@ __inline_mathcodeNP2_ (long double, __atan2l, __y, __x, __atan2_code) #if defined __FAST_MATH__ && !__GNUC_PREREQ (3, 5) __inline_mathcodeNP2 (fmod, __x, __y, \ register long double __value; \ - __asm __volatile__ \ + __asm__ __volatile__ \ ("1: fprem\n\t" \ "fnstsw %%ax\n\t" \ "sahf\n\t" \ @@ -552,7 +552,7 @@ __inline_mathcodeNP (ceil, __x, \ #ifdef __FAST_MATH__ # define __ldexp_code \ register long double __value; \ - __asm __volatile__ \ + __asm__ __volatile__ \ ("fscale" \ : "=t" (__value) : "0" (__x), "u" ((long double) __y)); \ return __value @@ -581,7 +581,7 @@ __inline_mathcodeNP (log1p, __x, \ if (__fabsl (__x) >= 1.0 - 0.5 * __M_SQRT2) \ __value = logl (1.0 + __x); \ else \ - __asm __volatile__ \ + __asm__ __volatile__ \ ("fldln2\n\t" \ "fxch\n\t" \ "fyl2xp1" \ @@ -611,7 +611,7 @@ __inline_mathcodeNP2 (hypot, __x, __y, __inline_mathcodeNP(logb, __x, \ register long double __value; \ register long double __junk; \ - __asm __volatile__ \ + __asm__ __volatile__ \ ("fxtract\n\t" \ : "=t" (__junk), "=u" (__value) : "0" (__x)); \ return __value) @@ -699,7 +699,7 @@ __NTH (llrintl (long double __x)) __inline_mathcodeNP2 (drem, __x, __y, \ register double __value; \ register int __clobbered; \ - __asm __volatile__ \ + __asm__ __volatile__ \ ("1: fprem1\n\t" \ "fstsw %%ax\n\t" \ "sahf\n\t" \ |