mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
provided by Andrew.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/int8.c,v 1.73 2009/01/01 17:23:49 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/int8.c,v 1.74 2009/06/11 14:49:03 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -608,7 +608,7 @@ int8div(PG_FUNCTION_ARGS)
|
||||
/*
|
||||
* Overflow check. The only possible overflow case is for arg1 =
|
||||
* INT64_MIN, arg2 = -1, where the correct result is -INT64_MIN, which
|
||||
* can't be represented on a two's-complement machine. Most machines
|
||||
* can't be represented on a two's-complement machine. Most machines
|
||||
* produce INT64_MIN but it seems some produce zero.
|
||||
*/
|
||||
if (arg2 == -1 && arg1 < 0 && result <= 0)
|
||||
@ -661,9 +661,9 @@ int8inc(PG_FUNCTION_ARGS)
|
||||
/*
|
||||
* When int8 is pass-by-reference, we provide this special case to avoid
|
||||
* palloc overhead for COUNT(): when called from nodeAgg, we know that the
|
||||
* argument is modifiable local storage, so just update it in-place.
|
||||
* (If int8 is pass-by-value, then of course this is useless as well
|
||||
* as incorrect, so just ifdef it out.)
|
||||
* argument is modifiable local storage, so just update it in-place. (If
|
||||
* int8 is pass-by-value, then of course this is useless as well as
|
||||
* incorrect, so just ifdef it out.)
|
||||
*/
|
||||
#ifndef USE_FLOAT8_BYVAL /* controls int8 too */
|
||||
if (fcinfo->context &&
|
||||
@ -833,7 +833,7 @@ int84div(PG_FUNCTION_ARGS)
|
||||
/*
|
||||
* Overflow check. The only possible overflow case is for arg1 =
|
||||
* INT64_MIN, arg2 = -1, where the correct result is -INT64_MIN, which
|
||||
* can't be represented on a two's-complement machine. Most machines
|
||||
* can't be represented on a two's-complement machine. Most machines
|
||||
* produce INT64_MIN but it seems some produce zero.
|
||||
*/
|
||||
if (arg2 == -1 && arg1 < 0 && result <= 0)
|
||||
@ -1012,7 +1012,7 @@ int82div(PG_FUNCTION_ARGS)
|
||||
/*
|
||||
* Overflow check. The only possible overflow case is for arg1 =
|
||||
* INT64_MIN, arg2 = -1, where the correct result is -INT64_MIN, which
|
||||
* can't be represented on a two's-complement machine. Most machines
|
||||
* can't be represented on a two's-complement machine. Most machines
|
||||
* produce INT64_MIN but it seems some produce zero.
|
||||
*/
|
||||
if (arg2 == -1 && arg1 < 0 && result <= 0)
|
||||
|
Reference in New Issue
Block a user