1/*
2 * Public domain.
3 */
4
5#include <machine/asm.h>
6#include <libm-alias-double.h>
7
8ENTRY(__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
18END (__nearbyint)
19libm_alias_double (__nearbyint, nearbyint)
20