blob: 7e41f96fd7dfe275b514496d6007bf6bcb801042 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* $OpenBSD: s_copysign.S,v 1.4 2016/12/22 16:11:26 naddy Exp $ */
/*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*/
#include "DEFS.h"
ENTRY(copysign)
movl 16(%esp),%edx
andl $0x80000000,%edx
movl 8(%esp),%eax
andl $0x7fffffff,%eax
orl %edx,%eax
movl %eax,8(%esp)
fldl 4(%esp)
ret
END_STD(copysign)
|