Lines Matching refs:arg1

135 static inline bool dc_fixpt_lt(struct fixed31_32 arg1, struct fixed31_32 arg2)  in dc_fixpt_lt()  argument
137 return arg1.value < arg2.value; in dc_fixpt_lt()
144 static inline bool dc_fixpt_le(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_le() argument
146 return arg1.value <= arg2.value; in dc_fixpt_le()
153 static inline bool dc_fixpt_eq(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_eq() argument
155 return arg1.value == arg2.value; in dc_fixpt_eq()
162 static inline struct fixed31_32 dc_fixpt_min(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_min() argument
164 if (arg1.value <= arg2.value) in dc_fixpt_min()
165 return arg1; in dc_fixpt_min()
174 static inline struct fixed31_32 dc_fixpt_max(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_max() argument
176 if (arg1.value <= arg2.value) in dc_fixpt_max()
179 return arg1; in dc_fixpt_max()
245 static inline struct fixed31_32 dc_fixpt_add(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_add() argument
249 ASSERT(((arg1.value >= 0) && (LLONG_MAX - arg1.value >= arg2.value)) || in dc_fixpt_add()
250 ((arg1.value < 0) && (LLONG_MIN - arg1.value <= arg2.value))); in dc_fixpt_add()
252 res.value = arg1.value + arg2.value; in dc_fixpt_add()
261 static inline struct fixed31_32 dc_fixpt_add_int(struct fixed31_32 arg1, int arg2) in dc_fixpt_add_int() argument
263 return dc_fixpt_add(arg1, dc_fixpt_from_int(arg2)); in dc_fixpt_add_int()
270 static inline struct fixed31_32 dc_fixpt_sub(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_sub() argument
274 ASSERT(((arg2.value >= 0) && (LLONG_MIN + arg2.value <= arg1.value)) || in dc_fixpt_sub()
275 ((arg2.value < 0) && (LLONG_MAX + arg2.value >= arg1.value))); in dc_fixpt_sub()
277 res.value = arg1.value - arg2.value; in dc_fixpt_sub()
286 static inline struct fixed31_32 dc_fixpt_sub_int(struct fixed31_32 arg1, int arg2) in dc_fixpt_sub_int() argument
288 return dc_fixpt_sub(arg1, dc_fixpt_from_int(arg2)); in dc_fixpt_sub_int()
301 struct fixed31_32 dc_fixpt_mul(struct fixed31_32 arg1, struct fixed31_32 arg2);
308 static inline struct fixed31_32 dc_fixpt_mul_int(struct fixed31_32 arg1, int arg2) in dc_fixpt_mul_int() argument
310 return dc_fixpt_mul(arg1, dc_fixpt_from_int(arg2)); in dc_fixpt_mul_int()
323 static inline struct fixed31_32 dc_fixpt_div_int(struct fixed31_32 arg1, long long arg2) in dc_fixpt_div_int() argument
325 return dc_fixpt_from_fraction(arg1.value, dc_fixpt_from_int((int)arg2).value); in dc_fixpt_div_int()
332 static inline struct fixed31_32 dc_fixpt_div(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_div() argument
334 return dc_fixpt_from_fraction(arg1.value, arg2.value); in dc_fixpt_div()
426 static inline struct fixed31_32 dc_fixpt_pow(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_pow() argument
428 if (arg1.value == 0) in dc_fixpt_pow()
433 dc_fixpt_log(arg1), in dc_fixpt_pow()