1994-02-12 04:31:52 +03:00
|
|
|
/*
|
1995-04-29 02:43:31 +04:00
|
|
|
* Written by J.T. Conklin <jtc@netbsd.org>.
|
|
|
|
* Public domain.
|
1994-02-12 04:31:52 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <machine/asm.h>
|
|
|
|
|
1995-04-29 02:43:31 +04:00
|
|
|
RCSID("$Id: s_copysign.S,v 1.3 1995/04/28 22:43:54 jtc Exp $")
|
1994-03-12 04:30:22 +03:00
|
|
|
|
1994-02-12 04:31:52 +03:00
|
|
|
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
|