xref: /openbsd/lib/libm/arch/i387/s_copysignf.S (revision 73471bf0)
1/*	$OpenBSD: s_copysignf.S,v 1.4 2016/12/22 16:11:26 naddy Exp $ */
2/*
3 * Written by J.T. Conklin <jtc@netbsd.org>.
4 * Public domain.
5 */
6
7#include "DEFS.h"
8
9ENTRY(copysignf)
10	movl	8(%esp),%edx
11	andl	$0x80000000,%edx
12	movl	4(%esp),%eax
13	andl	$0x7fffffff,%eax
14	orl	%edx,%eax
15	movl	%eax,4(%esp)
16	flds	4(%esp)
17	ret
18END_STD(copysignf)
19