Skip to content
Commit b51012de authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

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: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 765bdb40
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment