Resolve -Wshorten-64-to-32 in highbd variance.
authorJames Zern <jzern@google.com>
Wed, 5 Apr 2017 03:37:17 +0000 (20:37 -0700)
committerJames Zern <jzern@google.com>
Thu, 6 Apr 2017 00:34:02 +0000 (17:34 -0700)
commit47b9a09120c1085932af71f55eeba3e891c57a5e
tree58bd7f04317aaa8473686d61287bd63ac2813a75
parentfb60204d4c36a4041daaca2f1461b731fa2dfaa2
Resolve -Wshorten-64-to-32 in highbd variance.

For 8-bit the subtrahend is small enough to fit into uint32_t.

This is the same that was done for:
c0241664a Resolve -Wshorten-64-to-32 in variance.

For 10/12-bit apply:
63a37d16f Prevent negative variance

Change-Id: Iab35e3f3f269035e17c711bd6cc01272c3137e1d
vpx_dsp/variance.c
vpx_dsp/x86/highbd_variance_sse2.c