Use gcc's atomic builtins on arm, when available.
This commit is contained in:
parent
db0128072c
commit
368bd798f5
@ -25,7 +25,8 @@
|
||||
# include "asio/detail/macos_fenced_block.hpp"
|
||||
#elif defined(__sun)
|
||||
# include "asio/detail/solaris_fenced_block.hpp"
|
||||
#elif defined(__GNUC__) && defined(__arm__)
|
||||
#elif defined(__GNUC__) && defined(__arm__) \
|
||||
&& !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
|
||||
# include "asio/detail/gcc_arm_fenced_block.hpp"
|
||||
#elif defined(__GNUC__) && (defined(__hppa) || defined(__hppa__))
|
||||
# include "asio/detail/gcc_hppa_fenced_block.hpp"
|
||||
@ -53,7 +54,8 @@ typedef null_fenced_block fenced_block;
|
||||
typedef macos_fenced_block fenced_block;
|
||||
#elif defined(__sun)
|
||||
typedef solaris_fenced_block fenced_block;
|
||||
#elif defined(__GNUC__) && defined(__arm__)
|
||||
#elif defined(__GNUC__) && defined(__arm__) \
|
||||
&& !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
|
||||
typedef gcc_arm_fenced_block fenced_block;
|
||||
#elif defined(__GNUC__) && (defined(__hppa) || defined(__hppa__))
|
||||
typedef gcc_hppa_fenced_block fenced_block;
|
||||
|
Loading…
Reference in New Issue
Block a user