Lines Matching refs:value

58 	long long value;  member
91 res.value = (long long) arg << FIXED31_32_BITS_PER_FRACTIONAL_PART; in dc_fixpt_from_int()
109 res.value = -arg.value; in dc_fixpt_neg()
120 if (arg.value < 0) in dc_fixpt_abs()
137 return arg1.value < arg2.value; in dc_fixpt_lt()
146 return arg1.value <= arg2.value; in dc_fixpt_le()
155 return arg1.value == arg2.value; in dc_fixpt_eq()
164 if (arg1.value <= arg2.value) in dc_fixpt_min()
176 if (arg1.value <= arg2.value) in dc_fixpt_max()
212 ASSERT(((arg.value >= 0) && (arg.value <= LLONG_MAX >> shift)) || in dc_fixpt_shl()
213 ((arg.value < 0) && (arg.value >= ~(LLONG_MAX >> shift)))); in dc_fixpt_shl()
215 arg.value = arg.value << shift; in dc_fixpt_shl()
226 bool negative = arg.value < 0; in dc_fixpt_shr()
229 arg.value = -arg.value; in dc_fixpt_shr()
230 arg.value = arg.value >> shift; in dc_fixpt_shr()
232 arg.value = -arg.value; in dc_fixpt_shr()
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()
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()
325 return dc_fixpt_from_fraction(arg1.value, dc_fixpt_from_int((int)arg2).value); in dc_fixpt_div_int()
334 return dc_fixpt_from_fraction(arg1.value, arg2.value); in dc_fixpt_div()
428 if (arg1.value == 0) in dc_fixpt_pow()
429 return arg2.value == 0 ? dc_fixpt_one : dc_fixpt_zero; in dc_fixpt_pow()
448 unsigned long long arg_value = arg.value > 0 ? arg.value : -arg.value; in dc_fixpt_floor()
450 if (arg.value >= 0) in dc_fixpt_floor()
462 unsigned long long arg_value = arg.value > 0 ? arg.value : -arg.value; in dc_fixpt_round()
464 const long long summand = dc_fixpt_half.value; in dc_fixpt_round()
470 if (arg.value >= 0) in dc_fixpt_round()
482 unsigned long long arg_value = arg.value > 0 ? arg.value : -arg.value; in dc_fixpt_ceil()
484 const long long summand = dc_fixpt_one.value - in dc_fixpt_ceil()
485 dc_fixpt_epsilon.value; in dc_fixpt_ceil()
491 if (arg.value >= 0) in dc_fixpt_ceil()
519 bool negative = arg.value < 0; in dc_fixpt_truncate()
527 arg.value = -arg.value; in dc_fixpt_truncate()
528 arg.value &= (~0ULL) << (FIXED31_32_BITS_PER_FRACTIONAL_PART - frac_bits); in dc_fixpt_truncate()
530 arg.value = -arg.value; in dc_fixpt_truncate()