xref: /aosp_15_r20/external/pytorch/aten/src/ATen/mkl/Limits.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 #pragma once
2 
3 #include <mkl_types.h>
4 
5 namespace at::native {
6 
7   // Since size of MKL_LONG varies on different platforms (linux 64 bit, windows
8   // 32 bit), we need to programmatically calculate the max.
9   constexpr int64_t MKL_LONG_MAX = ((1LL << (sizeof(MKL_LONG) * 8 - 2)) - 1) * 2 + 1;
10 
11 } // namespace at::native
12