]> gcc.gnu.org Git - gcc.git/blame - libf2c/libF77/r_nint.c
configure.target (hpux): Set os_include_dir.
[gcc.git] / libf2c / libF77 / r_nint.c
CommitLineData
81fea2b1
JL
1#include "f2c.h"
2
3#ifdef KR_headers
4double floor();
5double r_nint(x) real *x;
6#else
7#undef abs
8#include <math.h>
9double r_nint(real *x)
10#endif
11{
12return( (*x)>=0 ?
13 floor(*x + .5) : -floor(.5 - *x) );
14}
This page took 0.176182 seconds and 5 git commands to generate.