about summary refs log tree commit diff
path: root/sysdeps/x86_64/fpu/bits
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-10-17 20:30:52 -0400
committerUlrich Drepper <drepper@gmail.com>2011-10-17 20:30:52 -0400
commit228a984d543439308632ade9a77a171c88c11afc (patch)
tree855545724b77f1ba104bb5536eed737367b13fcf /sysdeps/x86_64/fpu/bits
parentc8553a6a6f6fdb20950e5e6b62bfa7e21350449c (diff)
downloadglibc-228a984d543439308632ade9a77a171c88c11afc.tar.gz
glibc-228a984d543439308632ade9a77a171c88c11afc.tar.xz
glibc-228a984d543439308632ade9a77a171c88c11afc.zip
Relax asm requirements for recently added x86-64 math interfaces
Diffstat (limited to 'sysdeps/x86_64/fpu/bits')
-rw-r--r--sysdeps/x86_64/fpu/bits/mathinline.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sysdeps/x86_64/fpu/bits/mathinline.h b/sysdeps/x86_64/fpu/bits/mathinline.h
index 721f6e4731..6221958773 100644
--- a/sysdeps/x86_64/fpu/bits/mathinline.h
+++ b/sysdeps/x86_64/fpu/bits/mathinline.h
@@ -156,14 +156,14 @@ __MATH_INLINE double
 __NTH (rint (double __x))
 {
   double __res;
-  __asm ("roundsd $4, %1, %0" : "=x" (__res) : "x" (__x));
+  __asm ("roundsd $4, %1, %0" : "=x" (__res) : "xm" (__x));
   return __res;
 }
 __MATH_INLINE float
 __NTH (rintf (float __x))
 {
   float __res;
-  __asm ("roundss $4, %1, %0" : "=x" (__res) : "x" (__x));
+  __asm ("roundss $4, %1, %0" : "=x" (__res) : "xm" (__x));
   return __res;
 }
 
@@ -176,7 +176,7 @@ __MATH_INLINE double
 __NTH (ceil (double __x))
 {
   double __res;
-  __asm ("roundsd $2, %1, %0" : "=x" (__res) : "x" (__x));
+  __asm ("roundsd $2, %1, %0" : "=x" (__res) : "xm" (__x));
   return __res;
 }
 __END_NAMESPACE_STD
@@ -186,7 +186,7 @@ __MATH_INLINE float
 __NTH (ceilf (float __x))
 {
   float __res;
-  __asm ("roundss $2, %1, %0" : "=x" (__res) : "x" (__x));
+  __asm ("roundss $2, %1, %0" : "=x" (__res) : "xm" (__x));
   return __res;
 }
 __END_NAMESPACE_C99
@@ -197,7 +197,7 @@ __MATH_INLINE double
 __NTH (floor (double __x))
 {
   double __res;
-  __asm ("roundsd $1, %1, %0" : "=x" (__res) : "x" (__x));
+  __asm ("roundsd $1, %1, %0" : "=x" (__res) : "xm" (__x));
   return __res;
 }
 __END_NAMESPACE_STD
@@ -207,7 +207,7 @@ __MATH_INLINE float
 __NTH (floorf (float __x))
 {
   float __res;
-  __asm ("roundss $1, %1, %0" : "=x" (__res) : "x" (__x));
+  __asm ("roundss $1, %1, %0" : "=x" (__res) : "xm" (__x));
   return __res;
 }
 __END_NAMESPACE_C99