• Home
  • Raw
  • Download

Lines Matching refs:divisor

25 static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder)  in div_u64_rem()  argument
27 *remainder = dividend % divisor; in div_u64_rem()
28 return dividend / divisor; in div_u64_rem()
39 static inline s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) in div_s64_rem() argument
41 *remainder = dividend % divisor; in div_s64_rem()
42 return dividend / divisor; in div_s64_rem()
53 static inline u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) in div64_u64_rem() argument
55 *remainder = dividend % divisor; in div64_u64_rem()
56 return dividend / divisor; in div64_u64_rem()
66 static inline u64 div64_u64(u64 dividend, u64 divisor) in div64_u64() argument
68 return dividend / divisor; in div64_u64()
78 static inline s64 div64_s64(s64 dividend, s64 divisor) in div64_s64() argument
80 return dividend / divisor; in div64_s64()
89 static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) in div_u64_rem() argument
91 *remainder = do_div(dividend, divisor); in div_u64_rem()
97 extern s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder);
101 extern u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder);
105 extern u64 div64_u64(u64 dividend, u64 divisor);
109 extern s64 div64_s64(s64 dividend, s64 divisor);
124 static inline u64 div_u64(u64 dividend, u32 divisor) in div_u64() argument
127 return div_u64_rem(dividend, divisor, &remainder); in div_u64()
137 static inline s64 div_s64(s64 dividend, s32 divisor) in div_s64() argument
140 return div_s64_rem(dividend, divisor, &remainder); in div_s64()
144 u32 iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder);
238 static inline u64 mul_u64_u32_div(u64 a, u32 mul, u32 divisor) in mul_u64_u32_div() argument
256 rl.l.high = do_div(rh.ll, divisor); in mul_u64_u32_div()
259 do_div(rl.ll, divisor); in mul_u64_u32_div()
281 #define DIV64_U64_ROUND_CLOSEST(dividend, divisor) \ argument
282 ({ u64 _tmp = (divisor); div64_u64((dividend) + _tmp / 2, _tmp); })
294 #define DIV_S64_ROUND_CLOSEST(dividend, divisor)( \ argument
297 s32 __d = (divisor); \