Home
last modified time | relevance | path

Searched refs:fractional_bits (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/amd/display/dc/basics/
Dconversion.c38 uint8_t fractional_bits) in fixed_point_to_int_frac() argument
41 int32_t divisor = 1 << fractional_bits; in fixed_point_to_int_frac()
68 (1 << (integer_bits + fractional_bits + 1)) + numerator); in fixed_point_to_int_frac()
72 result |= 1 << (integer_bits + fractional_bits); in fixed_point_to_int_frac()
Dfixpt31_32.c424 unsigned int fractional_bits) in ux_dy() argument
433 result <<= fractional_bits; in ux_dy()
435 fractional_part >>= FIXED31_32_BITS_PER_FRACTIONAL_PART - fractional_bits; in ux_dy()
443 unsigned int fractional_bits, in clamp_ux_dy() argument
446 unsigned int truncated_val = ux_dy(value, integer_bits, fractional_bits); in clamp_ux_dy()
449 return (1 << (integer_bits + fractional_bits)) - 1; in clamp_ux_dy()
Dconversion.h34 uint8_t fractional_bits);