fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libm / common / s_nearbyint.c
blob25e629b659210080dae49f98a7f1d273761ee0cc
1 /*
2 * ====================================================
3 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
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 * ====================================================
12 #include <math.h>
13 #include "fdlibm.h"
15 #ifndef _DOUBLE_IS_32BITS
17 #ifdef __STDC__
18 double nearbyint(double x)
19 #else
20 double nearbyint(x)
21 double x;
22 #endif
24 return rint(x);
27 #endif /* _DOUBLE_IS_32BITS */