xref: /relibc/openlibm/amd64/s_rintl.S (revision b5245817743e08d84f68f0e88cfa26bef8d9504b)
1/*
2 * Written by:
3 *	J.T. Conklin (jtc@netbsd.org)
4 *	Public domain.
5 */
6
7#include <amd64/bsd_asm.h>
8
9ENTRY(rintl)
10#ifndef _WIN64
11	fldt	8(%rsp)
12	frndint
13#else
14    fldt    (%rdx)
15    frndint
16    mov     %rcx,%rax
17    movq    $0x0,0x8(%rcx)
18    fstpt   (%rcx)
19#endif
20	ret
21
22
23/* Enable stack protection */
24#if defined(__ELF__)
25.section .note.GNU-stack,"",%progbits
26#endif
27