1//===-- Cacheline Size Constant -------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_LIBC_SRC_MEMORY_CONSTANTS_H
10#define LLVM_LIBC_SRC_MEMORY_CONSTANTS_H
11
12// LLVM_LIBC_CACHELINE_SIZE
13//
14// Explicitly defines the size of the L1 cache for purposes of alignment.
15//
16// NOTE: this macro should be replaced with the following C++17 features, when
17// those are generally available:
18//
19//   * `std::hardware_constructive_interference_size`
20//   * `std::hardware_destructive_interference_size`
21//
22// See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0154r1.html
23// for more information.
24
25%%include_file(${machine_cacheline_size})
26
27#endif // LLVM_LIBC_SRC_MEMORY_CONSTANTS_H
28