libm: Add .section .note.GNU-stack to all assembly files
[dragonfly.git] / lib / libm / arch / i386 / lrint.S
CommitLineData
b34b60bc
JS
1/*
2 * Written by Matthias Drochner <drochner@NetBSD.org>.
3 * Public domain.
4 *
5 * $NetBSD: lrint.S,v 1.2 2004/10/13 15:18:32 drochner Exp $
b34b60bc
JS
6 */
7
8#include <machine/asm.h>
9
10ENTRY(lrint)
11#ifdef __i386__
12 pushl %ebp
13 movl %esp,%ebp
14 subl $4,%esp
15 fldl 8(%ebp)
16 fistpl (%esp)
17 movl (%esp),%eax
18 leave
19 ret
20#else
21 cvtsd2siq %xmm0,%rax
22 ret
23#endif
d04e8698 24END(lrint)
70e34eb2
JM
25
26 .section .note.GNU-stack,"",%progbits