1#pragma once
2
3#include <cstddef>
4
5namespace c10 {
6
7#ifdef C10_MOBILE
8// Use 16-byte alignment on mobile
9// - ARM NEON AArch32 and AArch64
10// - x86[-64] < AVX
11constexpr size_t gAlignment = 16;
12#else
13// Use 64-byte alignment should be enough for computation up to AVX512.
14constexpr size_t gAlignment = 64;
15#endif
16
17} // namespace c10
18