提交 c7b76a0a 编写于 作者: B balrog

Fix i64 remainder calculation copy-paste error.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4357 c046a42c-6fe2-441c-8c8c-71466251a162
上级 958fb4a9
......@@ -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;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册