libm: Add .section .note.GNU-stack to all assembly files
[dragonfly.git] / lib / libm / arch / i386 / s_scalbn.S
CommitLineData
b34b60bc
JS
1/*
2 * Written by J.T. Conklin <jtc@NetBSD.org>.
3 * Public domain.
4 *
74dfd0cf 5 * $NetBSD: s_scalbn.S,v 1.9 2010/04/23 19:17:07 drochner Exp $
b34b60bc
JS
6 */
7
8#include <machine/asm.h>
9
b34b60bc 10ENTRY(scalbn)
b168675f
PA
11#ifdef __x86_64__
12 movl %edi,-12(%rsp)
13 fildl -12(%rsp)
14 movsd %xmm0,-8(%rsp)
15 fldl -8(%rsp)
16 fscale
17 fstpl -8(%rsp)
18 movsd -8(%rsp),%xmm0
19 fstp %st(0)
20#else
21 fildl 12(%esp)
22 fldl 4(%esp)
b34b60bc 23 fscale
b168675f
PA
24 fstp %st(1) /* clean up stack */
25#endif
b34b60bc 26 ret
d04e8698 27END(scalbn)
70e34eb2
JM
28
29 .section .note.GNU-stack,"",%progbits