Home
last modified time | relevance | path

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

/drivers/gpu/drm/amd/display/dc/basics/
Dconversion.c37 uint8_t fractional_bits) in fixed_point_to_int_frac() argument
40 int32_t divisor = 1 << fractional_bits; in fixed_point_to_int_frac()
67 (1 << (integer_bits + fractional_bits + 1)) + numerator); in fixed_point_to_int_frac()
71 result |= 1 << (integer_bits + fractional_bits); in fixed_point_to_int_frac()
Dfixpt31_32.c420 unsigned int fractional_bits) in ux_dy() argument
429 result <<= fractional_bits; in ux_dy()
431 fractional_part >>= FIXED31_32_BITS_PER_FRACTIONAL_PART - fractional_bits; in ux_dy()
439 unsigned int fractional_bits, in clamp_ux_dy() argument
442 unsigned int truncated_val = ux_dy(value, integer_bits, fractional_bits); in clamp_ux_dy()
445 return (1 << (integer_bits + fractional_bits)) - 1; in clamp_ux_dy()
Dconversion.h34 uint8_t fractional_bits);