Lines Matching refs:arg1

44 static inline struct bw_fixed bw_min2(const struct bw_fixed arg1,
47 return (arg1.value <= arg2.value) ? arg1 : arg2;
50 static inline struct bw_fixed bw_max2(const struct bw_fixed arg1,
53 return (arg2.value <= arg1.value) ? arg1 : arg2;
103 static inline struct bw_fixed bw_add(const struct bw_fixed arg1,
108 res.value = arg1.value + arg2.value;
113 static inline struct bw_fixed bw_sub(const struct bw_fixed arg1, const struct bw_fixed arg2)
117 res.value = arg1.value - arg2.value;
122 struct bw_fixed bw_mul(const struct bw_fixed arg1, const struct bw_fixed arg2);
123 static inline struct bw_fixed bw_div(const struct bw_fixed arg1, const struct bw_fixed arg2)
125 return bw_frc_to_fixed(arg1.value, arg2.value);
128 static inline struct bw_fixed bw_mod(const struct bw_fixed arg1, const struct bw_fixed arg2)
131 div64_u64_rem(arg1.value, arg2.value, (uint64_t *)&res.value);
138 static inline bool bw_equ(const struct bw_fixed arg1, const struct bw_fixed arg2)
140 return arg1.value == arg2.value;
143 static inline bool bw_neq(const struct bw_fixed arg1, const struct bw_fixed arg2)
145 return arg1.value != arg2.value;
148 static inline bool bw_leq(const struct bw_fixed arg1, const struct bw_fixed arg2)
150 return arg1.value <= arg2.value;
153 static inline bool bw_meq(const struct bw_fixed arg1, const struct bw_fixed arg2)
155 return arg1.value >= arg2.value;
158 static inline bool bw_ltn(const struct bw_fixed arg1, const struct bw_fixed arg2)
160 return arg1.value < arg2.value;
163 static inline bool bw_mtn(const struct bw_fixed arg1, const struct bw_fixed arg2)
165 return arg1.value > arg2.value;