Linux: Consolidate typesizes.h
[glibc.git] / sysdeps / i386 / fpu / s_nearbyint.S
blobb2a6cf12675749e01f10ce31266658da5f30ea1d
1 /*
2  * Public domain.
3  */
5 #include <machine/asm.h>
6 #include <libm-alias-double.h>
8 ENTRY(__nearbyint)
9         fldl    4(%esp)
10         subl    $32, %esp
11         cfi_adjust_cfa_offset (32)
12         fnstenv 4(%esp)
13         frndint
14         fldenv  4(%esp)
15         addl    $32, %esp
16         cfi_adjust_cfa_offset (-32)
17         ret
18 END (__nearbyint)
19 libm_alias_double (__nearbyint, nearbyint)