diff options
| author | Tom Lane | 2010-01-07 04:53:35 +0000 |
|---|---|---|
| committer | Tom Lane | 2010-01-07 04:53:35 +0000 |
| commit | 901be0fad4034c9cf8a3588fd6cf2ece82e4b8ce (patch) | |
| tree | 9d25bde7c4533c4be739a78ef14249b06b74e7f7 /src/backend/utils/hash | |
| parent | c282b36dd2a19a4bc05cc81cb4996081a1731d2e (diff) | |
Remove all the special-case code for INT64_IS_BUSTED, per decision that
we're not going to support that anymore.
I did keep the 64-bit-CRC-with-32-bit-arithmetic code, since it has a
performance excuse to live. It's a bit moot since that's all ifdef'd
out, of course.
Diffstat (limited to 'src/backend/utils/hash')
| -rw-r--r-- | src/backend/utils/hash/pg_crc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/utils/hash/pg_crc.c b/src/backend/utils/hash/pg_crc.c index ad862bf34bb..cb317aa896d 100644 --- a/src/backend/utils/hash/pg_crc.c +++ b/src/backend/utils/hash/pg_crc.c @@ -19,7 +19,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/hash/pg_crc.c,v 1.22 2010/01/02 16:57:56 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/hash/pg_crc.c,v 1.23 2010/01/07 04:53:34 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -115,7 +115,7 @@ const uint32 pg_crc32_table[256] = { * (ECMA-182, available from http://www.ecma.ch/ecma1/STAND/ECMA-182.HTM) */ -#ifdef INT64_IS_BUSTED +#if SIZEOF_VOID_P < 8 /* this test must match the one in pg_crc.h */ const uint32 pg_crc64_table0[256] = { 0x00000000, 0xA9EA3693, @@ -378,7 +378,8 @@ const uint32 pg_crc64_table1[256] = { 0x5DEDC41A, 0x1F1D25F1, 0xD80C07CD, 0x9AFCE626 }; -#else /* int64 works */ + +#else /* use int64 implementation */ const uint64 pg_crc64_table[256] = { UINT64CONST(0x0000000000000000), UINT64CONST(0x42F0E1EBA9EA3693), @@ -510,6 +511,6 @@ const uint64 pg_crc64_table[256] = { UINT64CONST(0x5DEDC41A34BBEEB2), UINT64CONST(0x1F1D25F19D51D821), UINT64CONST(0xD80C07CD676F8394), UINT64CONST(0x9AFCE626CE85B507) }; -#endif /* INT64_IS_BUSTED */ +#endif /* SIZEOF_VOID_P < 8 */ #endif /* PROVIDE_64BIT_CRC */ |
