Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagelib
Path: blob/master/sage/modular/modsym/solaris_fix.h
4072 views
1
// defines NAN and INFINITY on solaris, etc.
2
3
4
#if defined(__sun)
5
6
#define NAN (0.0/0.0)
7
#define INFINITY __builtin_huge_valf()
8
9
#include <ieeefp.h> # needed to define the function "infinite"
10
#undef isinf
11
int isinf(double x) { return !finite(x) && x==x; }
12
13
#endif
14
15