From 2195d627fb793fec6c00bdddf1c4d46982b9f27f Mon Sep 17 00:00:00 2001 From: ljo Date: Wed, 26 Oct 1994 18:17:41 +0000 Subject: Library for f2c (part 2 of 2) Obtained from: netlib.att.com --- lib/libF77/h_dnnt.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/libF77/h_dnnt.c (limited to 'lib/libF77/h_dnnt.c') diff --git a/lib/libF77/h_dnnt.c b/lib/libF77/h_dnnt.c new file mode 100644 index 0000000..9fbeb5c --- /dev/null +++ b/lib/libF77/h_dnnt.c @@ -0,0 +1,14 @@ +#include "f2c.h" + +#ifdef KR_headers +double floor(); +shortint h_dnnt(x) doublereal *x; +#else +#undef abs +#include "math.h" +shortint h_dnnt(doublereal *x) +#endif +{ +return( (*x)>=0 ? + floor(*x + .5) : -floor(.5 - *x) ); +} -- cgit v1.1