Lines Matching refs:value
28 static const bool value = false; member
34 static const bool value = true;
60 TO MixMul(TI value, TV volume);
63 inline int32_t MixMul<int32_t, int16_t, int16_t>(int16_t value, int16_t volume) {
64 return value * volume;
68 inline int32_t MixMul<int32_t, int32_t, int16_t>(int32_t value, int16_t volume) {
69 return (value >> 12) * volume;
73 inline int32_t MixMul<int32_t, int16_t, int32_t>(int16_t value, int32_t volume) {
74 return value * (volume >> 16);
78 inline int32_t MixMul<int32_t, int32_t, int32_t>(int32_t value, int32_t volume) {
79 return (value >> 12) * (volume >> 16);
83 inline float MixMul<float, float, int16_t>(float value, int16_t volume) {
85 return value * volume * norm;
89 inline float MixMul<float, float, int32_t>(float value, int32_t volume) {
91 return value * volume * norm;
95 inline int16_t MixMul<int16_t, float, int16_t>(float value, int16_t volume) {
96 return clamp16_from_float(MixMul<float, float, int16_t>(value, volume));
100 inline int16_t MixMul<int16_t, float, int32_t>(float value, int32_t volume) {
101 return clamp16_from_float(MixMul<float, float, int32_t>(value, volume));
105 inline float MixMul<float, int16_t, int16_t>(int16_t value, int16_t volume) {
107 return static_cast<float>(value) * static_cast<float>(volume) * norm;
111 inline float MixMul<float, int16_t, int32_t>(int16_t value, int32_t volume) {
113 return static_cast<float>(value) * static_cast<float>(volume) * norm;
117 inline int16_t MixMul<int16_t, int16_t, int16_t>(int16_t value, int16_t volume) {
118 return clamp16(MixMul<int32_t, int16_t, int16_t>(value, volume) >> 12);
122 inline int16_t MixMul<int16_t, int32_t, int16_t>(int32_t value, int16_t volume) {
123 return clamp16(MixMul<int32_t, int32_t, int16_t>(value, volume) >> 12);
127 inline int16_t MixMul<int16_t, int16_t, int32_t>(int16_t value, int32_t volume) {
128 return clamp16(MixMul<int32_t, int16_t, int32_t>(value, volume) >> 12);
132 inline int16_t MixMul<int16_t, int32_t, int32_t>(int32_t value, int32_t volume) {
133 return clamp16(MixMul<int32_t, int32_t, int32_t>(value, volume) >> 12);
141 inline float MixMul<float, float, float>(float value, float volume) {
142 return value * volume;
146 inline float MixMul<float, int16_t, float>(int16_t value, float volume) {
148 return value * volume * float_from_q_15;
152 inline int32_t MixMul<int32_t, int32_t, float>(int32_t value, float volume) {
154 return value * volume;
158 inline int32_t MixMul<int32_t, int16_t, float>(int16_t value, float volume) {
161 return value * volume * u4_12_from_float;
165 inline int16_t MixMul<int16_t, int16_t, float>(int16_t value, float volume) {
167 return clamp16_from_float(MixMul<float, int16_t, float>(value, volume));
171 inline int16_t MixMul<int16_t, float, float>(float value, float volume) {
172 return clamp16_from_float(value * volume);
181 inline void MixAccum(TO *auxaccum, TI value) {
182 if (!is_same<TO, TI>::value) {
186 *auxaccum += value;
190 inline void MixAccum<float, int16_t>(float *auxaccum, int16_t value) {
192 *auxaccum += norm * value;
196 inline void MixAccum<float, int32_t>(float *auxaccum, int32_t value) {
198 *auxaccum += norm * value;
202 inline void MixAccum<int32_t, int16_t>(int32_t *auxaccum, int16_t value) {
203 *auxaccum += value << 12;
207 inline void MixAccum<int32_t, float>(int32_t *auxaccum, float value) {
208 *auxaccum += clampq4_27_from_float(value);
216 inline TO MixMulAux(TI value, TV volume, TA *auxaccum) {
217 MixAccum<TA, TI>(auxaccum, value);
218 return MixMul<TO, TI, TV>(value, volume);