Lines Matching refs:Padding
91 TEST(Padding, Zero) { in TEST() argument
92 EXPECT_EQ(0u, Padding(0, 1)); in TEST()
93 EXPECT_EQ(0u, Padding(0, 2)); in TEST()
94 EXPECT_EQ(0u, Padding(0, 15)); in TEST()
97 TEST(Padding, Aligned) { in TEST() argument
99 EXPECT_EQ(0u, Padding(i, i)); in TEST()
100 EXPECT_EQ(0u, Padding(2 * i, i)); in TEST()
101 EXPECT_EQ(0u, Padding(3 * i, i)); in TEST()
105 TEST(Padding, NonAligned_PowerOf2) { in TEST() argument
106 EXPECT_EQ(31u, Padding(1, 32)); in TEST()
107 EXPECT_EQ(1u, Padding(31, 32)); in TEST()
108 EXPECT_EQ(31u, Padding(33, 32)); in TEST()
109 EXPECT_EQ(19u, Padding(45, 32)); in TEST()
110 EXPECT_EQ(1u, Padding(63, 32)); in TEST()
111 EXPECT_EQ(1u, Padding(127, 32)); in TEST()
114 TEST(Padding, NonAligned_NonPowerOf2) { in TEST() argument
115 EXPECT_EQ(1u, Padding(1, 2)); in TEST()
117 EXPECT_EQ(14u, Padding(1, 15)); in TEST()
118 EXPECT_EQ(1u, Padding(14, 15)); in TEST()
119 EXPECT_EQ(14u, Padding(16, 15)); in TEST()