diff options
author | Andrew W. Nosenko <andrew.w.nosenko@gmail.com> | 2012-04-27 18:39:13 +0300 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-04-29 07:30:48 +0200 |
commit | 13abf5c351cd989aafa3dda261282732e8c38a83 (patch) | |
tree | 63eda5979b55edfdc5977946333da6c732ae08e1 /tests | |
parent | 8aafb03dee4520ea62cd0cc0c78a9b958ec5ae18 (diff) |
atomic: prever inline asm over GCC builtins for armv7a
As per Patrick Trantham comment
http://groups.crossroads.io/r/topic/510xaadGgWVcXFdATnhAuN
the GCC __sync_*() builtins are more generic but slower than specialized
hand-written assembly for armv7a case.
Therefore, the code is reordered for prefer inline assembly for armv7a
over GCC builtins.
* src/atomic_counter.hpp:
(atomic_counter_t::add):
(atomic_counter_t::sub):
* src/atomic_ptr.hpp:
(atomic_ptr_t::xchg):
(atomic_ptr_t::cas):
Prefer armv7a specific inline asm over GCC __sync_*() builtins.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions