checks for the existence of finite(x) and isinf(x) built into app/gpsymreg.

Linux gcc compilers have the 'macros ??' but solaris gcc does not
This commit is contained in:
jeggermo 2001-06-29 12:15:15 +00:00
commit 375568853a
2 changed files with 6 additions and 0 deletions

View file

@ -161,8 +161,11 @@ class Node
}
// if the result is infinite (positive or negative) or not_a_number (nan) then result becomes 0
// however some versions of gcc (e.g. 2.95.2 on solaris) don't have the finite(x) defined
#ifdef finite
if (!finite(result))
result=0;
#endif
}
template<class Children>