Apparently, x86 (and probably a lot of other instruction sets) put both the quotient and the remainder of a divide operation in separate registers.
Now, we can proba
The .NET framework has Math.DivRem:
int mod, div = Math.DivRem(11, 3, out mod);
// mod = 2, div = 3
Although, DivRem is just a wrapper around something like this:
int div = x / y;
int mod = x % y;
(I have no idea whether or not the jitter can/does optimise that sort of thing into a single instruction.)