Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita699b7a

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 parent4574eb9 commita699b7a

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)

[8]ページ先頭

©2009-2025 Movatter.jp