1 #include <../../nrnconf.h> 13 #define EPS hoc_epsilon 26 static double errcheck(
double,
const char *);
30 d =
atan2(*hoc_getarg(1), *hoc_getarg(2));
35 double Log(
double x) {
50 fprintf(stderr,
"exp(%g) out of range, returning exp(700)\n", x);
53 fprintf(stderr,
"No more errno warnings during this execution\n");
75 double Pow(
double x,
double y) {
81 return (
double) (
long) (x -
EPS);
83 return (
double) (
long) (x +
EPS);
92 }
else if (
errno == ERANGE) {
101 fprintf(stderr,
"No more errno warnings during this execution\n");
112 static parallel_eagain = 0;
120 if (
errno == EAGAIN) {
125 #if !defined(MAC) || defined(DARWIN) 126 if (
errno == ENOENT) {
136 if (
errno == EBUSY) {
143 fprintf(stderr,
"A math function was called with argument out of domain\n");
146 fprintf(stderr,
"A math function was called that returned an out of range value\n");
151 if (parallel_eagain++ == 0) {
153 fprintf(stderr,
"oc: This error occurs often from LINDA and thus will not be further reported.\n");
162 fprintf(stderr,
"No more errno warnings during this execution\n");
double Pow(double x, double y)
double hoc1_Exp(double x)
void hoc_warning(const char *, const char *)
int hoc_errno_check(void)
void hoc_execerror(const char *, const char *)
fprintf(stderr, "Don't know the location of params at %p\, pp)
static double errcheck(double, const char *)