diff options
author | kan <kan@FreeBSD.org> | 2003-07-11 03:42:19 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2003-07-11 03:42:19 +0000 |
commit | b664230ac178e69c3c146968ee0c3300a4009f60 (patch) | |
tree | 01f695ddb223c95a40652601894e4291cdf92786 /contrib/libf2c/libF77/d_nint.c | |
parent | aa78059bdb419f0b5779c9b913f71eea20a91f56 (diff) | |
parent | 7b704871fdac058719f34a1e6b9de71ee76c5be4 (diff) | |
download | FreeBSD-src-b664230ac178e69c3c146968ee0c3300a4009f60.zip FreeBSD-src-b664230ac178e69c3c146968ee0c3300a4009f60.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r117401,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/libf2c/libF77/d_nint.c')
-rw-r--r-- | contrib/libf2c/libF77/d_nint.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/contrib/libf2c/libF77/d_nint.c b/contrib/libf2c/libF77/d_nint.c index 064beff..8be4275 100644 --- a/contrib/libf2c/libF77/d_nint.c +++ b/contrib/libf2c/libF77/d_nint.c @@ -1,14 +1,9 @@ #include "f2c.h" -#ifdef KR_headers -double floor(); -double d_nint(x) doublereal *x; -#else #undef abs #include <math.h> -double d_nint(doublereal *x) -#endif +double +d_nint (doublereal * x) { -return( (*x)>=0 ? - floor(*x + .5) : -floor(.5 - *x) ); + return ((*x) >= 0 ? floor (*x + .5) : -floor (.5 - *x)); } |