Searched refs:fractional_bits (Results 1 – 3 of 3) sorted by relevance
37 uint8_t fractional_bits) in fixed_point_to_int_frac() argument40 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()
420 unsigned int fractional_bits) in ux_dy() argument429 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() argument442 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()
34 uint8_t fractional_bits);