Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1403193
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH 00/15] Provide atomics and bitops implemented with ISO C++11 atomics |
| Date | 2016-05-18 19:50 +0200 |
| Message-ID | <rAdLA-5bb-9@gated-at.bofh.it> (permalink) |
| References | <rAbqp-3On-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, May 18, 2016 at 04:10:37PM +0100, David Howells wrote: > (3) I've added cmpxchg_return() and try_cmpxchg() to replace cmpxchg(). > I've also provided atomicX_t variants of these. These return the > boolean return value from the __atomic_compare_exchange_n() function > (which is carried in the Z flag on x86). Should this be rolled out > even without the ISO atomic implementation? I suppose we could, esp. with GCC-6.1 having cc-output using the Z flag should result in nicer code.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH 00/15] Provide atomics and bitops implemented with ISO C++11 atomics David Howells <dhowells@redhat.com> - 2016-05-18 17:20 +0200
[RFC PATCH 06/15] Provide 16-bit ISO atomics David Howells <dhowells@redhat.com> - 2016-05-18 17:20 +0200
Re: [RFC PATCH 06/15] Provide 16-bit ISO atomics Peter Zijlstra <peterz@infradead.org> - 2016-05-18 19:30 +0200
[RFC PATCH 15/15] x86: Fix misc cmpxchg() and atomic_cmpxchg() calls to use try/return variants David Howells <dhowells@redhat.com> - 2016-05-18 17:20 +0200
[RFC PATCH 12/15] x86: Use ISO xchg(), cmpxchg() and friends David Howells <dhowells@redhat.com> - 2016-05-18 17:20 +0200
[RFC PATCH 14/15] x86: Make the mutex implementation use ISO atomic ops David Howells <dhowells@redhat.com> - 2016-05-18 17:20 +0200
[RFC PATCH 13/15] x86: Improve spinlocks using ISO C++11 intrinsic atomics David Howells <dhowells@redhat.com> - 2016-05-18 17:20 +0200
Re: [RFC PATCH 13/15] x86: Improve spinlocks using ISO C++11 intrinsic atomics Peter Zijlstra <peterz@infradead.org> - 2016-05-18 19:40 +0200
[RFC PATCH 07/15] Provide cmpxchg(), xchg(), xadd() and __add() based on ISO C++11 intrinsics David Howells <dhowells@redhat.com> - 2016-05-18 17:20 +0200
[RFC PATCH 04/15] Convert 32-bit ISO atomics into a template David Howells <dhowells@redhat.com> - 2016-05-18 17:20 +0200
Re: [RFC PATCH 00/15] Provide atomics and bitops implemented with ISO C++11 atomics Peter Zijlstra <peterz@infradead.org> - 2016-05-18 19:30 +0200
Re: [RFC PATCH 00/15] Provide atomics and bitops implemented with ISO C++11 atomics Peter Zijlstra <peterz@infradead.org> - 2016-05-18 19:50 +0200
Re: [RFC PATCH 00/15] Provide atomics and bitops implemented with ISO C++11 atomics Peter Zijlstra <peterz@infradead.org> - 2016-05-18 20:10 +0200
Re: [RFC PATCH 00/15] Provide atomics and bitops implemented with ISO C++11 atomics "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-05-19 02:30 +0200
csiph-web