Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JtOLJ-0004Uj-9w for qemu-devel@nongnu.org; Tue, 06 May 2008 10:40:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JtOLI-0004UH-RS for qemu-devel@nongnu.org; Tue, 06 May 2008 10:40:33 -0400 Received: from [199.232.76.173] (port=53419 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JtOLI-0004U6-FE for qemu-devel@nongnu.org; Tue, 06 May 2008 10:40:32 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JtOLI-0006fS-3W for qemu-devel@nongnu.org; Tue, 06 May 2008 10:40:32 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1JtOLG-000064-Vl for qemu-devel@nongnu.org; Tue, 06 May 2008 14:40:31 +0000 Received: from balrog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1JtOLG-00005z-0i for qemu-devel@nongnu.org; Tue, 06 May 2008 14:40:30 +0000 MIME-Version: 1.0 Errors-To: balrog Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Andrzej Zaborowski Message-Id: Date: Tue, 06 May 2008 14:40:30 +0000 Subject: [Qemu-devel] [4357] Fix i64 remainder calculation copy-paste error. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 =================================================================== --- trunk/tcg/tcg-runtime.c 2008-05-06 10:57:59 UTC (rev 4356) +++ trunk/tcg/tcg-runtime.c 2008-05-06 14:40:28 UTC (rev 4357) @@ -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; }