Skip to contentSkip to conversation

[4357] Fix i64 remainder calculation copy-paste error.

Qemu-devel Andrzej Zaborowski 1 participant 1 message May 6, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4357

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4357
Author:   balrog
Date:     2008-05-06 14:40:28 +0000 (Tue, 06 May 2008)

Log Message:
-----------
Fix i64 remainder calculation copy-paste error.

Modified Paths:
--------------
trunk/tcg/tcg-runtime.c

Modified: trunk/tcg/tcg-runtime.c
===================================================================

tcg/tcg-runtime.c +2 -2
@@ -53,7 +53,7 @@
 
 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_remu_i64(uint64_t arg1, uint64_t arg2)
 {
-    return arg1 / arg2;
+    return arg1 % arg2;
 }