literals.hpp Source File

literals.hpp Source File#

Composable Kernel: literals.hpp Source File
tile/core/utility/literals.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) 2024, Advanced Micro Devices, Inc. All rights reserved.
3
4#pragma once
5
6#include <cstdlib>
7
8namespace ck_tile {
9namespace literals {
10// [P0330] Literal Suffix for (signed) size_t (C++23)
11// ref: https://wg21.link/p0330r8
12inline constexpr std::size_t operator""_uz(unsigned long long size)
13{
14 return static_cast<std::size_t>(size);
15}
16
17inline constexpr std::size_t operator""_zu(unsigned long long size)
18{
19 return static_cast<std::size_t>(size);
20}
21} // namespace literals
22} // namespace ck_tile
Definition tile/core/utility/literals.hpp:9
Definition tile/core/algorithm/cluster_descriptor.hpp:13