c3ad4b4583
the function naming problem for complex double function i've recently aksed for in -committers. (The recently committed rev 1.5 of proc.c was actually also part of this update.) Should the mailing lists come to an agreement that f2c better belongs into the ports, this could be done nevertheless. For the time being, we've at least got a current version now. Thanks, Steve! Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>
14 lines
227 B
C
14 lines
227 B
C
#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 (shortint)(*x >= 0. ? floor(*x + .5) : -floor(.5 - *x));
|
|
}
|