Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1284194
| From | Venkatesh Srinivas <venkateshs@google.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] vhost: replace % with & on data path |
| Date | 2015-12-04 21:20 +0100 |
| Message-ID | <qC4ZH-7q7-1@gated-at.bofh.it> (permalink) |
| References | <qAsMN-1Go-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 <mst@redhat.com> > --- The generated code switches from DIV -> masking, source is clearer as well. Tested-by: Venkatesh Srinivas <venkateshs@google.com> -- vs; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH v2] vhost: replace % with & on data path Venkatesh Srinivas <venkateshs@google.com> - 2015-12-04 21:20 +0100
csiph-web