1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-12 05:01:15 +03:00

pgindent run before 6.3 release, with Thomas' requested changes.

This commit is contained in:
Bruce Momjian
1998-02-26 04:46:47 +00:00
parent 757bf69a2e
commit a32450a585
430 changed files with 12390 additions and 10292 deletions

View File

@@ -1,16 +1,16 @@
/* $Id: isinf.c,v 1.3 1998/02/17 02:00:12 scrappy Exp $ */
/* $Id: isinf.c,v 1.4 1998/02/26 04:34:10 momjian Exp $ */
#include <math.h>
#include <math.h>
#include "config.h"
#if HAVE_FPCLASS
# if HAVE_IEEEFP_H
# include <ieeefp.h>
# endif
#if HAVE_IEEEFP_H
#include <ieeefp.h>
#endif
int
isinf(double d)
{
fpclass_t type = fpclass(d);
fpclass_t type = fpclass(d);
switch (type)
{
@@ -24,36 +24,40 @@ isinf(double d)
}
return (0);
}
#else
# if defined(HAVE_FP_CLASS) || defined(HAVE_FP_CLASS_D)
# if HAVE_FP_CLASS_H
# include <fp_class.h>
# endif
int
isinf(x)
double x;
{
# if HAVE_FP_CLASS
int fpclass = fp_class(x);
# else
int fpclass = fp_class_d(x);
# endif
if (fpclass == FP_POS_INF)
return (1);
#if defined(HAVE_FP_CLASS) || defined(HAVE_FP_CLASS_D)
#if HAVE_FP_CLASS_H
#include <fp_class.h>
#endif
int
isinf(x)
double x;
{
#if HAVE_FP_CLASS
int fpclass = fp_class(x);
#else
int fpclass = fp_class_d(x);
#endif
if (fpclass == FP_POS_INF)
return (1);
if (fpclass == FP_NEG_INF)
return (-1);
return (0);
}
# endif
#endif
#endif
#if defined(HAVE_CLASS)
int
isinf(double x)
{
int fpclass = class(x);
int fpclass = class(x);
if (fpclass == FP_PLUS_INF)
return (1);
@@ -61,4 +65,5 @@ isinf(double x)
return (-1);
return (0);
}
#endif