19 lines
315 B
ArmAsm
19 lines
315 B
ArmAsm
/*
|
|
* Written by J.T. Conklin <jtc@netbsd.org>.
|
|
* Public domain.
|
|
*/
|
|
|
|
#include <machine/asm.h>
|
|
|
|
RCSID("$Id: s_copysign.S,v 1.3 1995/04/28 22:43:54 jtc Exp $")
|
|
|
|
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
|