Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1277121
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/7] atomic: Export fetch_or() |
| Date | 2015-11-25 10:20 +0100 |
| Message-ID | <qyEp4-4c9-13@gated-at.bofh.it> (permalink) |
| References | <qunwt-7y6-9@gated-at.bofh.it> <qunwu-7y6-13@gated-at.bofh.it> <qyoaE-1F0-35@gated-at.bofh.it> <qytjZ-56r-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Nov 24, 2015 at 10:19:52PM +0100, Frederic Weisbecker wrote: > Also note that or_return() means that you first do OR and then return the new value. Yes, that's useless. OR is an irreversible operator, which means or_return() looses data. You can never say if a bit included in the mask was set before. You really must have fetch_or(). -- 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 — Previous in thread | Find similar | Unroll thread
Re: [PATCH 1/7] atomic: Export fetch_or() Chris Metcalf <cmetcalf@ezchip.com> - 2015-11-24 17:00 +0100
Re: [PATCH 1/7] atomic: Export fetch_or() Frederic Weisbecker <fweisbec@gmail.com> - 2015-11-24 22:30 +0100
Re: [PATCH 1/7] atomic: Export fetch_or() Chris Metcalf <cmetcalf@ezchip.com> - 2015-11-24 22:50 +0100
Re: [PATCH 1/7] atomic: Export fetch_or() Peter Zijlstra <peterz@infradead.org> - 2015-11-25 10:20 +0100
csiph-web