Searched refs:frac_bits (Results 1 – 1 of 1) sorted by relevance
753 util_unsigned_fixed(float value, unsigned frac_bits) in util_unsigned_fixed() argument755 return value < 0 ? 0 : (uint32_t)(value * (1<<frac_bits)); in util_unsigned_fixed()759 util_signed_fixed(float value, unsigned frac_bits) in util_signed_fixed() argument761 return (int32_t)(value * (1<<frac_bits)); in util_signed_fixed()