[compiler-rt] 492c5c0 - compiler-rt/lib/builtins/udivmodei5.c: Fix missing macro argument
Matthias Gehre via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 8 02:55:54 PDT 2022
Author: Matthias Gehre
Date: 2022-04-08T10:55:35+01:00
New Revision: 492c5c05e111b81e2e7f1faa69756082fb826085
URL: https://github.com/llvm/llvm-project/commit/492c5c05e111b81e2e7f1faa69756082fb826085
DIFF: https://github.com/llvm/llvm-project/commit/492c5c05e111b81e2e7f1faa69756082fb826085.diff
LOG: compiler-rt/lib/builtins/udivmodei5.c: Fix missing macro argument
Added:
Modified:
compiler-rt/lib/builtins/udivmodei5.c
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/udivmodei5.c b/compiler-rt/lib/builtins/udivmodei5.c
index 823c5e4dbd905..d1cc62c191357 100644
--- a/compiler-rt/lib/builtins/udivmodei5.c
+++ b/compiler-rt/lib/builtins/udivmodei5.c
@@ -31,7 +31,7 @@ static const su_int WORD_MSB = (su_int)1 << (WORD_SIZE_IN_BITS - 1);
#if _YUGA_LITTLE_ENDIAN
#define WORD_IDX(X, words) (X)
#else
-#define WORD_IDX(X) ((words) - (X))
+#define WORD_IDX(X, words) ((words) - (X))
#endif
static bool has_msb_set(su_int a) { return (a & WORD_MSB) != 0; }
More information about the llvm-commits
mailing list