From: balrog Date: Tue, 6 May 2008 14:40:28 +0000 (+0000) Subject: Fix i64 remainder calculation copy-paste error. X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~14929 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7b76a0ae374e5ce38d85a859786c7c8c91028ee;p=sdk%2Femulator%2Fqemu.git Fix i64 remainder calculation copy-paste error. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4357 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/tcg/tcg-runtime.c b/tcg/tcg-runtime.c index f41703e..575da43 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; }