Skip to content

Commit 1956194

Browse files
committed
remove i from method names
1 parent d7c843b commit 1956194

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

llvm/include/llvm/ADT/APInt.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2295,10 +2295,10 @@ LLVM_ABI APInt mulhs(const APInt &C1, const APInt &C2);
22952295
LLVM_ABI APInt mulhu(const APInt &C1, const APInt &C2);
22962296

22972297
/// Performs (2*N)-bit multiplication on sign-extended operands.
2298-
LLVM_ABI APInt mulsi_extended(const APInt &C1, const APInt &C2);
2298+
LLVM_ABI APInt mulsExtended(const APInt &C1, const APInt &C2);
22992299

23002300
/// Performs (2*N)-bit multiplication on zero-extended operands.
2301-
LLVM_ABI APInt mului_extended(const APInt &C1, const APInt &C2);
2301+
LLVM_ABI APInt muluExtended(const APInt &C1, const APInt &C2);
23022302

23032303
/// Compute X^N for N>=0.
23042304
/// 0^0 is supported and returns 1.

llvm/lib/Support/APInt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3136,15 +3136,15 @@ APInt APIntOps::mulhu(const APInt &C1, const APInt &C2) {
31363136
return (C1Ext * C2Ext).extractBits(C1.getBitWidth(), C1.getBitWidth());
31373137
}
31383138

3139-
APInt APIntOps::mulsi_extended(const APInt &C1, const APInt &C2) {
3139+
APInt APIntOps::mulsExtended(const APInt &C1, const APInt &C2) {
31403140
assert(C1.getBitWidth() == C2.getBitWidth() && "Unequal bitwidths");
31413141
unsigned FullWidth = C1.getBitWidth() * 2;
31423142
APInt C1Ext = C1.sext(FullWidth);
31433143
APInt C2Ext = C2.sext(FullWidth);
31443144
return C1Ext * C2Ext;
31453145
}
31463146

3147-
APInt APIntOps::mului_extended(const APInt &C1, const APInt &C2) {
3147+
APInt APIntOps::muluExtended(const APInt &C1, const APInt &C2) {
31483148
assert(C1.getBitWidth() == C2.getBitWidth() && "Unequal bitwidths");
31493149
unsigned FullWidth = C1.getBitWidth() * 2;
31503150
APInt C1Ext = C1.zext(FullWidth);

llvm/unittests/ADT/APIntTest.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3106,34 +3106,34 @@ TEST(APIntOpsTest, Mulh) {
31063106
TEST(APIntOpsTest, muli) {
31073107
APInt u32a(32, 0x0001'E235);
31083108
APInt u32b(32, 0xF623'55AD);
3109-
EXPECT_EQ(0x0001'CFA1'7CA0'76D1, APIntOps::mului_extended(u32a, u32b));
3109+
EXPECT_EQ(0x0001'CFA1'7CA0'76D1, APIntOps::muluExtended(u32a, u32b));
31103110

31113111
APInt u64a(64, 0x1234'5678'90AB'CDEF);
31123112
APInt u64b(64, 0xFEDC'BA09'8765'4321);
31133113
EXPECT_EQ(APInt(128, "121FA000A3723A57C24A442FE55618CF", 16),
3114-
APIntOps::mului_extended(u64a, u64b));
3114+
APIntOps::muluExtended(u64a, u64b));
31153115

31163116
APInt u128a(128, "1234567890ABCDEF1234567890ABCDEF", 16);
31173117
APInt u128b(128, "FEDCBA0987654321FEDCBA0987654321", 16);
31183118
EXPECT_EQ(
31193119
APInt(256,
31203120
"121FA000A3723A57E68984312C3A8D7E96B428606E1E6BF5C24A442FE55618CF",
31213121
16),
3122-
APIntOps::mului_extended(u128a, u128b));
3122+
APIntOps::muluExtended(u128a, u128b));
31233123

31243124
APInt s32a(32, 0x1234'5678);
31253125
APInt s32b(32, 0x10AB'CDEF);
31263126
APInt s32c(32, 0xFEDC'BA09);
3127-
EXPECT_EQ(0x012F'7D02'2A42'D208, APIntOps::mulsi_extended(s32a, s32b));
3128-
EXPECT_EQ(0xFFEB'4988'09CA'3A38, APIntOps::mulsi_extended(s32a, s32c));
3127+
EXPECT_EQ(0x012F'7D02'2A42'D208, APIntOps::mulsExtended(s32a, s32b));
3128+
EXPECT_EQ(0xFFEB'4988'09CA'3A38, APIntOps::mulsExtended(s32a, s32c));
31293129

31303130
APInt s64a(64, 0x1234'5678'90AB'CDEF);
31313131
APInt s64b(64, 0x1234'5678'90FE'DCBA);
31323132
APInt s64c(64, 0xFEDC'BA09'8765'4321);
31333133
EXPECT_EQ(APInt(128, "014B66DC328E10C1FB99704184EF03A6", 16),
3134-
APIntOps::mulsi_extended(s64a, s64b));
3134+
APIntOps::mulsExtended(s64a, s64b));
31353135
EXPECT_EQ(APInt(128, "FFEB498812C66C68C24A442FE55618CF", 16),
3136-
APIntOps::mulsi_extended(s64a, s64c));
3136+
APIntOps::mulsExtended(s64a, s64c));
31373137

31383138
APInt s128a(128, "1234567890ABCDEF1234567890ABCDEF", 16);
31393139
APInt s128b(128, "1234567890FEDCBA1234567890FEDCBA", 16);
@@ -3142,12 +3142,12 @@ TEST(APIntOpsTest, muli) {
31423142
APInt(256,
31433143
"014B66DC328E10C1FE303DF9EA0B2529F87E475F3C6C180DFB99704184EF03A6",
31443144
16),
3145-
APIntOps::mulsi_extended(s128a, s128b));
3145+
APIntOps::mulsExtended(s128a, s128b));
31463146
EXPECT_EQ(
31473147
APInt(256,
31483148
"FFEB498812C66C68D4552DB89B8EBF8F96B428606E1E6BF5C24A442FE55618CF",
31493149
16),
3150-
APIntOps::mulsi_extended(s128a, s128c));
3150+
APIntOps::mulsExtended(s128a, s128c));
31513151
}
31523152

31533153
TEST(APIntTest, RoundingUDiv) {

0 commit comments

Comments
 (0)