1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

Remove obsolete PowerPC-specific hack for comparisons to DBL_MIN

(per recent discussion with Tatsuo).  Hopefully the compilers with
that old bug are all long gone.
This commit is contained in:
Tom Lane
2001-03-14 20:12:10 +00:00
parent c6c1fea06d
commit 7ebbf20763
2 changed files with 10 additions and 55 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.60 2001/01/24 19:43:13 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.61 2001/03/14 20:12:10 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -2397,36 +2397,3 @@ EncodeTimeSpan(struct tm * tm, double fsec, int style, char *str)
return 0;
} /* EncodeTimeSpan() */
#if defined(linux) && defined(__powerpc__)
int
timestamp_is_epoch(double j)
{
static union
{
double epoch;
unsigned char c[8];
} u;
u.c[0] = 0x80; /* sign bit */
u.c[1] = 0x10; /* DBL_MIN */
return j == u.epoch;
}
int
timestamp_is_current(double j)
{
static union
{
double current;
unsigned char c[8];
} u;
u.c[1] = 0x10; /* DBL_MIN */
return j == u.current;
}
#endif