aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2022-10-12 06:36:12 +0200
committerPeter Eisentraut <peter@eisentraut.org>2022-10-12 06:53:47 +0200
commita699b7a7aa9f34c19aa7632b3f037f24c8ee7720 (patch)
treef1b387b4cddc0e2857cb4ed80f98ab6bb31096e5 /src
parent4574eb9d38c69f4c90b5468f740ff22519752066 (diff)
downloadpostgresql-a699b7a7aa9f34c19aa7632b3f037f24c8ee7720.tar.gz
postgresql-a699b7a7aa9f34c19aa7632b3f037f24c8ee7720.zip
Remove Abs()
All callers have been replaced by standard C library functions. Reviewed-by: Zhang Mingli <zmlpostgres@gmail.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/4beb42b5-216b-bce8-d452-d924d5794c63%40enterprisedb.com
Diffstat (limited to 'src')
-rw-r--r--src/include/c.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/include/c.h b/src/include/c.h
index bebbfd83d16..e5510e278d1 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -950,12 +950,6 @@ extern void ExceptionalCondition(const char *conditionName,
*/
#define Min(x, y) ((x) < (y) ? (x) : (y))
-/*
- * Abs
- * Return the absolute value of the argument.
- */
-#define Abs(x) ((x) >= 0 ? (x) : -(x))
-
/* Get a bit mask of the bits set in non-long aligned addresses */
#define LONG_ALIGN_MASK (sizeof(long) - 1)