2// -----------------------------------------------------------------------------------------------------
3// Copyright (c) 2006-2023, Knut Reinert & Freie Universität Berlin
4// Copyright (c) 2016-2023, Knut Reinert & MPI für molekulare Genetik
5// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
6// shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md
7// -----------------------------------------------------------------------------------------------------
10 * \brief The [<new> header](https://en.cppreference.com/w/cpp/header/new) from C++17's standard library.
11 * \author Rene Rahn <rene.rahn AT fu-berlin.de>
14// File might be included from multiple libraries.
15#ifndef SEQAN_STD_NEW_SHIM
16#define SEQAN_STD_NEW_SHIM
20#ifndef __cpp_lib_hardware_interference_size
22/*!\defgroup std_new new
24 * \brief The [<new> header](https://en.cppreference.com/w/cpp/header/new) from C++17's standard library.
30/*!\brief Minimum offset between two objects to avoid false sharing.
32 * \sa https://en.cppreference.com/w/cpp/thread/hardware_destructive_interference_size
34inline constexpr std::size_t hardware_destructive_interference_size = 64;
36/*!\brief Maximum size of contiguous memory to promote true sharing.
38 * \sa https://en.cppreference.com/w/cpp/thread/hardware_destructive_interference_size
40inline constexpr std::size_t hardware_constructive_interference_size = 64;
44#endif // __cpp_lib_hardware_interference_size
46#endif // SEQAN_STD_NEW_SHIM