@----------------------------------------------------------------------------
@
@ \Source /usr/local/cvsroot/gccsdk/unixlib/source/math-asm/_copysign.s,v $
@ \Date: 2002/09/24 21:0237 $
@ \Revision 1.3 $
@ \State Exp $
@ \Author admin $
@
@----------------------------------------------------------------------------

	.include	"clib/unixlib/asm_dec.s"


	@ double copysign (double x, double y)
	@ returns a value with the magnitude of x and with
	@ the sign bit of y.
        .global  copysign
	NAME    copysign
copysign:
	TST	a3, #0x80000000
	ORRNE	a1, a1, #0x80000000
	BICEQ	a1, a1, #0x80000000
	STMFD	sp!, {a1, a2}
	LDFD	f0, [sp], #8
	return	AL, pc, lr

