aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2004-09-14 13:40:42 +0000
committerLev Walkin <vlm@lionet.info>2004-09-14 13:40:42 +0000
commit40319a1a1deb64dbb78aad2f6e4f51b37ddf4e61 (patch)
tree8bb8d7e49757f218aaef4ba11f8ac7d5b058f956
parent99301895819863aa4ccbf5253ce723d39434f747 (diff)
infinity and nan defined
-rw-r--r--skeletons/REAL.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/skeletons/REAL.c b/skeletons/REAL.c
index 79b51736..ea37965b 100644
--- a/skeletons/REAL.c
+++ b/skeletons/REAL.c
@@ -12,6 +12,15 @@
#undef INT_MAX
#define INT_MAX ((int)(((unsigned int)-1) >> 1))
+#ifndef INFINITY
+#define INFINITY HUGE_VAL
+#endif
+
+#ifndef NAN
+static const double nan0;
+#define NAN (nan0/nan0)
+#endif
+
/*
* REAL basic type description.
*/