diff options
Diffstat (limited to 'gnu/lib/libf2c/libF77/d_int.c')
-rw-r--r-- | gnu/lib/libf2c/libF77/d_int.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gnu/lib/libf2c/libF77/d_int.c b/gnu/lib/libf2c/libF77/d_int.c new file mode 100644 index 00000000000..beff1e7d378 --- /dev/null +++ b/gnu/lib/libf2c/libF77/d_int.c @@ -0,0 +1,13 @@ +#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 +{ +return( (*x>0) ? floor(*x) : -floor(- *x) ); +} |