1616
1717#define TEST_DIV64_N_ITER 1024
1818
19- static const u64 test_div64_dividents [] = {
19+ static const u64 test_div64_dividends [] = {
2020 0x00000000ab275080 ,
2121 0x0000000fe73c1959 ,
2222 0x000000e54c0a74b1 ,
@@ -27,7 +27,7 @@ static const u64 test_div64_dividents[] = {
2727 0x0842f488162e2284 ,
2828 0xf66745411d8ab063 ,
2929};
30- #define SIZE_DIV64_DIVIDENTS ARRAY_SIZE(test_div64_dividents )
30+ #define SIZE_DIV64_DIVIDENDS ARRAY_SIZE(test_div64_dividends )
3131
3232#define TEST_DIV64_DIVISOR_0 0x00000009
3333#define TEST_DIV64_DIVISOR_1 0x0000007c
@@ -55,7 +55,7 @@ static const u32 test_div64_divisors[] = {
5555static const struct {
5656 u64 quotient ;
5757 u32 remainder ;
58- } test_div64_results [SIZE_DIV64_DIVISORS ][SIZE_DIV64_DIVIDENTS ] = {
58+ } test_div64_results [SIZE_DIV64_DIVISORS ][SIZE_DIV64_DIVIDENDS ] = {
5959 {
6060 { 0x0000000013045e47 , 0x00000001 },
6161 { 0x000000000161596c , 0x00000030 },
@@ -160,16 +160,16 @@ static inline bool test_div64_verify(u64 quotient, u32 remainder, int i, int j)
160160 * to do constant propagation, and `do_div' may take a different path for
161161 * constants, so we do want to verify that as well.
162162 */
163- #define test_div64_one (divident , divisor , i , j ) ({ \
163+ #define test_div64_one (dividend , divisor , i , j ) ({ \
164164 bool result = true; \
165165 u64 quotient; \
166166 u32 remainder; \
167167 \
168- quotient = divident ; \
168+ quotient = dividend ; \
169169 remainder = do_div(quotient, divisor); \
170170 if (!test_div64_verify(quotient, remainder, i, j)) { \
171171 pr_err("ERROR: %016llx / %08x => %016llx,%08x\n", \
172- divident , divisor, quotient, remainder); \
172+ dividend , divisor, quotient, remainder); \
173173 pr_err("ERROR: expected value => %016llx,%08x\n",\
174174 test_div64_results[i][j].quotient, \
175175 test_div64_results[i][j].remainder); \
@@ -185,31 +185,31 @@ static inline bool test_div64_verify(u64 quotient, u32 remainder, int i, int j)
185185 */
186186static bool __init test_div64 (void )
187187{
188- u64 divident ;
188+ u64 dividend ;
189189 int i , j ;
190190
191- for (i = 0 ; i < SIZE_DIV64_DIVIDENTS ; i ++ ) {
192- divident = test_div64_dividents [i ];
193- if (!test_div64_one (divident , TEST_DIV64_DIVISOR_0 , i , 0 ))
191+ for (i = 0 ; i < SIZE_DIV64_DIVIDENDS ; i ++ ) {
192+ dividend = test_div64_dividends [i ];
193+ if (!test_div64_one (dividend , TEST_DIV64_DIVISOR_0 , i , 0 ))
194194 return false;
195- if (!test_div64_one (divident , TEST_DIV64_DIVISOR_1 , i , 1 ))
195+ if (!test_div64_one (dividend , TEST_DIV64_DIVISOR_1 , i , 1 ))
196196 return false;
197- if (!test_div64_one (divident , TEST_DIV64_DIVISOR_2 , i , 2 ))
197+ if (!test_div64_one (dividend , TEST_DIV64_DIVISOR_2 , i , 2 ))
198198 return false;
199- if (!test_div64_one (divident , TEST_DIV64_DIVISOR_3 , i , 3 ))
199+ if (!test_div64_one (dividend , TEST_DIV64_DIVISOR_3 , i , 3 ))
200200 return false;
201- if (!test_div64_one (divident , TEST_DIV64_DIVISOR_4 , i , 4 ))
201+ if (!test_div64_one (dividend , TEST_DIV64_DIVISOR_4 , i , 4 ))
202202 return false;
203- if (!test_div64_one (divident , TEST_DIV64_DIVISOR_5 , i , 5 ))
203+ if (!test_div64_one (dividend , TEST_DIV64_DIVISOR_5 , i , 5 ))
204204 return false;
205- if (!test_div64_one (divident , TEST_DIV64_DIVISOR_6 , i , 6 ))
205+ if (!test_div64_one (dividend , TEST_DIV64_DIVISOR_6 , i , 6 ))
206206 return false;
207- if (!test_div64_one (divident , TEST_DIV64_DIVISOR_7 , i , 7 ))
207+ if (!test_div64_one (dividend , TEST_DIV64_DIVISOR_7 , i , 7 ))
208208 return false;
209- if (!test_div64_one (divident , TEST_DIV64_DIVISOR_8 , i , 8 ))
209+ if (!test_div64_one (dividend , TEST_DIV64_DIVISOR_8 , i , 8 ))
210210 return false;
211211 for (j = 0 ; j < SIZE_DIV64_DIVISORS ; j ++ ) {
212- if (!test_div64_one (divident , test_div64_divisors [j ],
212+ if (!test_div64_one (dividend , test_div64_divisors [j ],
213213 i , j ))
214214 return false;
215215 }
0 commit comments