diff options
Diffstat (limited to 'gnu/usr.bin/gcc/f/runtime/libF77/i_dnnt.c')
-rw-r--r-- | gnu/usr.bin/gcc/f/runtime/libF77/i_dnnt.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/f/runtime/libF77/i_dnnt.c b/gnu/usr.bin/gcc/f/runtime/libF77/i_dnnt.c new file mode 100644 index 00000000000..9d46c4b6ad9 --- /dev/null +++ b/gnu/usr.bin/gcc/f/runtime/libF77/i_dnnt.c @@ -0,0 +1,14 @@ +#include "f2c.h" + +#ifdef KR_headers +double floor(); +integer i_dnnt(x) doublereal *x; +#else +#undef abs +#include "math.h" +integer i_dnnt(doublereal *x) +#endif +{ +return( (*x)>=0 ? + floor(*x + .5) : -floor(.5 - *x) ); +} |