mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
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.
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/varbit.c,v 1.60 2010/01/02 16:57:55 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/varbit.c,v 1.61 2010/01/07 04:53:34 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1414,11 +1414,7 @@ bitfromint8(PG_FUNCTION_ARGS)
|
||||
|
||||
r = VARBITS(result);
|
||||
destbitsleft = typmod;
|
||||
#ifndef INT64_IS_BUSTED
|
||||
srcbitsleft = 64;
|
||||
#else
|
||||
srcbitsleft = 32; /* don't try to shift more than 32 */
|
||||
#endif
|
||||
/* drop any input bits that don't fit */
|
||||
srcbitsleft = Min(srcbitsleft, destbitsleft);
|
||||
/* sign-fill any excess bytes in output */
|
||||
|
Reference in New Issue
Block a user