aboutsummaryrefslogtreecommitdiff
path: root/lib/msun/i387/s_copysignf.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/msun/i387/s_copysignf.S')
-rw-r--r--lib/msun/i387/s_copysignf.S20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/msun/i387/s_copysignf.S b/lib/msun/i387/s_copysignf.S
new file mode 100644
index 000000000000..cab971c888f0
--- /dev/null
+++ b/lib/msun/i387/s_copysignf.S
@@ -0,0 +1,20 @@
+/*
+ * Written by J.T. Conklin <jtc@netbsd.org>.
+ * Public domain.
+ */
+
+#include <machine/asm.h>
+/* RCSID("$NetBSD: s_copysignf.S,v 1.3 1995/05/08 23:53:25 jtc Exp $") */
+
+ENTRY(copysignf)
+ movl 8(%esp),%edx
+ andl $0x80000000,%edx
+ movl 4(%esp),%eax
+ andl $0x7fffffff,%eax
+ orl %edx,%eax
+ movl %eax,4(%esp)
+ flds 4(%esp)
+ ret
+END(copysignf)
+
+ .section .note.GNU-stack,"",%progbits