Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:33:57

0001 /*
0002  * Distributed under the Boost Software License, Version 1.0.
0003  * (See accompanying file LICENSE_1_0.txt or copy at
0004  * http://www.boost.org/LICENSE_1_0.txt)
0005  *
0006  * Copyright (c) 2021 Andrey Semashev
0007  */
0008 /*!
0009  * \file   atomic/detail/gcc_ppc_asm_common.hpp
0010  *
0011  * This header contains basic utilities for gcc asm-based PowerPC backend.
0012  */
0013 
0014 #ifndef BOOST_ATOMIC_DETAIL_GCC_PPC_ASM_COMMON_HPP_INCLUDED_
0015 #define BOOST_ATOMIC_DETAIL_GCC_PPC_ASM_COMMON_HPP_INCLUDED_
0016 
0017 #include <boost/atomic/detail/config.hpp>
0018 
0019 #ifdef BOOST_HAS_PRAGMA_ONCE
0020 #pragma once
0021 #endif
0022 
0023 #if !defined(_AIX)
0024 #define BOOST_ATOMIC_DETAIL_PPC_ASM_LABEL(label) label ":\n\t"
0025 #define BOOST_ATOMIC_DETAIL_PPC_ASM_JUMP(insn, label, offset) insn " " label "\n\t"
0026 #else
0027 // Standard assembler tool (as) on AIX does not support numeric jump labels, so we have to use offsets instead.
0028 // https://github.com/boostorg/atomic/pull/50
0029 #define BOOST_ATOMIC_DETAIL_PPC_ASM_LABEL(label)
0030 #define BOOST_ATOMIC_DETAIL_PPC_ASM_JUMP(insn, label, offset) insn " $" offset "\n\t"
0031 #endif
0032 
0033 #endif // BOOST_ATOMIC_DETAIL_GCC_PPC_ASM_COMMON_HPP_INCLUDED_