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

Lines changed: 0 additions & 6 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy