Searched defs:M_LN2 (Results 1 - 2 of 2) sorted by relevance

/external/flac/libFLAC/
H A Dfixed.c42 #ifndef M_LN2
44 #define M_LN2 0.69314718055994530942 macro
265 residual_bits_per_sample[0] = (FLAC__float)((total_error_0 > 0) ? log(M_LN2 * (FLAC__double)total_error_0 / (FLAC__double)data_len) / M_LN2 : 0.0);
266 residual_bits_per_sample[1] = (FLAC__float)((total_error_1 > 0) ? log(M_LN2 * (FLAC__double)total_error_1 / (FLAC__double)data_len) / M_LN2 : 0.0);
267 residual_bits_per_sample[2] = (FLAC__float)((total_error_2 > 0) ? log(M_LN2 * (FLAC__double)total_error_2 / (FLAC__double)data_len) / M_LN2 : 0.0);
268 residual_bits_per_sample[3] = (FLAC__float)((total_error_3 > 0) ? log(M_LN2 * (FLAC__double)total_error_3 / (FLAC__double)data_len) / M_LN2
[all...]
H A Dlpc.c47 #ifndef M_LN2
49 #define M_LN2 0.69314718055994530942 macro
1337 error_scale = 0.5 * M_LN2 * M_LN2 / (FLAC__double)total_samples;
1345 FLAC__double bps = (FLAC__double)0.5 * log(error_scale * lpc_error) / M_LN2;
1367 error_scale = 0.5 * M_LN2 * M_LN2 / (FLAC__double)total_samples;

Completed in 356 milliseconds