Searched refs:Q_SHIFT_LEFT (Results 1 – 15 of 15) sorted by relevance
/sof-3.4.0/src/math/ |
D | dct.c | 64 nk = (Q_SHIFT_LEFT(n, 0, 1) + HALF_Q1) * Q_SHIFT_LEFT(k, 0, 1); /*Q14.2 */ in dct_initialize_16() 68 cos = cos_fixed_32b(Q_SHIFT_LEFT(arg, 24, 28)); /* Q1.31 */ in dct_initialize_16()
|
D | decibels.c | 111 y0 = Q_SHIFT_RND(exp_small_fixed(Q_SHIFT_LEFT(xs, 27, 29)), 23, 20); in exp_fixed()
|
/sof-3.4.0/src/include/sof/audio/coefficients/volume/ |
D | windows_fade.h | 56 y = Q_SHIFT_LEFT(y0, 15, 30) + Q_MULTSR_32X32((int64_t)dx, c, 30, 15, 30); in volume_pow_175()
|
/sof-3.4.0/src/include/sof/math/ |
D | trig.h | 70 return sat_int32(Q_SHIFT_LEFT((int64_t)th_cdc_fxp, 30, 31)); in sin_fixed_32b() 98 return sat_int32(Q_SHIFT_LEFT((int64_t)th_cdc_fxp, 30, 31)); in cos_fixed_32b()
|
/sof-3.4.0/src/audio/drc/ |
D | drc_math_generic.c | 31 return Q_SHIFT_LEFT(x, bit, 30); in rexp_fixed() 217 return sat_int32(Q_SHIFT_LEFT((int64_t)inv, precision_inv, precision_y)); in drc_inv_fixed()
|
D | drc_generic.c | 47 sat_int32(Q_SHIFT_LEFT((int64_t)p->knee_threshold, 24, 31)); in volume_gain() 49 sat_int32(Q_SHIFT_LEFT((int64_t)p->linear_threshold, 30, 31)); in volume_gain() 108 sample = Q_SHIFT_LEFT((int32_t)*sample16_p, 15, 31); in drc_update_detector_average() 240 sat32 = sat_int32(Q_SHIFT_LEFT((int64_t)compression_diff_db, 21, 24)); in drc_update_envelope() 254 state->envelope_rate = sat_int32(Q_SHIFT_LEFT((int64_t)envelope_rate, 20, 30)); in drc_update_envelope()
|
/sof-3.4.0/src/audio/tdfb/ |
D | tdfb_direction.c | 215 cd->direction.unit_delay = Q_SHIFT_LEFT(1LL, 0, 31) / fs; in tdfb_direction_init() 221 t_max = Q_SHIFT_LEFT(d_max, 12, 15) / SPEED_OF_SOUND; in tdfb_direction_init() 397 sin_az = sin_fixed_16b(Q_SHIFT_LEFT((int32_t)az, 12, 28)); /* Q1.15 */ in theoretical_time_differences() 398 cos_az = cos_fixed_16b(Q_SHIFT_LEFT((int32_t)az, 12, 28)); /* Q1.15 */ in theoretical_time_differences()
|
/sof-3.4.0/src/include/sof/audio/ |
D | format.h | 79 #define Q_SHIFT_LEFT(x, src_q, dst_q) ((x) << ((dst_q) - (src_q))) macro
|
/sof-3.4.0/src/math/auditory/ |
D | auditory.c | 162 scale_inv = Q_SHIFT_LEFT(ONE_Q30 / scale, 14, 16); in psy_get_mel_filterbank()
|
/sof-3.4.0/src/audio/mfcc/ |
D | mfcc_setup.c | 117 sin = sin_fixed_32b(Q_SHIFT_LEFT(val, 23, 28)); /* Q4.28 -> Q1.31 */ in mfcc_get_cepstral_lifter()
|
D | mfcc_generic.c | 119 s = (int32_t)emph->delay * emph->coef + Q_SHIFT_LEFT(*x0, 15, 30); in mfcc_source_copy_s16()
|
/sof-3.4.0/src/audio/src/ |
D | src_generic.c | 359 *fir->fir_wp = Q_SHIFT_LEFT(*x_rptr, 15, 31); in src_polyphase_stage_cir_s16()
|
/sof-3.4.0/src/drivers/intel/dmic/ |
D | dmic.c | 293 dmic->gain = Q_SHIFT_LEFT(db2lin_fixed(LOGRAMP_START_DB), 20, 30); in dmic_start()
|
/sof-3.4.0/src/audio/ |
D | tone.c | 306 f_max = Q_SHIFT_LEFT((int64_t)sg->fs, 0, 16 - 1); in tonegen_update_f()
|
/sof-3.4.0/src/audio/module_adapter/module/volume/ |
D | volume.c | 516 return sat_int32(Q_SHIFT_LEFT((int64_t)volume, 23, 31)); in convert_volume_ipc3_to_ipc4()
|