annotate DEPENDENCIES/generic/include/boost/atomic/detail/caps_gcc_arm.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents f46d142149f5
children
rev   line source
Chris@102 1 /*
Chris@102 2 * Distributed under the Boost Software License, Version 1.0.
Chris@102 3 * (See accompanying file LICENSE_1_0.txt or copy at
Chris@102 4 * http://www.boost.org/LICENSE_1_0.txt)
Chris@102 5 *
Chris@102 6 * Copyright (c) 2009 Helge Bahmann
Chris@102 7 * Copyright (c) 2009 Phil Endecott
Chris@102 8 * Copyright (c) 2013 Tim Blechmann
Chris@102 9 * ARM Code by Phil Endecott, based on other architectures.
Chris@102 10 * Copyright (c) 2014 Andrey Semashev
Chris@102 11 */
Chris@102 12 /*!
Chris@102 13 * \file atomic/detail/caps_gcc_arm.hpp
Chris@102 14 *
Chris@102 15 * This header defines feature capabilities macros
Chris@102 16 */
Chris@102 17
Chris@102 18 #ifndef BOOST_ATOMIC_DETAIL_CAPS_GCC_ARM_HPP_INCLUDED_
Chris@102 19 #define BOOST_ATOMIC_DETAIL_CAPS_GCC_ARM_HPP_INCLUDED_
Chris@102 20
Chris@102 21 #include <boost/atomic/detail/config.hpp>
Chris@102 22
Chris@102 23 #ifdef BOOST_HAS_PRAGMA_ONCE
Chris@102 24 #pragma once
Chris@102 25 #endif
Chris@102 26
Chris@102 27 #if !(defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6ZK__))
Chris@102 28 // ARMv7 and later have dmb instruction
Chris@102 29 #define BOOST_ATOMIC_DETAIL_ARM_HAS_DMB 1
Chris@102 30 #endif
Chris@102 31
Chris@102 32 #if !(defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6Z__))
Chris@102 33 // ARMv6k and ARMv7 have 8 and 16 ldrex/strex variants
Chris@102 34 #define BOOST_ATOMIC_DETAIL_ARM_HAS_LDREXB_STREXB 1
Chris@102 35 #define BOOST_ATOMIC_DETAIL_ARM_HAS_LDREXH_STREXH 1
Chris@102 36 #if !(((defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6ZK__)) && defined(__thumb__)) || defined(__ARM_ARCH_7M__))
Chris@102 37 // ARMv6k and ARMv7 except ARMv7-M have 64-bit ldrex/strex variants.
Chris@102 38 // Unfortunately, GCC (at least 4.7.3 on Ubuntu) does not allocate register pairs properly when targeting ARMv6k Thumb,
Chris@102 39 // which is required for ldrexd/strexd instructions, so we disable 64-bit support. When targeting ARMv6k ARM
Chris@102 40 // or ARMv7 (both ARM and Thumb 2) it works as expected.
Chris@102 41 #define BOOST_ATOMIC_DETAIL_ARM_HAS_LDREXD_STREXD 1
Chris@102 42 #endif
Chris@102 43 #endif
Chris@102 44
Chris@102 45 #define BOOST_ATOMIC_INT8_LOCK_FREE 2
Chris@102 46 #define BOOST_ATOMIC_INT16_LOCK_FREE 2
Chris@102 47 #define BOOST_ATOMIC_INT32_LOCK_FREE 2
Chris@102 48 #if defined(BOOST_ATOMIC_DETAIL_ARM_HAS_LDREXD_STREXD)
Chris@102 49 #define BOOST_ATOMIC_INT64_LOCK_FREE 2
Chris@102 50 #endif
Chris@102 51 #define BOOST_ATOMIC_POINTER_LOCK_FREE 2
Chris@102 52
Chris@102 53 #define BOOST_ATOMIC_THREAD_FENCE 2
Chris@102 54 #define BOOST_ATOMIC_SIGNAL_FENCE 2
Chris@102 55
Chris@102 56 #endif // BOOST_ATOMIC_DETAIL_CAPS_GCC_ARM_HPP_INCLUDED_