Lines Matching defs:arg1

42 static inline struct bw_fixed bw_min2(const struct bw_fixed arg1,
45 return (arg1.value <= arg2.value) ? arg1 : arg2;
48 static inline struct bw_fixed bw_max2(const struct bw_fixed arg1,
51 return (arg2.value <= arg1.value) ? arg1 : arg2;
101 static inline struct bw_fixed bw_add(const struct bw_fixed arg1,
106 res.value = arg1.value + arg2.value;
111 static inline struct bw_fixed bw_sub(const struct bw_fixed arg1, const struct bw_fixed arg2)
115 res.value = arg1.value - arg2.value;
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)
123 return bw_frc_to_fixed(arg1.value, arg2.value);
126 static inline struct bw_fixed bw_mod(const struct bw_fixed arg1, const struct bw_fixed arg2)
129 div64_u64_rem(arg1.value, arg2.value, (uint64_t *)&res.value);
136 static inline bool bw_equ(const struct bw_fixed arg1, const struct bw_fixed arg2)
138 return arg1.value == arg2.value;
141 static inline bool bw_neq(const struct bw_fixed arg1, const struct bw_fixed arg2)
143 return arg1.value != arg2.value;
146 static inline bool bw_leq(const struct bw_fixed arg1, const struct bw_fixed arg2)
148 return arg1.value <= arg2.value;
151 static inline bool bw_meq(const struct bw_fixed arg1, const struct bw_fixed arg2)
153 return arg1.value >= arg2.value;
156 static inline bool bw_ltn(const struct bw_fixed arg1, const struct bw_fixed arg2)
158 return arg1.value < arg2.value;
161 static inline bool bw_mtn(const struct bw_fixed arg1, const struct bw_fixed arg2)
163 return arg1.value > arg2.value;