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
Mark Harris
Opus
Commits
da1156af
Commit
da1156af
authored
Jul 01, 2009
by
Jean-Marc Valin
Browse files
fixing a floating point bug for very small signals
parent
63396f39
Changes
1
Hide whitespace changes
Inline
Side-by-side
libcelt/vq.c
View file @
da1156af
...
...
@@ -154,11 +154,11 @@ void alg_quant(celt_norm_t *X, celt_mask_t *W, int N, int K, celt_norm_t *P, ec_
if
(
sum
<=
EPSILON
)
#endif
{
X
[
0
]
=
16384
;
X
[
0
]
=
QCONST16
(
1
.
f
,
14
)
;
j
=
1
;
do
X
[
j
]
=
0
;
while
(
++
j
<
N
);
sum
=
16384
;
sum
=
QCONST16
(
1
.
f
,
14
)
;
}
/* Do we have sufficient accuracy here? */
rcp
=
EXTRACT16
(
MULT16_32_Q16
(
K
-
1
,
celt_rcp
(
sum
)));
...
...
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