summaryrefslogtreecommitdiff
path: root/gnu/lib/libf2c/libF77/h_dnnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/lib/libf2c/libF77/h_dnnt.c')
-rw-r--r--gnu/lib/libf2c/libF77/h_dnnt.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gnu/lib/libf2c/libF77/h_dnnt.c b/gnu/lib/libf2c/libF77/h_dnnt.c
index 005ac6fc412..46c83bbd28e 100644
--- a/gnu/lib/libf2c/libF77/h_dnnt.c
+++ b/gnu/lib/libf2c/libF77/h_dnnt.c
@@ -1,13 +1,9 @@
#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
+shortint
+h_dnnt (doublereal * x)
{
-return (shortint)(*x >= 0. ? floor(*x + .5) : -floor(.5 - *x));
+ return (shortint) (*x >= 0. ? floor (*x + .5) : -floor (.5 - *x));
}