]> granicus.if.org Git - libvpx/commit
Remove unnecessary ternary constructs
authorJohn Koleszar <jkoleszar@google.com>
Thu, 22 Dec 2011 00:11:31 +0000 (16:11 -0800)
committerJohn Koleszar <jkoleszar@google.com>
Thu, 22 Dec 2011 18:09:46 +0000 (10:09 -0800)
commit0c2b2c79aed688daf5f4cc1745493b0e4172e57b
tree1684a597a928153134e34100552fb1621bf79bd1
parentf56918ba9c8c964a7532ddac925fc5af8d330355
Remove unnecessary ternary constructs

The code had a number of constructs like (condition)?1:0,
which is redundant with C's semantics. In the cases where a boolean
operator was used in the condition, simply remove the ternary part.
Otherwise adjust the surrounding expression to remove the condition
(eg, for rounding up. See pickinter.c and rdopt.c)

Change-Id: Icb2372defa3783cf31857d90b2630d06b2c7e1be
vp8/common/findnearmv.h
vp8/encoder/bitstream.c
vp8/encoder/onyx_if.c
vp8/encoder/pickinter.c
vp8/encoder/picklpf.c
vp8/encoder/rdopt.c
vp8/encoder/temporal_filter.c