Revision e4a35244

View differences:

libavcodec/acelp_pitch_delay.c
128 128
    // ^g_c = ^gamma_gc * 100.05 (predicted dB + mean dB - dB of fixed vector)
129 129
    // Note 10^(0.05 * -10log(average x2)) = 1/sqrt((average x2)).
130 130
    float val = fixed_gain_factor *
131
        exp2f(log2f(10.0) * 0.05 *
131
        exp2f(M_LOG2_10 * 0.05 *
132 132
              (ff_dot_productf(pred_table, prediction_error, 4) +
133 133
               energy_mean)) /
134 134
        sqrtf(fixed_mean_energy);
libavutil/mathematics.h
35 35
#ifndef M_LN10
36 36
#define M_LN10         2.30258509299404568402  /* log_e 10 */
37 37
#endif
38
#ifndef M_LOG2_10
39
#define M_LOG2_10      3.32192809488736218171  /* log_2 10 */
40
#endif
38 41
#ifndef M_PI
39 42
#define M_PI           3.14159265358979323846  /* pi */
40 43
#endif

Also available in: Unified diff