projects
/
users
/
gsingh
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4574eb9
)
Remove Abs()
author
Peter Eisentraut
<
[email protected]
>
Wed, 12 Oct 2022 04:36:12 +0000
(06:36 +0200)
committer
Peter Eisentraut
<
[email protected]
>
Wed, 12 Oct 2022 04:53:47 +0000
(06:53 +0200)
All callers have been replaced by standard C library functions.
Reviewed-by: Zhang Mingli <
[email protected]
>
Reviewed-by: Tom Lane <
[email protected]
>
Discussion: https://www.postgresql.org/message-id/flat/
4beb42b5
-216b-bce8-d452-
d924d5794c63
%40enterprisedb.com
src/include/c.h
patch
|
blob
|
blame
|
history
diff --git
a/src/include/c.h
b/src/include/c.h
index bebbfd83d16a5620bc30a629fbf95abe763ea6f3..e5510e278d1fe73af4c7a37c41d05f2b97c2043a 100644
(file)
--- 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)