Searched refs:fractional_bits (Results 1 – 3 of 3) sorted by relevance
38 uint8_t fractional_bits) in fixed_point_to_int_frac() argument41 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()
424 unsigned int fractional_bits) in ux_dy() argument433 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() argument446 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()
34 uint8_t fractional_bits);