Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a699b7a

Browse files
committed
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
1 parent 4574eb9 commit a699b7a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/include/c.h

-6
Original file line numberDiff line numberDiff line change
@@ -950,12 +950,6 @@ extern void ExceptionalCondition(const char *conditionName,
950950
*/
951951
#define Min(x, y) ((x) < (y) ? (x) : (y))
952952

953-
/*
954-
* Abs
955-
* Return the absolute value of the argument.
956-
*/
957-
#define Abs(x) ((x) >= 0 ? (x) : -(x))
958-
959953

960954
/* Get a bit mask of the bits set in non-long aligned addresses */
961955
#define LONG_ALIGN_MASK (sizeof(long) - 1)

0 commit comments

Comments
 (0)