summaryrefslogtreecommitdiff
path: root/sysdeps/libm-i387/s_copysign.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-i387/s_copysign.S')
-rw-r--r--sysdeps/libm-i387/s_copysign.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/libm-i387/s_copysign.S b/sysdeps/libm-i387/s_copysign.S
index 0de3affa46..45b86f58c8 100644
--- a/sysdeps/libm-i387/s_copysign.S
+++ b/sysdeps/libm-i387/s_copysign.S
@@ -9,11 +9,12 @@ RCSID("$NetBSD: s_copysign.S,v 1.4 1995/05/08 23:53:02 jtc Exp $")
ENTRY(__copysign)
movl 16(%esp),%edx
- andl $0x80000000,%edx
movl 8(%esp),%eax
+ andl $0x80000000,%edx
andl $0x7fffffff,%eax
orl %edx,%eax
movl %eax,8(%esp)
fldl 4(%esp)
ret
+PSEUDO_END (__copysign)
weak_alias (__copysign, copysign)