1 /*-------------------------------------------------------------------------
5 * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
6 * Portions Copyright (c) 1994, Regents of the University of California
12 *-------------------------------------------------------------------------
20 #if HAVE_FPCLASS /* this is _not_ HAVE_FP_CLASS, and not typo */
28 fpclass_t type
= fpclass(d
);
42 #if defined(HAVE_FP_CLASS) || defined(HAVE_FP_CLASS_D)
52 int fpclass
= fp_class(x
);
54 int fpclass
= fp_class_d(x
);
57 if (fpclass
== FP_POS_INF
)
59 if (fpclass
== FP_NEG_INF
)
63 #elif defined(HAVE_CLASS)
67 int fpclass
= class(x
);
69 if (fpclass
== FP_PLUS_INF
)
71 if (fpclass
== FP_MINUS_INF
)