Home
last modified time | relevance | path

Searched refs:FIXED31_32_BITS_PER_FRACTIONAL_PART (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/gpu/drm/amd/display/dc/spl/
H A Dspl_fixpt31_32.h21 #define FIXED31_32_BITS_PER_FRACTIONAL_PART 32 macro
76 res.value = (long long) arg << FIXED31_32_BITS_PER_FRACTIONAL_PART; in spl_fixpt_from_int()
436 return (int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in spl_fixpt_floor()
438 return -(int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in spl_fixpt_floor()
456 return (int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in spl_fixpt_round()
458 return -(int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in spl_fixpt_round()
477 return (int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in spl_fixpt_ceil()
479 return -(int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in spl_fixpt_ceil()
506 if (frac_bits >= FIXED31_32_BITS_PER_FRACTIONAL_PART) { in spl_fixpt_truncate()
507 ASSERT(frac_bits == FIXED31_32_BITS_PER_FRACTIONAL_PART); in spl_fixpt_truncate()
[all …]
H A Dspl_fixpt31_32.c41 ((1ULL << FIXED31_32_BITS_PER_FRACTIONAL_PART) - 1)
44 ((x) >> FIXED31_32_BITS_PER_FRACTIONAL_PART)
70 unsigned int i = FIXED31_32_BITS_PER_FRACTIONAL_PART; in spl_fixpt_from_fraction()
123 res.value <<= FIXED31_32_BITS_PER_FRACTIONAL_PART; in spl_fixpt_mul()
139 tmp = (tmp >> FIXED31_32_BITS_PER_FRACTIONAL_PART) + in spl_fixpt_mul()
168 res.value <<= FIXED31_32_BITS_PER_FRACTIONAL_PART; in spl_fixpt_sqr()
182 tmp = (tmp >> FIXED31_32_BITS_PER_FRACTIONAL_PART) + in spl_fixpt_sqr()
413 fractional_part >>= FIXED31_32_BITS_PER_FRACTIONAL_PART - fractional_bits; in ux_dy()
426 if (value >= (1LL << (integer_bits + FIXED31_32_BITS_PER_FRACTIONAL_PART))) in clamp_ux_dy()
480 fixpt_value.value = (long long)value << (FIXED31_32_BITS_PER_FRACTIONAL_PART - fractional_bits); in spl_fixpt_from_ux_dy()
[all …]
/linux/drivers/gpu/drm/amd/display/include/
H A Dfixed31_32.h36 #define FIXED31_32_BITS_PER_FRACTIONAL_PART 32 macro
91 res.value = (long long) arg << FIXED31_32_BITS_PER_FRACTIONAL_PART; in dc_fixpt_from_int()
451 return (int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in dc_fixpt_floor()
453 return -(int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in dc_fixpt_floor()
471 return (int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in dc_fixpt_round()
473 return -(int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in dc_fixpt_round()
492 return (int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in dc_fixpt_ceil()
494 return -(int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in dc_fixpt_ceil()
521 if (frac_bits >= FIXED31_32_BITS_PER_FRACTIONAL_PART) { in dc_fixpt_truncate()
522 ASSERT(frac_bits == FIXED31_32_BITS_PER_FRACTIONAL_PART); in dc_fixpt_truncate()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/basics/
H A Dfixpt31_32.c63 ((1ULL << FIXED31_32_BITS_PER_FRACTIONAL_PART) - 1)
66 ((x) >> FIXED31_32_BITS_PER_FRACTIONAL_PART)
92 unsigned int i = FIXED31_32_BITS_PER_FRACTIONAL_PART; in dc_fixpt_from_fraction()
143 res.value <<= FIXED31_32_BITS_PER_FRACTIONAL_PART; in dc_fixpt_mul()
159 tmp = (tmp >> FIXED31_32_BITS_PER_FRACTIONAL_PART) + in dc_fixpt_mul()
186 res.value <<= FIXED31_32_BITS_PER_FRACTIONAL_PART; in dc_fixpt_sqr()
200 tmp = (tmp >> FIXED31_32_BITS_PER_FRACTIONAL_PART) + in dc_fixpt_sqr()
431 fractional_part >>= FIXED31_32_BITS_PER_FRACTIONAL_PART - fractional_bits; in ux_dy()
444 if (value >= (1LL << (integer_bits + FIXED31_32_BITS_PER_FRACTIONAL_PART))) in clamp_ux_dy()
498 fixpt_value.value = (long long)value << (FIXED31_32_BITS_PER_FRACTIONAL_PART - fractional_bits); in dc_fixpt_from_ux_dy()
[all …]
H A Dconversion.c113 (FIXED31_32_BITS_PER_FRACTIONAL_PART - fractional_bits); in int_frac_to_fixed_point()