summaryrefslogtreecommitdiff
path: root/sysdeps/libm-i387/s_remquol.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-i387/s_remquol.S')
-rw-r--r--sysdeps/libm-i387/s_remquol.S7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/libm-i387/s_remquol.S b/sysdeps/libm-i387/s_remquol.S
index 9c91d90c45..2cbcdf18af 100644
--- a/sysdeps/libm-i387/s_remquol.S
+++ b/sysdeps/libm-i387/s_remquol.S
@@ -25,7 +25,12 @@ ENTRY(__remquol)
shrl %cl, %eax
andl $3, %eax
movl 28(%esp), %ecx
- movl %eax, (%ecx)
+ movl 12(%esp), %edx
+ xorl 24(%esp), %edx
+ testl $0x8000, %edx
+ jz 1f
+ negl %eax
+1: movl %eax, (%ecx)
ret
END (__remquol)
weak_alias (__remquol, remquol)