0004-Remove-Abs.patch

text/plain

Filename: 0004-Remove-Abs.patch
Type: text/plain
Part: 3
Message: get rid of Abs()

Patch

Format: format-patch
Series: patch 0004
Subject: Remove Abs()
File+
src/include/c.h 0 6
From 402d8533f265cf375ca4606e50870093fe6cdf4c Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter@eisentraut.org>
Date: Tue, 4 Oct 2022 08:15:14 +0200
Subject: [PATCH 4/4] Remove Abs()

---
 src/include/c.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/include/c.h b/src/include/c.h
index c8f72e44d894..c7a3288b49f0 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -975,12 +975,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)
-- 
2.37.3