Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/amd/display/dc/basics/
A 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()
A 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()
A Dconversion.h34 uint8_t fractional_bits);

Completed in 5 milliseconds