Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mark Harris
Opus
Commits
66fb2462
Commit
66fb2462
authored
Jun 14, 2009
by
Jean-Marc Valin
Browse files
removing redundant calls to exp2()
parent
095abafc
Changes
1
Hide whitespace changes
Inline
Side-by-side
libcelt/quant_bands.c
View file @
66fb2462
...
...
@@ -192,12 +192,12 @@ static void quant_energy_finalise_mono(const CELTMode *m, celt_ener_t *eBands, c
offset
=
(
q2
-
.
5
f
)
*
(
1
<<
(
14
-
fine_quant
[
i
]
-
1
))
*
(
1
.
f
/
16384
);
#endif
oldEBands
[
i
]
+=
offset
;
eBands
[
i
]
=
log2Amp
(
oldEBands
[
i
]);
bits_left
--
;
}
}
for
(
i
=
0
;
i
<
m
->
nbEBands
;
i
++
)
{
eBands
[
i
]
=
log2Amp
(
oldEBands
[
i
]);
if
(
oldEBands
[
i
]
<
-
QCONST16
(
7
.
f
,
8
))
oldEBands
[
i
]
=
-
QCONST16
(
7
.
f
,
8
);
}
...
...
@@ -280,12 +280,12 @@ static void unquant_energy_finalise_mono(const CELTMode *m, celt_ener_t *eBands,
offset
=
(
q2
-
.
5
f
)
*
(
1
<<
(
14
-
fine_quant
[
i
]
-
1
))
*
(
1
.
f
/
16384
);
#endif
oldEBands
[
i
]
+=
offset
;
eBands
[
i
]
=
log2Amp
(
oldEBands
[
i
]);
bits_left
--
;
}
}
for
(
i
=
0
;
i
<
m
->
nbEBands
;
i
++
)
{
eBands
[
i
]
=
log2Amp
(
oldEBands
[
i
]);
if
(
oldEBands
[
i
]
<
-
QCONST16
(
7
.
f
,
8
))
oldEBands
[
i
]
=
-
QCONST16
(
7
.
f
,
8
);
}
...
...
Write
Preview
Markdown
is supported
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