Bring in FreeBSD's msun code for our libm.
[dragonfly.git] / lib / libm / i386 / s_copysignf.S
1 /*
2  * Written by J.T. Conklin <jtc@netbsd.org>.
3  * Public domain.
4  *
5  * $FreeBSD: head/lib/msun/i387/s_copysignf.S 217108 2011-01-07 16:13:12Z kib $
6  * $NetBSD: s_copysignf.S,v 1.3 1995/05/08 23:53:25 jtc Exp $
7  */
8
9 #include <machine/asm.h>
10
11 ENTRY(copysignf)
12         movl    8(%esp),%edx
13         andl    $0x80000000,%edx
14         movl    4(%esp),%eax
15         andl    $0x7fffffff,%eax
16         orl     %edx,%eax
17         movl    %eax,4(%esp)
18         flds    4(%esp)
19         ret
20 END(copysignf)
21
22         .section .note.GNU-stack,"",%progbits