aboutsummaryrefslogtreecommitdiff
path: root/src/backend/port/isinf.c
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-01-15 20:54:52 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-01-15 20:54:52 +0000
commitd876c2580352fad94a22e57792a12da9ec9b85dd (patch)
treef07e5373ad850c309f159186afd29744e67debbe /src/backend/port/isinf.c
parentbaef78d96b799b6264a54f8cfce4fda2b2da9701 (diff)
downloadpostgresql-d876c2580352fad94a22e57792a12da9ec9b85dd.tar.gz
postgresql-d876c2580352fad94a22e57792a12da9ec9b85dd.zip
Fix:
nodeAgg.c: WARN -> NOTICE for elog parse_oper.c: was created after patch for fmgr_info, so function call wrong scan.c: regenerated for i386_solaris using flex 2.5.4 gethostname.c: required prototype for gethostname() function config.h.in: create prototype for isinfo() function isinf.c: "fake" isinf() under i386_solaris using fpclass() call...
Diffstat (limited to 'src/backend/port/isinf.c')
-rw-r--r--src/backend/port/isinf.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/backend/port/isinf.c b/src/backend/port/isinf.c
new file mode 100644
index 00000000000..ca5d22bfe5e
--- /dev/null
+++ b/src/backend/port/isinf.c
@@ -0,0 +1,15 @@
+/* $Id: isinf.c,v 1.1 1998/01/15 20:54:37 scrappy Exp $ */
+
+#include <ieeefp.h>
+#include <math.h>
+
+#include "config.h"
+
+
+int
+isinf(double x)
+{
+ if((fpclass(x) == FP_PINF) || (fpclass(x) == FP_NINF)) return 1;
+ else return 0;
+}
+