Update renesas platform to not rely on undefined overflow behaviour
authorJustin Chadwell <justin.chadwell@arm.com>
Wed, 3 Jul 2019 13:11:06 +0000 (14:11 +0100)
committerJustin Chadwell <justin.chadwell@arm.com>
Thu, 11 Jul 2019 11:10:58 +0000 (12:10 +0100)
commit673406b50841ca45b3f041283a0d5f750611470e
tree2eafbdba170f898f48ab80f47604d76106538f1e
parent1578169edd4aec236e564570c73a931ad632e420
Update renesas platform to not rely on undefined overflow behaviour

This consists of ensuring that the left operand of each shift is
unsigned when the operation might overflow into the sign bit.

Change-Id: I51278beacbe6da79853c3f0f0f94cd806fc9652c
Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
drivers/renesas/rcar/cpld/ulcb_cpld.c
drivers/renesas/rcar/pwrc/pwrc.c
drivers/renesas/rcar/pwrc/pwrc.h
plat/renesas/rcar/rcar_common.c