mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-12 17:26:00 +00:00
21 lines
522 B
C++
21 lines
522 B
C++
// SPDX-License-Identifier: MIT
|
|
// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved.
|
|
|
|
#pragma once
|
|
|
|
namespace ck {
|
|
namespace literals {
|
|
// [P0330] Literal Suffix for (signed) size_t (C++23)
|
|
// ref: https://wg21.link/p0330r8
|
|
inline constexpr std::size_t operator""_uz(unsigned long long size)
|
|
{
|
|
return static_cast<std::size_t>(size);
|
|
}
|
|
|
|
inline constexpr std::size_t operator""_zu(unsigned long long size)
|
|
{
|
|
return static_cast<std::size_t>(size);
|
|
}
|
|
} // namespace literals
|
|
} // namespace ck
|