]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
int128.h: Avoid undefined behaviours involving signed arithmetic
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 28 Mar 2014 15:12:56 +0000 (15:12 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 18 Apr 2014 06:33:36 +0000 (10:33 +0400)
commit423d00c857ebc814ef6b5fc63f1d6c595cdc005d
treec032e6853c2ad0239eb3bcabf1a960638db6a523
parentee25595f0126de0f83da86cc29ba2365be7a50d2
int128.h: Avoid undefined behaviours involving signed arithmetic

Add casts when we're performing arithmetic on the .hi parts of an
Int128, to avoid undefined behaviour.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
include/qemu/int128.h