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