aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/int8.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-05-14 13:06:38 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-05-14 13:06:50 -0400
commit5cbfce562f7cd2aab0cdc4694ce298ec3567930e (patch)
tree64e722d72fc5f1803cb6f6371d6cf12863e2812f /src/backend/utils/adt/int8.c
parent1255466f8358ecac29581aa5ecec76628dc2e33c (diff)
downloadpostgresql-5cbfce562f7cd2aab0cdc4694ce298ec3567930e.tar.gz
postgresql-5cbfce562f7cd2aab0cdc4694ce298ec3567930e.zip
Initial pgindent and pgperltidy run for v13.
Includes some manual cleanup of places that pgindent messed up, most of which weren't per project style anyway. Notably, it seems some people didn't absorb the style rules of commit c9d297751, because there were a bunch of new occurrences of function calls with a newline just after the left paren, all with faulty expectations about how the rest of the call would get indented.
Diffstat (limited to 'src/backend/utils/adt/int8.c')
-rw-r--r--src/backend/utils/adt/int8.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/backend/utils/adt/int8.c b/src/backend/utils/adt/int8.c
index 55e0eb05dac..abba8f1df04 100644
--- a/src/backend/utils/adt/int8.c
+++ b/src/backend/utils/adt/int8.c
@@ -684,8 +684,9 @@ int8mod(PG_FUNCTION_ARGS)
static int64
int8gcd_internal(int64 arg1, int64 arg2)
{
- int64 swap;
- int64 a1, a2;
+ int64 swap;
+ int64 a1,
+ a2;
/*
* Put the greater absolute value in arg1.
@@ -744,9 +745,9 @@ int8gcd_internal(int64 arg1, int64 arg2)
Datum
int8gcd(PG_FUNCTION_ARGS)
{
- int64 arg1 = PG_GETARG_INT64(0);
- int64 arg2 = PG_GETARG_INT64(1);
- int64 result;
+ int64 arg1 = PG_GETARG_INT64(0);
+ int64 arg2 = PG_GETARG_INT64(1);
+ int64 result;
result = int8gcd_internal(arg1, arg2);
@@ -759,10 +760,10 @@ int8gcd(PG_FUNCTION_ARGS)
Datum
int8lcm(PG_FUNCTION_ARGS)
{
- int64 arg1 = PG_GETARG_INT64(0);
- int64 arg2 = PG_GETARG_INT64(1);
- int64 gcd;
- int64 result;
+ int64 arg1 = PG_GETARG_INT64(0);
+ int64 arg2 = PG_GETARG_INT64(1);
+ int64 gcd;
+ int64 result;
/*
* Handle lcm(x, 0) = lcm(0, x) = 0 as a special case. This prevents a