OpenLIBM: local modification - elf notes on assembly
[dragonfly.git] / contrib / openbsd_libm / arch / amd64 / s_rint.S
blob1468921c1feb8ab0d78d56dcf5e91facb9b63a54
1 /*      $OpenBSD: s_rint.S,v 1.2 2005/08/02 11:17:31 espie Exp $ */
2 /*
3  * Written by J.T. Conklin <jtc@NetBSD.org>.
4  * Public domain.
5  */
7 #include <machine/asm.h>
9 #include "abi.h"
11 ENTRY(rint)
12         XMM_ONE_ARG_DOUBLE_PROLOGUE
13         fldl    ARG_DOUBLE_ONE
14         frndint
15         XMM_DOUBLE_EPILOGUE
16         ret
17 END(rint)
19         .section .note.GNU-stack,"",%progbits