| 1 | /* |
|---|---|
| 2 | * Public domain. |
| 3 | */ |
| 4 | |
| 5 | #include <libm-alias-ldouble.h> |
| 6 | #include <machine/asm.h> |
| 7 | |
| 8 | ENTRY(__nearbyintl) |
| 9 | fldt 8(%rsp) |
| 10 | fnstenv -28(%rsp) |
| 11 | frndint |
| 12 | fnstsw |
| 13 | andl $0x1, %eax |
| 14 | orl %eax, -24(%rsp) |
| 15 | fldenv -28(%rsp) |
| 16 | ret |
| 17 | END (__nearbyintl) |
| 18 | libm_alias_ldouble (__nearbyint, nearbyint) |
| 19 |