aboutsummaryrefslogtreecommitdiff
path: root/hw/char/omap_uart.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2020-09-14 19:25:58 -0700
committerRichard Henderson <richard.henderson@linaro.org>2021-10-05 16:53:17 -0700
commit2552d60ebd6c519027d74bd452db7580b90e5cbd (patch)
treec54c359e398a1f3dc4cc4fb85dc72560cbc82864 /hw/char/omap_uart.c
parentdc29f4746fc8c641fb1182495c2662381cc16e23 (diff)
downloadqemu-2552d60ebd6c519027d74bd452db7580b90e5cbd.zip
qemu-2552d60ebd6c519027d74bd452db7580b90e5cbd.tar.gz
qemu-2552d60ebd6c519027d74bd452db7580b90e5cbd.tar.bz2
tcg: Expand usadd/ussub with umin/umax
For usadd, we only have to consider overflow. Since ~B + B == -1, the maximum value for A that saturates is ~B. For ussub, we only have to consider underflow. The minimum value that saturates to 0 from A - B is B. Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/char/omap_uart.c')
0 files changed, 0 insertions, 0 deletions