Home
last modified time | relevance | path

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

/drivers/gpu/drm/amd/display/include/
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 …]
/drivers/gpu/drm/amd/display/dc/basics/
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()