mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
pgindent run for 9.4
This includes removing tabs after periods in C comments, which was applied to back branches, so this change should not effect backpatching.
This commit is contained in:
@ -642,7 +642,7 @@ int4pl(PG_FUNCTION_ARGS)
|
||||
result = arg1 + arg2;
|
||||
|
||||
/*
|
||||
* Overflow check. If the inputs are of different signs then their sum
|
||||
* Overflow check. If the inputs are of different signs then their sum
|
||||
* cannot overflow. If the inputs are of the same sign, their sum had
|
||||
* better be that sign too.
|
||||
*/
|
||||
@ -663,8 +663,8 @@ int4mi(PG_FUNCTION_ARGS)
|
||||
result = arg1 - arg2;
|
||||
|
||||
/*
|
||||
* Overflow check. If the inputs are of the same sign then their
|
||||
* difference cannot overflow. If they are of different signs then the
|
||||
* Overflow check. If the inputs are of the same sign then their
|
||||
* difference cannot overflow. If they are of different signs then the
|
||||
* result should be of the same sign as the first input.
|
||||
*/
|
||||
if (!SAMESIGN(arg1, arg2) && !SAMESIGN(result, arg1))
|
||||
@ -684,7 +684,7 @@ int4mul(PG_FUNCTION_ARGS)
|
||||
result = arg1 * arg2;
|
||||
|
||||
/*
|
||||
* Overflow check. We basically check to see if result / arg2 gives arg1
|
||||
* Overflow check. We basically check to see if result / arg2 gives arg1
|
||||
* again. There are two cases where this fails: arg2 = 0 (which cannot
|
||||
* overflow) and arg1 = INT_MIN, arg2 = -1 (where the division itself will
|
||||
* overflow and thus incorrectly match).
|
||||
@ -794,7 +794,7 @@ int2pl(PG_FUNCTION_ARGS)
|
||||
result = arg1 + arg2;
|
||||
|
||||
/*
|
||||
* Overflow check. If the inputs are of different signs then their sum
|
||||
* Overflow check. If the inputs are of different signs then their sum
|
||||
* cannot overflow. If the inputs are of the same sign, their sum had
|
||||
* better be that sign too.
|
||||
*/
|
||||
@ -815,8 +815,8 @@ int2mi(PG_FUNCTION_ARGS)
|
||||
result = arg1 - arg2;
|
||||
|
||||
/*
|
||||
* Overflow check. If the inputs are of the same sign then their
|
||||
* difference cannot overflow. If they are of different signs then the
|
||||
* Overflow check. If the inputs are of the same sign then their
|
||||
* difference cannot overflow. If they are of different signs then the
|
||||
* result should be of the same sign as the first input.
|
||||
*/
|
||||
if (!SAMESIGN(arg1, arg2) && !SAMESIGN(result, arg1))
|
||||
@ -897,7 +897,7 @@ int24pl(PG_FUNCTION_ARGS)
|
||||
result = arg1 + arg2;
|
||||
|
||||
/*
|
||||
* Overflow check. If the inputs are of different signs then their sum
|
||||
* Overflow check. If the inputs are of different signs then their sum
|
||||
* cannot overflow. If the inputs are of the same sign, their sum had
|
||||
* better be that sign too.
|
||||
*/
|
||||
@ -918,8 +918,8 @@ int24mi(PG_FUNCTION_ARGS)
|
||||
result = arg1 - arg2;
|
||||
|
||||
/*
|
||||
* Overflow check. If the inputs are of the same sign then their
|
||||
* difference cannot overflow. If they are of different signs then the
|
||||
* Overflow check. If the inputs are of the same sign then their
|
||||
* difference cannot overflow. If they are of different signs then the
|
||||
* result should be of the same sign as the first input.
|
||||
*/
|
||||
if (!SAMESIGN(arg1, arg2) && !SAMESIGN(result, arg1))
|
||||
@ -939,7 +939,7 @@ int24mul(PG_FUNCTION_ARGS)
|
||||
result = arg1 * arg2;
|
||||
|
||||
/*
|
||||
* Overflow check. We basically check to see if result / arg2 gives arg1
|
||||
* Overflow check. We basically check to see if result / arg2 gives arg1
|
||||
* again. There is one case where this fails: arg2 = 0 (which cannot
|
||||
* overflow).
|
||||
*
|
||||
@ -985,7 +985,7 @@ int42pl(PG_FUNCTION_ARGS)
|
||||
result = arg1 + arg2;
|
||||
|
||||
/*
|
||||
* Overflow check. If the inputs are of different signs then their sum
|
||||
* Overflow check. If the inputs are of different signs then their sum
|
||||
* cannot overflow. If the inputs are of the same sign, their sum had
|
||||
* better be that sign too.
|
||||
*/
|
||||
@ -1006,8 +1006,8 @@ int42mi(PG_FUNCTION_ARGS)
|
||||
result = arg1 - arg2;
|
||||
|
||||
/*
|
||||
* Overflow check. If the inputs are of the same sign then their
|
||||
* difference cannot overflow. If they are of different signs then the
|
||||
* Overflow check. If the inputs are of the same sign then their
|
||||
* difference cannot overflow. If they are of different signs then the
|
||||
* result should be of the same sign as the first input.
|
||||
*/
|
||||
if (!SAMESIGN(arg1, arg2) && !SAMESIGN(result, arg1))
|
||||
@ -1027,7 +1027,7 @@ int42mul(PG_FUNCTION_ARGS)
|
||||
result = arg1 * arg2;
|
||||
|
||||
/*
|
||||
* Overflow check. We basically check to see if result / arg1 gives arg2
|
||||
* Overflow check. We basically check to see if result / arg1 gives arg2
|
||||
* again. There is one case where this fails: arg1 = 0 (which cannot
|
||||
* overflow).
|
||||
*
|
||||
|
Reference in New Issue
Block a user