commit | b51012deb390528d89d426f328d84618683f5d73 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Fri Jan 22 11:39:22 2016 +0100 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Tue Feb 09 13:24:37 2016 +0100 |
tree | 7c1b7c78064df33f353c5875e645ebf1fe381190 | |
parent | 765bdb406de4b6132e349c5d4e077866536a9cc0 [diff] |
KVM: x86: introduce do_shl32_div32 This is similar to the existing div_frac function, but it returns the remainder too. Unlike div_frac, it can be used to implement long division, e.g. (a << 64) / b for 32-bit a and b. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>