Searched refs:Q_CONVERT_FLOAT (Results 1 – 16 of 16) sorted by relevance
/sof-2.7.6/src/audio/drc/ |
D | drc_math_generic.c | 46 const int32_t ONE_OVER_SQRT2 = Q_CONVERT_FLOAT(0.70710678118654752f, 30); /* 1/sqrt(2) */ in log10_fixed() 47 const int32_t A5 = Q_CONVERT_FLOAT(1.131880283355712890625f, qc); in log10_fixed() 48 const int32_t A4 = Q_CONVERT_FLOAT(-4.258677959442138671875f, qc); in log10_fixed() 49 const int32_t A3 = Q_CONVERT_FLOAT(6.81631565093994140625f, qc); in log10_fixed() 50 const int32_t A2 = Q_CONVERT_FLOAT(-6.1185703277587890625f, qc); in log10_fixed() 51 const int32_t A1 = Q_CONVERT_FLOAT(3.6505267620086669921875f, qc); in log10_fixed() 52 const int32_t A0 = Q_CONVERT_FLOAT(-1.217894077301025390625f, qc); in log10_fixed() 53 const int32_t LOG10_2 = Q_CONVERT_FLOAT(0.301029995663981195214f, qc); in log10_fixed() 86 return Q_CONVERT_FLOAT(-1000.0f, 21); in drc_lin2db_fixed() 98 const int32_t LOG10 = Q_CONVERT_FLOAT(2.3025850929940457f, 29); in drc_log_fixed() [all …]
|
D | drc_generic.c | 18 #define ONE_Q20 Q_CONVERT_FLOAT(1.0f, 20) /* Q12.20 */ 19 #define ONE_Q21 Q_CONVERT_FLOAT(1.0f, 21) /* Q11.21 */ 20 #define ONE_Q30 Q_CONVERT_FLOAT(1.0f, 30) /* Q2.30 */ 21 #define TWELVE_Q21 Q_CONVERT_FLOAT(12.0f, 21) /* Q11.21 */ 22 #define HALF_Q24 Q_CONVERT_FLOAT(0.5f, 24) /* Q8.24 */ 23 #define NEG_TWO_DB_Q30 Q_CONVERT_FLOAT(0.7943282347242815f, 30) /* -2dB = 10^(-2/20); Q2.30 */
|
D | drc.c | 53 state->compressor_gain = Q_CONVERT_FLOAT(1.0f, 30); in drc_reset_state()
|
/sof-2.7.6/src/math/ |
D | decibels.c | 11 #define ONE_Q20 Q_CONVERT_FLOAT(1.0, 20) /* Use Q12.20 */ 12 #define ONE_Q23 Q_CONVERT_FLOAT(1.0, 23) /* Use Q9.23 */ 13 #define TWO_Q27 Q_CONVERT_FLOAT(2.0, 27) /* Use Q5.27 */ 14 #define MINUS_TWO_Q27 Q_CONVERT_FLOAT(-2.0, 27) /* Use Q5.27 */ 15 #define LOG10_DIV20_Q27 Q_CONVERT_FLOAT(0.1151292546, 27) /* Use Q5.27 */ 66 if (db < Q_CONVERT_FLOAT(-100.0, 24)) in db2lin_fixed() 95 if (x < Q_CONVERT_FLOAT(-11.5, 27)) in exp_fixed() 98 if (x > Q_CONVERT_FLOAT(7.6245, 27)) in exp_fixed()
|
D | trig.c | 20 const int32_t cordic_sine_cos_lut_q29fl = Q_CONVERT_FLOAT(1.214505869895220, 29); 22 const int32_t cordic_sine_cos_piovertwo_q30fl = Q_CONVERT_FLOAT(_M_PI / 2, 30); 24 const int32_t cord_sincos_piovertwo_q28fl = Q_CONVERT_FLOAT(_M_PI / 2, 28); 26 const int32_t cord_sincos_piovertwo_q29fl = Q_CONVERT_FLOAT(_M_PI / 2, 29); 40 const int32_t cord_arcsincos_q28fl = Q_CONVERT_FLOAT(1.4142135605216026 / 2, 28); 42 const int32_t cord_arcsincos_q30fl = Q_CONVERT_FLOAT(1.0000000000000000, 30);
|
/sof-2.7.6/src/include/sof/audio/drc/ |
D | drc_math.h | 89 const int32_t PI_OVER_TWO = Q_CONVERT_FLOAT(1.57079632679489661923, 30); in drc_sin_fixed() 102 const int32_t TWO_OVER_PI = Q_CONVERT_FLOAT(0.63661977236758134, 30); /* 2/pi */ in drc_asin_fixed()
|
/sof-2.7.6/test/cmocka/src/math/trig/ |
D | cos_16b_fixed.c | 30 int32_t rad_q28 = Q_CONVERT_FLOAT(rad, 28); in test_math_trig_cos_fixed()
|
D | cos_32b_fixed.c | 30 int32_t rad_q28 = Q_CONVERT_FLOAT(rad, 28); in test_math_trig_cos_fixed()
|
D | sin_16b_fixed.c | 30 int32_t rad_q28 = Q_CONVERT_FLOAT(rad, 28); in test_math_trig_sin_fixed()
|
D | sin_32b_fixed.c | 30 int32_t rad_q28 = Q_CONVERT_FLOAT(rad, 28); in test_math_trig_sin_fixed()
|
/sof-2.7.6/src/include/sof/audio/ |
D | format.h | 51 #define Q_CONVERT_FLOAT(f, qy) \ macro
|
/sof-2.7.6/src/samples/audio/ |
D | detect_test.c | 42 Q_CONVERT_FLOAT(ACTIVATION_DEFAULT_COEF, 15) /* Q1.15 */ 44 Q_CONVERT_FLOAT(ACTIVATION_DEFAULT_COEF, 23) /* Q1.23 */ 46 Q_CONVERT_FLOAT(ACTIVATION_DEFAULT_COEF, 31) /* Q1.31 */
|
/sof-2.7.6/src/audio/asrc/ |
D | asrc_farrow.c | 21 #define SKEW_MIN Q_CONVERT_FLOAT(0.5, 30) 28 #define TIME_VALUE_ONE Q_CONVERT_FLOAT(1, 27) 29 #define TIME_VALUE_LIMIT Q_CONVERT_FLOAT(0.0001, 27) 32 #define ONE_Q27 Q_CONVERT_FLOAT(1, 27)
|
D | asrc.c | 40 #define COEF_C1 Q_CONVERT_FLOAT(0.01, 30) 41 #define COEF_C2 Q_CONVERT_FLOAT(0.99, 30) 703 cd->skew = Q_CONVERT_FLOAT(1.0, 30); in asrc_prepare()
|
/sof-2.7.6/src/include/sof/drivers/ |
D | dmic.h | 99 #define DMIC_HW_SENS_Q28 Q_CONVERT_FLOAT(1.0, 28) /* Q1.28 */ 440 #define LOGRAMP_START_DB Q_CONVERT_FLOAT(-90, DB2LIN_FIXED_INPUT_QY)
|
/sof-2.7.6/src/audio/ |
D | tone.c | 37 #define TONE_FREQ(f) Q_CONVERT_FLOAT(f, 16) 40 #define TONE_GAIN(v) Q_CONVERT_FLOAT(v, 31)
|