summaryrefslogtreecommitdiff
path: root/libm/math_private.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-24 15:10:48 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-24 15:10:48 +0200
commit1dc2afe522b1c6d23c4d16b23e083cc38c69da55 (patch)
tree9d7e6a83cb9714c3147bce7accfd0642fa5c2581 /libm/math_private.h
parent59f3d4df3b644583311e89e84cc3fbae6aec8b32 (diff)
use uniform form of C99 keywords
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libm/math_private.h')
-rw-r--r--libm/math_private.h18
1 files changed, 9 insertions, 9 deletions
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