diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-06 14:40:28 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-06 14:40:28 +0000 |
commit | c7b76a0ae374e5ce38d85a859786c7c8c91028ee (patch) | |
tree | 91d04e4f6c70e5e587d97a5525a4aeb9c5228a10 | |
parent | 958fb4a92cbbb2b9b49e4b4502a836c71435570a (diff) |
Fix i64 remainder calculation copy-paste error.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4357 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | tcg/tcg-runtime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tcg/tcg-runtime.c b/tcg/tcg-runtime.c index f41703ec8b..575da43022 100644 --- a/tcg/tcg-runtime.c +++ b/tcg/tcg-runtime.c @@ -53,7 +53,7 @@ int64_t tcg_helper_div_i64(int64_t arg1, int64_t arg2) int64_t tcg_helper_rem_i64(int64_t arg1, int64_t arg2) { - return arg1 / arg2; + return arg1 % arg2; } uint64_t tcg_helper_divu_i64(uint64_t arg1, uint64_t arg2) @@ -63,6 +63,6 @@ uint64_t tcg_helper_divu_i64(uint64_t arg1, uint64_t arg2) uint64_t tcg_helper_remu_i64(uint64_t arg1, uint64_t arg2) { - return arg1 / arg2; + return arg1 % arg2; } |