Skip to content
GitLab
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
aom-rav1e
Commits
8967fcaf
Commit
8967fcaf
authored
Jul 24, 2012
by
Ronald S. Bultje
Browse files
Add comment for use of shift/mul instead of div.
Change-Id: Ia6a0090da2097ca9337f8179a6d7b6a09e12f2e6
parent
980ca632
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp8/common/quant_common.c
View file @
8967fcaf
...
...
@@ -109,6 +109,9 @@ int vp8_ac2quant(int QIndex, int Delta)
else
if
(
QIndex
<
0
)
QIndex
=
0
;
/* For all x in [0..284], x*155/100 is bitwise equal to (x*101581) >> 16.
* The smallest precision for that is '(x*6349) >> 12' but 16 is a good
* word size. */
retval
=
(
ac_qlookup
[
QIndex
]
*
101581
)
>>
16
;
if
(
retval
<
8
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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