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