Lines Matching refs:shift
159 static inline u64 mul_u64_u32_shr(u64 a, u32 mul, unsigned int shift) in mul_u64_u32_shr() argument
161 return (u64)(((unsigned __int128)a * mul) >> shift); in mul_u64_u32_shr()
166 static inline u64 mul_u64_u64_shr(u64 a, u64 mul, unsigned int shift) in mul_u64_u64_shr() argument
168 return (u64)(((unsigned __int128)a * mul) >> shift); in mul_u64_u64_shr()
175 static inline u64 mul_u64_u32_shr(u64 a, u32 mul, unsigned int shift) in mul_u64_u32_shr() argument
183 ret = mul_u32_u32(al, mul) >> shift; in mul_u64_u32_shr()
185 ret += mul_u32_u32(ah, mul) << (32 - shift); in mul_u64_u32_shr()
192 static inline u64 mul_u64_u64_shr(u64 a, u64 b, unsigned int shift) in mul_u64_u64_shr() argument
227 if (shift == 0) in mul_u64_u64_shr()
229 if (shift < 64) in mul_u64_u64_shr()
230 return (rl.ll >> shift) | (rh.ll << (64 - shift)); in mul_u64_u64_shr()
231 return rh.ll >> (shift & 63); in mul_u64_u64_shr()