Replace divide with look-up
authorYaowu Xu <yaowu@google.com>
Thu, 22 Jan 2015 23:27:43 +0000 (15:27 -0800)
committerYaowu Xu <yaowu@google.com>
Fri, 23 Jan 2015 17:02:07 +0000 (09:02 -0800)
commiteda179764f5b270c7298660a12fb8f9176902e2a
treeada977789ca7fc6051b009146b21e7c92b2dee28
parentcf3202132f74081292173e8cd6aff4bf9ca2c0af
Replace divide with look-up

This commit replaces an integer divide with a table-lookup. It is
to improve decoding speed, and at the same time, to reduce possible
complications with a bug in AMD Family 12h processors:

"665 Integer Divide Instruction May Cause Unpredictable Behavior"

Change-Id: I678b707a538798a923850bac467e66e847e6def7
vp9/common/vp9_entropymode.c
vp9/common/vp9_entropymv.c
vp9/common/vp9_prob.c
vp9/common/vp9_prob.h