Lines Matching refs:b
154 #define MIN(a,b) (min(a,b)) argument
155 #define MAX(a,b) (max(a,b)) argument
221 static inline __u32 xfs_do_div(void *a, __u32 b, int n) in xfs_do_div() argument
227 mod = *(__u32 *)a % b; in xfs_do_div()
228 *(__u32 *)a = *(__u32 *)a / b; in xfs_do_div()
237 __upper = __high % (b); in xfs_do_div()
238 __high = __high / (b); in xfs_do_div()
240 asm("divl %2":"=a" (__low), "=d" (__mod):"rm" (b), "0" (__low), "1" (__upper)); in xfs_do_div()
252 static inline __u32 xfs_do_mod(void *a, __u32 b, int n) in xfs_do_mod() argument
256 return *(__u32 *)a % b; in xfs_do_mod()
264 __upper = __high % (b); in xfs_do_mod()
265 __high = __high / (b); in xfs_do_mod()
267 asm("divl %2":"=a" (__low), "=d" (__mod):"rm" (b), "0" (__low), "1" (__upper)); in xfs_do_mod()
277 static inline __u32 xfs_do_div(void *a, __u32 b, int n) in xfs_do_div() argument
283 mod = *(__u32 *)a % b; in xfs_do_div()
284 *(__u32 *)a = *(__u32 *)a / b; in xfs_do_div()
287 mod = do_div(*(__u64 *)a, b); in xfs_do_div()
296 static inline __u32 xfs_do_mod(void *a, __u32 b, int n) in xfs_do_mod() argument
300 return *(__u32 *)a % b; in xfs_do_mod()
304 return do_div(c, b); in xfs_do_mod()
314 #define do_div(a, b) xfs_do_div(&(a), (b), sizeof(a)) argument
315 #define do_mod(a, b) xfs_do_mod(&(a), (b), sizeof(a)) argument