mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
AIX float fix.
This commit is contained in:
parent
5e2c0a87c9
commit
c30b8f9dbd
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.23 1997/09/24 15:40:59 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.24 1997/09/26 20:32:02 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1518,14 +1518,31 @@ double x;
|
|||||||
#ifndef HAVE_ISINF
|
#ifndef HAVE_ISINF
|
||||||
|
|
||||||
#if defined(aix)
|
#if defined(aix)
|
||||||
|
|
||||||
#ifdef CLASS_CONFLICT
|
#ifdef CLASS_CONFLICT
|
||||||
/* we want the math symbol */
|
/* we want the math symbol */
|
||||||
#undef class
|
#undef class
|
||||||
#endif /* CLASS_CONFICT */
|
#endif /* CLASS_CONFICT */
|
||||||
|
|
||||||
|
/* The gcc doesn't support isinf() (without libgcc?) so we
|
||||||
|
* have to do it - Gerhard Reitofer
|
||||||
|
*/
|
||||||
|
#ifdef __GNUC__
|
||||||
|
|
||||||
static int
|
static int
|
||||||
isinf(x)
|
isinf(double x)
|
||||||
double x;
|
{
|
||||||
|
if (x == HUGE_VAL)
|
||||||
|
return(1);
|
||||||
|
if (x == -HUGE_VAL)
|
||||||
|
return(-1);
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
#else /* __GNUC__ */
|
||||||
|
|
||||||
|
static int
|
||||||
|
isinf(double x)
|
||||||
{
|
{
|
||||||
int fpclass = class(x);
|
int fpclass = class(x);
|
||||||
|
|
||||||
@ -1536,6 +1553,8 @@ double x;
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* __GNUC__ */
|
||||||
|
|
||||||
#endif /* aix */
|
#endif /* aix */
|
||||||
|
|
||||||
#if defined(ultrix4)
|
#if defined(ultrix4)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user