mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
replace LOCAL_FABS() with fabs()
This commit is contained in:
@@ -28,8 +28,6 @@
|
|||||||
#define M_LN2 0.69314718055994530942
|
#define M_LN2 0.69314718055994530942
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LOCAL_FABS(x) ((x)<0.0? -(x):(x))
|
|
||||||
|
|
||||||
void FLAC__lpc_compute_autocorrelation(const FLAC__real data[], unsigned data_len, unsigned lag, FLAC__real autoc[])
|
void FLAC__lpc_compute_autocorrelation(const FLAC__real data[], unsigned data_len, unsigned lag, FLAC__real autoc[])
|
||||||
{
|
{
|
||||||
/* a readable, but slower, version */
|
/* a readable, but slower, version */
|
||||||
@@ -135,7 +133,7 @@ int FLAC__lpc_quantize_coefficients(const FLAC__real lp_coeff[], unsigned order,
|
|||||||
for(i = 0; i < order; i++) {
|
for(i = 0; i < order; i++) {
|
||||||
if(lp_coeff[i] == 0.0)
|
if(lp_coeff[i] == 0.0)
|
||||||
continue;
|
continue;
|
||||||
d = LOCAL_FABS(lp_coeff[i]);
|
d = fabs(lp_coeff[i]);
|
||||||
if(d > cmax)
|
if(d > cmax)
|
||||||
cmax = d;
|
cmax = d;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user