Home
last modified time | relevance | path

Searched refs:FIXED31_32_BITS_PER_FRACTIONAL_PART (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/include/
H A Dfixed31_32.h36 #define FIXED31_32_BITS_PER_FRACTIONAL_PART 32 macro
97 res.value = (long long) arg << FIXED31_32_BITS_PER_FRACTIONAL_PART; in dc_fixpt_from_int()
457 return (int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in dc_fixpt_floor()
459 return -(int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in dc_fixpt_floor()
477 return (int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in dc_fixpt_round()
479 return -(int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in dc_fixpt_round()
498 return (int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in dc_fixpt_ceil()
500 return -(int)(arg_value >> FIXED31_32_BITS_PER_FRACTIONAL_PART); in dc_fixpt_ceil()
527 if (frac_bits >= FIXED31_32_BITS_PER_FRACTIONAL_PART) { in dc_fixpt_truncate()
528 ASSERT(frac_bits == FIXED31_32_BITS_PER_FRACTIONAL_PART); in dc_fixpt_truncate()
[all...]
/kernel/linux/linux-6.6/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...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/basics/
H A Dfixpt31_32.c59 ((1ULL << FIXED31_32_BITS_PER_FRACTIONAL_PART) - 1)
62 ((x) >> FIXED31_32_BITS_PER_FRACTIONAL_PART)
88 unsigned int i = FIXED31_32_BITS_PER_FRACTIONAL_PART; in dc_fixpt_from_fraction()
141 res.value <<= FIXED31_32_BITS_PER_FRACTIONAL_PART; in dc_fixpt_mul()
157 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()
/kernel/linux/linux-6.6/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()
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()

Completed in 3 milliseconds