Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/gpu/drm/amd/display/include/
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-6.6.21/drivers/gpu/drm/amd/display/dc/basics/
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()
145 res.value <<= FIXED31_32_BITS_PER_FRACTIONAL_PART; in dc_fixpt_mul()
161 tmp = (tmp >> FIXED31_32_BITS_PER_FRACTIONAL_PART) + in dc_fixpt_mul()
190 res.value <<= FIXED31_32_BITS_PER_FRACTIONAL_PART; in dc_fixpt_sqr()
204 tmp = (tmp >> FIXED31_32_BITS_PER_FRACTIONAL_PART) + in dc_fixpt_sqr()
435 fractional_part >>= FIXED31_32_BITS_PER_FRACTIONAL_PART - fractional_bits; in ux_dy()
448 if (value >= (1LL << (integer_bits + FIXED31_32_BITS_PER_FRACTIONAL_PART))) in clamp_ux_dy()