Searched refs:fast_divpow2 (Results 1 - 3 of 3) sorted by last modified time
/linux-master/fs/bcachefs/ |
H A D | mean_and_variance_test.c | 159 KUNIT_EXPECT_EQ(test, fast_divpow2(i, d), div_u64(i, 1LLU << d)); 160 KUNIT_EXPECT_EQ(test, abs(fast_divpow2(-i, d)), div_u64(i, 1LLU << d)); 162 KUNIT_EXPECT_EQ_MSG(test, abs(fast_divpow2(i, d)), 164 KUNIT_EXPECT_EQ_MSG(test, abs(fast_divpow2(-i, d)),
|
H A D | mean_and_variance.h | 162 * fast_divpow2() - fast approximation for n / (1 << d) 168 static inline s64 fast_divpow2(s64 n, u8 d) function
|
H A D | mean_and_variance.c | 121 s64 diff = fast_divpow2(diff_w, w); 143 return fast_divpow2(s.mean, weight);
|
Completed in 180 milliseconds