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
Xiph.Org
Opus
Commits
f5790833
Unverified
Commit
f5790833
authored
Jan 20, 2019
by
evpobr
Committed by
Jean-Marc Valin
Jan 20, 2019
Browse files
Fix FIXED_POINT conditional check
Signed-off-by:
Jean-Marc Valin
<
jmvalin@jmvalin.ca
>
parent
9b247239
Changes
1
Show whitespace changes
Inline
Side-by-side
celt/bands.c
View file @
f5790833
...
...
@@ -371,14 +371,14 @@ void anti_collapse(const CELTMode *m, celt_norm *X_, unsigned char *collapse_mas
static
void
compute_channel_weights
(
celt_ener
Ex
,
celt_ener
Ey
,
opus_val16
w
[
2
])
{
celt_ener
minE
;
#if FIXED_POINT
#if
def
FIXED_POINT
int
shift
;
#endif
minE
=
MIN32
(
Ex
,
Ey
);
/* Adjustment to make the weights a bit more conservative. */
Ex
=
ADD32
(
Ex
,
minE
/
3
);
Ey
=
ADD32
(
Ey
,
minE
/
3
);
#if FIXED_POINT
#if
def
FIXED_POINT
shift
=
celt_ilog2
(
EPSILON
+
MAX32
(
Ex
,
Ey
))
-
14
;
#endif
w
[
0
]
=
VSHR32
(
Ex
,
shift
);
...
...
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