2011-08-12 21:01:25 +02:00
|
|
|
/*
|
|
|
|
* Written by J.T. Conklin <jtc@netbsd.org>.
|
|
|
|
* Public domain.
|
|
|
|
*/
|
|
|
|
|
2012-05-25 05:14:58 +02:00
|
|
|
#include <i387/bsd_asm.h>
|
2011-08-12 21:01:25 +02:00
|
|
|
|
2011-12-15 07:16:26 +01:00
|
|
|
//__FBSDID("$FreeBSD: src/lib/msun/i387/s_copysignf.S,v 1.3 2011/01/07 16:13:12 kib Exp $");
|
2011-08-12 21:01:25 +02:00
|
|
|
/* RCSID("$NetBSD: s_copysignf.S,v 1.3 1995/05/08 23:53:25 jtc Exp $") */
|
|
|
|
|
|
|
|
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
|
|
|
|
END(copysignf)
|
|
|
|
|
2012-05-25 05:14:58 +02:00
|
|
|
|
2013-12-21 21:18:57 +01:00
|
|
|
/* Enable stack protection */
|
2015-11-07 10:28:48 +01:00
|
|
|
#if defined(__ELF__)
|
2013-12-21 21:18:57 +01:00
|
|
|
.section .note.GNU-stack,"",%progbits
|
|
|
|
#endif
|