batmat 0.0.17
Batched linear algebra routines
Loading...
Searching...
No Matches
kib.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <batmat/config.hpp>
4
5namespace batmat {
6
7constexpr index_t operator""_KiB(unsigned long long i) { return static_cast<index_t>(i) * 1024; }
8
9constexpr index_t operator""_MiB(unsigned long long i) {
10 return static_cast<index_t>(i) * 1024_KiB;
11}
12
13} // namespace batmat
std::ptrdiff_t index_t