• Home
  • Raw
  • Download

Lines Matching refs:arg2

141 static inline bool dc_fixpt_lt(struct fixed31_32 arg1, struct fixed31_32 arg2)  in dc_fixpt_lt()  argument
143 return arg1.value < arg2.value; in dc_fixpt_lt()
150 static inline bool dc_fixpt_le(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_le() argument
152 return arg1.value <= arg2.value; in dc_fixpt_le()
159 static inline bool dc_fixpt_eq(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_eq() argument
161 return arg1.value == arg2.value; in dc_fixpt_eq()
168 static inline struct fixed31_32 dc_fixpt_min(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_min() argument
170 if (arg1.value <= arg2.value) in dc_fixpt_min()
173 return arg2; in dc_fixpt_min()
180 static inline struct fixed31_32 dc_fixpt_max(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_max() argument
182 if (arg1.value <= arg2.value) in dc_fixpt_max()
183 return arg2; in dc_fixpt_max()
251 static inline struct fixed31_32 dc_fixpt_add(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_add() argument
255 ASSERT(((arg1.value >= 0) && (LLONG_MAX - arg1.value >= arg2.value)) || in dc_fixpt_add()
256 ((arg1.value < 0) && (LLONG_MIN - arg1.value <= arg2.value))); in dc_fixpt_add()
258 res.value = arg1.value + arg2.value; in dc_fixpt_add()
267 static inline struct fixed31_32 dc_fixpt_add_int(struct fixed31_32 arg1, int arg2) in dc_fixpt_add_int() argument
269 return dc_fixpt_add(arg1, dc_fixpt_from_int(arg2)); in dc_fixpt_add_int()
276 static inline struct fixed31_32 dc_fixpt_sub(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_sub() argument
280 ASSERT(((arg2.value >= 0) && (LLONG_MIN + arg2.value <= arg1.value)) || in dc_fixpt_sub()
281 ((arg2.value < 0) && (LLONG_MAX + arg2.value >= arg1.value))); in dc_fixpt_sub()
283 res.value = arg1.value - arg2.value; in dc_fixpt_sub()
292 static inline struct fixed31_32 dc_fixpt_sub_int(struct fixed31_32 arg1, int arg2) in dc_fixpt_sub_int() argument
294 return dc_fixpt_sub(arg1, dc_fixpt_from_int(arg2)); in dc_fixpt_sub_int()
307 struct fixed31_32 dc_fixpt_mul(struct fixed31_32 arg1, struct fixed31_32 arg2);
314 static inline struct fixed31_32 dc_fixpt_mul_int(struct fixed31_32 arg1, int arg2) in dc_fixpt_mul_int() argument
316 return dc_fixpt_mul(arg1, dc_fixpt_from_int(arg2)); in dc_fixpt_mul_int()
329 static inline struct fixed31_32 dc_fixpt_div_int(struct fixed31_32 arg1, long long arg2) in dc_fixpt_div_int() argument
331 return dc_fixpt_from_fraction(arg1.value, dc_fixpt_from_int(arg2).value); in dc_fixpt_div_int()
338 static inline struct fixed31_32 dc_fixpt_div(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_div() argument
340 return dc_fixpt_from_fraction(arg1.value, arg2.value); in dc_fixpt_div()
432 static inline struct fixed31_32 dc_fixpt_pow(struct fixed31_32 arg1, struct fixed31_32 arg2) in dc_fixpt_pow() argument
437 arg2)); in dc_fixpt_pow()