about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-11-10 20:52:00 +0000
committerJakub Jelinek <jakub@redhat.com>2006-11-10 20:52:00 +0000
commit53a451c64a34f4602b9479aaa8effe149e150a54 (patch)
tree767d1ef7ddc089f82c81d728dd51ad3279a670fb /sysdeps
parent8ee382621852ed3c7e5ff17609e69cdfc1ba5c9f (diff)
downloadglibc-53a451c64a34f4602b9479aaa8effe149e150a54.tar.gz
glibc-53a451c64a34f4602b9479aaa8effe149e150a54.tar.xz
glibc-53a451c64a34f4602b9479aaa8effe149e150a54.zip
Updated to fedora-glibc-20061110T2049 cvs/fedora-glibc-2_5_90-6
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/i386/fpu/bits/mathinline.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/sysdeps/i386/fpu/bits/mathinline.h b/sysdeps/i386/fpu/bits/mathinline.h
index 8e7a867ec6..28547d44b8 100644
--- a/sysdeps/i386/fpu/bits/mathinline.h
+++ b/sysdeps/i386/fpu/bits/mathinline.h
@@ -532,16 +532,17 @@ __inline_mathcodeNP (floor, __x, \
   register int __ignore;						      \
   unsigned short int __cw;						      \
   unsigned short int __cwtmp;						      \
-  __asm __volatile ("fnstcw %4\n\t"					      \
-		    "movzwl %4, %1\n\t"					      \
+  __asm __volatile ("fnstcw %3\n\t"					      \
+		    "movzwl %3, %1\n\t"					      \
 		    "andl $0xf3ff, %1\n\t"				      \
 		    "orl $0x0400, %1\n\t"	/* rounding down */	      \
-		    "movw %1, %3\n\t"					      \
-		    "fldcw %3\n\t"					      \
+		    "movw %w1, %2\n\t"					      \
+		    "fldcw %2\n\t"					      \
 		    "frndint\n\t"					      \
-		    "fldcw %4"						      \
-		    : "=t" (__value), "=&q" (__ignore)			      \
-		    : "0" (__x), "m" (__cwtmp), "m" (__cw));		      \
+		    "fldcw %3"						      \
+		    : "=t" (__value), "=&q" (__ignore), "=m" (__cwtmp),	      \
+		      "=m" (__cw)					      \
+		    : "0" (__x));					      \
   return __value)
 
 __inline_mathcodeNP (ceil, __x, \
@@ -549,16 +550,17 @@ __inline_mathcodeNP (ceil, __x, \
   register int __ignore;						      \
   unsigned short int __cw;						      \
   unsigned short int __cwtmp;						      \
-  __asm __volatile ("fnstcw %4\n\t"					      \
-		    "movzwl %4, %1\n\t"					      \
+  __asm __volatile ("fnstcw %3\n\t"					      \
+		    "movzwl %3, %1\n\t"					      \
 		    "andl $0xf3ff, %1\n\t"				      \
 		    "orl $0x0800, %1\n\t"	/* rounding up */	      \
-		    "movw %1, %3\n\t"					      \
-		    "fldcw %3\n\t"					      \
+		    "movw %w1, %2\n\t"					      \
+		    "fldcw %2\n\t"					      \
 		    "frndint\n\t"					      \
-		    "fldcw %4"						      \
-		    : "=t" (__value), "=&q" (__ignore)			      \
-		    : "0" (__x), "m" (__cwtmp), "m" (__cw));		      \
+		    "fldcw %3"						      \
+		    : "=t" (__value), "=&q" (__ignore), "=m" (__cwtmp),	      \
+		      "=m" (__cw)					      \
+		    : "0" (__x));					      \
   return __value)
 
 #ifdef __FAST_MATH__