Sha256: 03c26d1124a52cc6b43df4e1473d5b96a3231c8497882c0df55dfc17cce7dd04

Contents?: true

Size: 1.68 KB

Versions: 29

Compression:

Stored size: 1.68 KB

Contents

/*
 * Distributed under the Boost Software License, Version 1.0.
 * (See accompanying file LICENSE_1_0.txt or copy at
 * http://www.boost.org/LICENSE_1_0.txt)
 *
 * Copyright (c) 2018 Andrey Semashev
 */
/*!
 * \file   atomic/detail/string_ops.hpp
 *
 * This header defines string operations for Boost.Atomic
 */

#ifndef BOOST_ATOMIC_DETAIL_STRING_OPS_HPP_INCLUDED_
#define BOOST_ATOMIC_DETAIL_STRING_OPS_HPP_INCLUDED_

#include <boost/atomic/detail/config.hpp>

#ifdef BOOST_HAS_PRAGMA_ONCE
#pragma once
#endif

#if defined(__has_builtin)
#if __has_builtin(__builtin_memcpy)
#define BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCPY
#endif
#if __has_builtin(__builtin_memcmp)
#define BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCMP
#endif
#if __has_builtin(__builtin_memset)
#define BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMSET
#endif
#elif defined(BOOST_GCC)
#define BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCPY
#define BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCMP
#define BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMSET
#endif

#if defined(BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCPY)
#define BOOST_ATOMIC_DETAIL_MEMCPY __builtin_memcpy
#else
#define BOOST_ATOMIC_DETAIL_MEMCPY std::memcpy
#endif

#if defined(BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCMP)
#define BOOST_ATOMIC_DETAIL_MEMCMP __builtin_memcmp
#else
#define BOOST_ATOMIC_DETAIL_MEMCMP std::memcmp
#endif

#if defined(BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMSET)
#define BOOST_ATOMIC_DETAIL_MEMSET __builtin_memset
#else
#define BOOST_ATOMIC_DETAIL_MEMSET std::memset
#endif

#if !defined(BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCPY) || !defined(BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCMP) || !defined(BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMSET)
#include <cstring>
#endif

#endif // BOOST_ATOMIC_DETAIL_STRING_OPS_HPP_INCLUDED_

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
passenger-6.0.26 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.25 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.24 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.23 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.20 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.19 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.18 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.17 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.16 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.15 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.14 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.13 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.12 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.11 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.10 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.9 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.8 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.7 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.6 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp
passenger-6.0.5 src/cxx_supportlib/vendor-modified/boost/atomic/detail/string_ops.hpp