2011-08-12 21:01:25 +02:00
|
|
|
/*
|
|
|
|
* Based on code written by J.T. Conklin <jtc@NetBSD.org>.
|
|
|
|
* Public domain.
|
|
|
|
*/
|
|
|
|
|
2012-05-25 05:14:58 +02:00
|
|
|
#include <i387/bsd_asm.h>
|
2011-12-15 07:16:26 +01:00
|
|
|
//__FBSDID("$FreeBSD: src/lib/msun/i387/s_copysignl.S,v 1.3 2011/01/07 16:13:12 kib Exp $")
|
2011-08-12 21:01:25 +02:00
|
|
|
|
|
|
|
ENTRY(copysignl)
|
|
|
|
movl 24(%esp),%edx
|
|
|
|
andl $0x8000,%edx
|
|
|
|
movl 12(%esp),%eax
|
|
|
|
andl $0x7fff,%eax
|
|
|
|
orl %edx,%eax
|
|
|
|
movl %eax,12(%esp)
|
|
|
|
fldt 4(%esp)
|
|
|
|
ret
|
|
|
|
END(copysignl)
|
|
|
|
|
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
|