diff options
Diffstat (limited to 'libm')
-rw-r--r-- | libm/ldouble_wrappers.c | 8 | ||||
-rw-r--r-- | libm/math_private.h | 18 |
2 files changed, 13 insertions, 13 deletions
diff --git a/libm/ldouble_wrappers.c b/libm/ldouble_wrappers.c index 7d5af90b6..bf7ae15f0 100644 --- a/libm/ldouble_wrappers.c +++ b/libm/ldouble_wrappers.c @@ -66,7 +66,7 @@ long long func##l(long double x) \ long double func##l(long double x) \ { \ long double st_top; \ - __asm ( \ + __asm__ ( \ " fldt %1\n" \ " fstpl %1\n" \ " jmp " __stringify(__GI_##func) "\n" \ @@ -79,7 +79,7 @@ long double func##l(long double x) \ int func##l(long double x) \ { \ int ret; \ - __asm ( \ + __asm__ ( \ " fldt %1\n" \ " fstpl %1\n" \ " jmp " __stringify(__GI_##func) "\n" \ @@ -92,7 +92,7 @@ int func##l(long double x) \ long func##l(long double x) \ { \ long ret; \ - __asm ( \ + __asm__ ( \ " fldt %1\n" \ " fstpl %1\n" \ " jmp " __stringify(__GI_##func) "\n" \ @@ -105,7 +105,7 @@ long func##l(long double x) \ long long func##l(long double x) \ { \ long long ret; \ - __asm ( \ + __asm__ ( \ " fldt %1\n" \ " fstpl %1\n" \ " jmp " __stringify(__GI_##func) "\n" \ diff --git a/libm/math_private.h b/libm/math_private.h index 2c5a30ac2..be8031ef8 100644 --- a/libm/math_private.h +++ b/libm/math_private.h @@ -211,17 +211,17 @@ extern int __kernel_rem_pio2 (double*,double*,int,int,int,const int*) attribu #define math_opt_barrier(x) ({ \ __typeof(x) __x = (x); \ /* "t": load x into top-of-stack fpreg */ \ - __asm ("" : "=t" (__x) : "0" (__x)); \ + __asm__ ("" : "=t" (__x) : "0" (__x)); \ __x; \ }) #define math_force_eval(x) do { \ __typeof(x) __x = (x); \ if (sizeof(__x) <= sizeof(double)) \ /* "m": store x into a memory location */ \ - __asm __volatile ("" : : "m" (__x)); \ + __asm__ __volatile__ ("" : : "m" (__x)); \ else /* long double */ \ /* "f": load x into (any) fpreg */ \ - __asm __volatile ("" : : "f" (__x)); \ + __asm__ __volatile__ ("" : : "f" (__x)); \ } while (0) #endif @@ -230,29 +230,29 @@ extern int __kernel_rem_pio2 (double*,double*,int,int,int,const int*) attribu __typeof(x) __x = (x); \ if (sizeof(__x) <= sizeof(double)) \ /* "x": load into XMM SSE register */ \ - __asm ("" : "=x" (__x) : "0" (__x)); \ + __asm__ ("" : "=x" (__x) : "0" (__x)); \ else /* long double */ \ /* "t": load x into top-of-stack fpreg */ \ - __asm ("" : "=t" (__x) : "0" (__x)); \ + __asm__ ("" : "=t" (__x) : "0" (__x)); \ __x; \ }) #define math_force_eval(x) do { \ __typeof(x) __x = (x); \ if (sizeof(__x) <= sizeof(double)) \ /* "x": load into XMM SSE register */ \ - __asm __volatile ("" : : "x" (__x)); \ + __asm__ __volatile__ ("" : : "x" (__x)); \ else /* long double */ \ /* "f": load x into (any) fpreg */ \ - __asm __volatile ("" : : "f" (__x)); \ + __asm__ __volatile__ ("" : : "f" (__x)); \ } while (0) #endif /* Default implementations force store to a memory location */ #ifndef math_opt_barrier -#define math_opt_barrier(x) ({ __typeof(x) __x = (x); __asm ("" : "+m" (__x)); __x; }) +#define math_opt_barrier(x) ({ __typeof(x) __x = (x); __asm__ ("" : "+m" (__x)); __x; }) #endif #ifndef math_force_eval -#define math_force_eval(x) do { __typeof(x) __x = (x); __asm __volatile ("" : : "m" (__x)); } while (0) +#define math_force_eval(x) do { __typeof(x) __x = (x); __asm__ __volatile__ ("" : : "m" (__x)); } while (0) #endif |