aboutsummaryrefslogtreecommitdiff
path: root/vnc_keysym.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2010-01-12 19:59:33 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-01-12 19:59:33 +0000
commit583d121520a81d07bacee7ebe9366d107c8b18b6 (patch)
treeedaa4e9824a7b3e99886da07c3fe1a6bb0c61b25 /vnc_keysym.h
parent5e143c43a686d5563b3a8c9d46b338967cc8d09c (diff)
tcg-sparc: Implement division properly.
The {div,divu}2 opcodes are intended for systems for which the division instruction produces both quotient and remainder. Sparc is not such a system. Indeed, the remainder must be computed as quot = a / b rem = a - (quot * b) Split out a tcg_out_div32 function that properly initializes Y with the extension of the input to 64-bits. Discard the code that used the 64-bit DIVX on sparc9/sparcv8plus without extending the inputs to 64-bits. Implement remainders in terms of division followed by multiplication. Signed-off-by: Richard Henderson <rth@twiddle.net> [blauwirbel@gmail.com: applied rth's typo fix in tcg_out_div32] Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'vnc_keysym.h')
0 files changed, 0 insertions, 0 deletions