diff options
Diffstat (limited to 'contrib/libf2c/libF77/i_nint.c')
-rw-r--r-- | contrib/libf2c/libF77/i_nint.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/contrib/libf2c/libF77/i_nint.c b/contrib/libf2c/libF77/i_nint.c index 411ce32821e3..c4eaff48d33c 100644 --- a/contrib/libf2c/libF77/i_nint.c +++ b/contrib/libf2c/libF77/i_nint.c @@ -1,13 +1,9 @@ #include "f2c.h" -#ifdef KR_headers -double floor(); -integer i_nint(x) real *x; -#else #undef abs #include <math.h> -integer i_nint(real *x) -#endif +integer +i_nint (real * x) { -return (integer)(*x >= 0 ? floor(*x + .5) : -floor(.5 - *x)); + return (integer) (*x >= 0 ? floor (*x + .5) : -floor (.5 - *x)); } |