aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386/fpu
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/fpu')
-rw-r--r--sysdeps/i386/fpu/s_remquo.S5
-rw-r--r--sysdeps/i386/fpu/s_remquof.S5
-rw-r--r--sysdeps/i386/fpu/s_remquol.S5
3 files changed, 9 insertions, 6 deletions
diff --git a/sysdeps/i386/fpu/s_remquo.S b/sysdeps/i386/fpu/s_remquo.S
index 4857b98ab4..5056593214 100644
--- a/sysdeps/i386/fpu/s_remquo.S
+++ b/sysdeps/i386/fpu/s_remquo.S
@@ -31,9 +31,10 @@ ENTRY (BP_SYM (__remquo))
andl $4, %ecx
andl $3, %eax
orl %eax, %ecx
- movl $0xef2960, %eax
+ leal (%ecx,%ecx,2),%ecx
+ movl $0xef2a60, %eax
shrl %cl, %eax
- andl $3, %eax
+ andl $7, %eax
movl QUOP(%esp), %ecx
CHECK_BOUNDS_BOTH_WIDE (%ecx, QUOP(%esp), $4)
movl DVDND+4(%esp), %edx
diff --git a/sysdeps/i386/fpu/s_remquof.S b/sysdeps/i386/fpu/s_remquof.S
index 90f46dcbc0..d3c5965be4 100644
--- a/sysdeps/i386/fpu/s_remquof.S
+++ b/sysdeps/i386/fpu/s_remquof.S
@@ -31,9 +31,10 @@ ENTRY (BP_SYM (__remquof))
andl $4, %ecx
andl $3, %eax
orl %eax, %ecx
- movl $0xef2960, %eax
+ leal (%ecx,%ecx,2),%ecx
+ movl $0xef2a60, %eax
shrl %cl, %eax
- andl $3, %eax
+ andl $7, %eax
movl QUOP(%esp), %ecx
CHECK_BOUNDS_BOTH_WIDE (%ecx, QUOP(%esp), $4)
movl DVDND(%esp), %edx
diff --git a/sysdeps/i386/fpu/s_remquol.S b/sysdeps/i386/fpu/s_remquol.S
index c71c002243..65240adbe4 100644
--- a/sysdeps/i386/fpu/s_remquol.S
+++ b/sysdeps/i386/fpu/s_remquol.S
@@ -31,9 +31,10 @@ ENTRY (BP_SYM (__remquol))
andl $4, %ecx
andl $3, %eax
orl %eax, %ecx
- movl $0xef2960, %eax
+ leal (%ecx,%ecx,2),%ecx
+ movl $0xef2a60, %eax
shrl %cl, %eax
- andl $3, %eax
+ andl $7, %eax
movl QUOP(%esp), %ecx
CHECK_BOUNDS_BOTH_WIDE (%ecx, QUOP(%esp), $4)
movl DVDND+8(%esp), %edx