• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Distributed under the Boost Software License, Version 1.0.
3  * (See accompanying file LICENSE_1_0.txt or copy at
4  * http://www.boost.org/LICENSE_1_0.txt)
5  *
6  * Copyright (c) 2020 Andrey Semashev
7  */
8 /*!
9  * \file   atomic/detail/caps_arch_gcc_aarch32.hpp
10  *
11  * This header defines feature capabilities macros
12  */
13 
14 #ifndef BOOST_ATOMIC_DETAIL_CAPS_ARCH_GCC_AARCH32_HPP_INCLUDED_
15 #define BOOST_ATOMIC_DETAIL_CAPS_ARCH_GCC_AARCH32_HPP_INCLUDED_
16 
17 #include <boost/atomic/detail/config.hpp>
18 
19 #ifdef BOOST_HAS_PRAGMA_ONCE
20 #pragma once
21 #endif
22 
23 #if defined(__ARMEL__) || \
24     (defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) || \
25     (defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__)) || \
26     defined(BOOST_WINDOWS)
27 #define BOOST_ATOMIC_DETAIL_AARCH32_LITTLE_ENDIAN
28 #elif defined(__ARMEB__) || \
29     defined(__ARM_BIG_ENDIAN) || \
30     (defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) || \
31     (defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__))
32 #define BOOST_ATOMIC_DETAIL_AARCH32_BIG_ENDIAN
33 #else
34 #error "Boost.Atomic: Failed to determine AArch32 endianness, the target platform is not supported. Please, report to the developers (patches are welcome)."
35 #endif
36 
37 #define BOOST_ATOMIC_INT8_LOCK_FREE 2
38 #define BOOST_ATOMIC_INT16_LOCK_FREE 2
39 #define BOOST_ATOMIC_INT32_LOCK_FREE 2
40 #define BOOST_ATOMIC_INT64_LOCK_FREE 2
41 #define BOOST_ATOMIC_POINTER_LOCK_FREE 2
42 
43 #define BOOST_ATOMIC_THREAD_FENCE 2
44 #define BOOST_ATOMIC_SIGNAL_FENCE 2
45 
46 #endif // BOOST_ATOMIC_DETAIL_CAPS_ARCH_GCC_AARCH32_HPP_INCLUDED_
47