Home
last modified time | relevance | path

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

/sof-3.4.0/src/include/sof/audio/
Dformat.h118 static inline int64_t q_mults_32x32(int32_t x, int32_t y, const int shift_bits) in q_mults_32x32() argument
120 return ((int64_t)x * y) >> shift_bits; in q_mults_32x32()
123 static inline int64_t q_multsr_32x32(int32_t x, int32_t y, const int shift_bits) in q_multsr_32x32() argument
125 return ((((int64_t)x * y) >> (shift_bits - 1)) + 1) >> 1; in q_multsr_32x32()
128 static inline int32_t q_mults_16x16(int16_t x, int32_t y, const int shift_bits) in q_mults_16x16() argument
130 return ((int32_t)x * y) >> shift_bits; in q_mults_16x16()
133 static inline int16_t q_multsr_16x16(int16_t x, int32_t y, const int shift_bits) in q_multsr_16x16() argument
135 return ((((int32_t)x * y) >> (shift_bits - 1)) + 1) >> 1; in q_multsr_16x16()
140 const int shift_bits) in q_multsr_sat_32x32() argument
142 return sat_int32(((((int64_t)x * y) >> (shift_bits - 1)) + 1) >> 1); in q_multsr_sat_32x32()
[all …]