Lines Matching refs:arg2
43 const struct bw_fixed arg2) in bw_min2() argument
45 return (arg1.value <= arg2.value) ? arg1 : arg2; in bw_min2()
49 const struct bw_fixed arg2) in bw_max2() argument
51 return (arg2.value <= arg1.value) ? arg1 : arg2; in bw_max2()
102 const struct bw_fixed arg2) in bw_add() argument
106 res.value = arg1.value + arg2.value; in bw_add()
111 static inline struct bw_fixed bw_sub(const struct bw_fixed arg1, const struct bw_fixed arg2) in bw_sub() argument
115 res.value = arg1.value - arg2.value; in bw_sub()
120 struct bw_fixed bw_mul(const struct bw_fixed arg1, const struct bw_fixed arg2);
121 static inline struct bw_fixed bw_div(const struct bw_fixed arg1, const struct bw_fixed arg2) in bw_div() argument
123 return bw_frc_to_fixed(arg1.value, arg2.value); in bw_div()
126 static inline struct bw_fixed bw_mod(const struct bw_fixed arg1, const struct bw_fixed arg2) in bw_mod() argument
129 div64_u64_rem(arg1.value, arg2.value, (uint64_t *)&res.value); in bw_mod()
136 static inline bool bw_equ(const struct bw_fixed arg1, const struct bw_fixed arg2) in bw_equ() argument
138 return arg1.value == arg2.value; in bw_equ()
141 static inline bool bw_neq(const struct bw_fixed arg1, const struct bw_fixed arg2) in bw_neq() argument
143 return arg1.value != arg2.value; in bw_neq()
146 static inline bool bw_leq(const struct bw_fixed arg1, const struct bw_fixed arg2) in bw_leq() argument
148 return arg1.value <= arg2.value; in bw_leq()
151 static inline bool bw_meq(const struct bw_fixed arg1, const struct bw_fixed arg2) in bw_meq() argument
153 return arg1.value >= arg2.value; in bw_meq()
156 static inline bool bw_ltn(const struct bw_fixed arg1, const struct bw_fixed arg2) in bw_ltn() argument
158 return arg1.value < arg2.value; in bw_ltn()
161 static inline bool bw_mtn(const struct bw_fixed arg1, const struct bw_fixed arg2) in bw_mtn() argument
163 return arg1.value > arg2.value; in bw_mtn()