Home
last modified time | relevance | path

Searched hist:"365206 ae" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/target/ppc/
H A Dint_helper.c365206ae Wed Jan 11 15:11:25 CST 2017 Jose Ricardo Ziviani <joserz@linux.vnet.ibm.com> ppc: Fix a warning in bcdcfz code and improve BCD_DIG_BYTE macro

This commit fixes a warning in the code "(i * 2) ? .. : ..", which
should be better as "i ? .. : ..", and improves the BCD_DIG_BYTE
macro by placing parentheses around its argument to avoid possible
expansion issues like: BCD_DIG_BYTE(i + j).

Signed-off-by: Jose Ricardo Ziviani <joserz@linux.vnet.ibm.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>