OSDN Git Service

- add some more math functions (patch from gentoo/solar)
[uclinux-h8/uClibc.git] / libm / s_nearbyint.c
1 /*
2  * ====================================================
3  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
4  *
5  * Developed at SunPro, a Sun Microsystems, Inc. business.
6  * Permission to use, copy, modify, and distribute this
7  * software is freely granted, provided that this notice
8  * is preserved.
9  * ====================================================
10  */
11
12 #include "math.h"
13 #include "math_private.h"
14
15 libm_hidden_proto(nearbyint)
16 #ifdef __STDC__
17         double nearbyint(double x)
18 #else
19         double nearbyint(x)
20         double x;
21 #endif
22 {
23   return rint(x);
24 }
25 libm_hidden_def(nearbyint)