Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:43:51

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) 2020 Andrey Semashev
0007  */
0008 /*!
0009  * \file   atomic/detail/intptr.hpp
0010  *
0011  * This header defines (u)intptr_t types.
0012  */
0013 
0014 #ifndef BOOST_ATOMIC_DETAIL_INTPTR_HPP_INCLUDED_
0015 #define BOOST_ATOMIC_DETAIL_INTPTR_HPP_INCLUDED_
0016 
0017 #include <boost/cstdint.hpp>
0018 #if defined(BOOST_HAS_INTPTR_T)
0019 #include <cstddef>
0020 #endif
0021 #include <boost/atomic/detail/config.hpp>
0022 #include <boost/atomic/detail/header.hpp>
0023 
0024 #ifdef BOOST_HAS_PRAGMA_ONCE
0025 #pragma once
0026 #endif
0027 
0028 namespace boost {
0029 namespace atomics {
0030 namespace detail {
0031 
0032 #if !defined(BOOST_HAS_INTPTR_T)
0033 using boost::uintptr_t;
0034 using boost::intptr_t;
0035 #else
0036 typedef std::size_t uintptr_t;
0037 typedef std::ptrdiff_t intptr_t;
0038 #endif
0039 
0040 } // namespace detail
0041 } // namespace atomics
0042 } // namespace boost
0043 
0044 #include <boost/atomic/detail/footer.hpp>
0045 
0046 #endif // BOOST_ATOMIC_DETAIL_INTPTR_HPP_INCLUDED_