summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/datetime.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-03-14 20:12:10 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-03-14 20:12:10 +0000
commit7ebbf20763281ebd4d9c83063ec37181b575c42a (patch)
tree77005c6861467cf10423273a17d19d5657f13107 /src/backend/utils/adt/datetime.c
parentc6c1fea06db76024e90b1d22b7a320787ff5a742 (diff)
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.
Diffstat (limited to 'src/backend/utils/adt/datetime.c')
-rw-r--r--src/backend/utils/adt/datetime.c35
1 files changed, 1 insertions, 34 deletions
diff --git a/src/backend/utils/adt/datetime.c b/src/backend/utils/adt/datetime.c
index 3a9178da5b6..8e9299643ff 100644
--- a/src/backend/utils/adt/datetime.c
+++ b/src/backend/utils/adt/datetime.c
@@ -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