1994-08-19 07:56:44 +04:00
|
|
|
/*
|
1995-04-29 02:43:31 +04:00
|
|
|
* Written by J.T. Conklin <jtc@netbsd.org>.
|
|
|
|
* Public domain.
|
1994-08-19 07:56:44 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <machine/asm.h>
|
|
|
|
|
1995-04-29 02:43:31 +04:00
|
|
|
RCSID("$Id: s_copysignf.S,v 1.2 1995/04/28 22:43:56 jtc Exp $")
|
1994-08-19 07:56:44 +04:00
|
|
|
|
|
|
|
ENTRY(copysignf)
|
|
|
|
movl 8(%esp),%edx
|
|
|
|
andl $0x80000000,%edx
|
|
|
|
movl 4(%esp),%eax
|
|
|
|
andl $0x7fffffff,%eax
|
|
|
|
orl %edx,%eax
|
|
|
|
movl %eax,4(%esp)
|
|
|
|
flds 4(%esp)
|
|
|
|
ret
|