On Mon, Nov 30, 2015 at 11:15:23AM +0200, Michael S. Tsirkin wrote: > We know vring num is a power of 2, so use & > to mask the high bits. > > Signed-off-by: Michael S. Tsirkin <[email protected]> > ---
The generated code switches from DIV -> masking, source is clearer as well. Tested-by: Venkatesh Srinivas <[email protected]> -- vs; _______________________________________________ Virtualization mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/virtualization
