Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
flac
Commits
f52360ab
Commit
f52360ab
authored
Aug 13, 2001
by
Josh Coalson
Browse files
replace LOCAL_FABS() with fabs()
parent
a60231f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libFLAC/lpc.c
View file @
f52360ab
...
...
@@ -28,8 +28,6 @@
#define M_LN2 0.69314718055994530942
#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
[])
{
/* 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
++
)
{
if
(
lp_coeff
[
i
]
==
0
.
0
)
continue
;
d
=
LOCAL_FABS
(
lp_coeff
[
i
]);
d
=
fabs
(
lp_coeff
[
i
]);
if
(
d
>
cmax
)
cmax
=
d
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment