diff options
Diffstat (limited to 'src/common/bit_cast.h')
| -rw-r--r-- | src/common/bit_cast.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/common/bit_cast.h b/src/common/bit_cast.h deleted file mode 100644 index c6110c5426..0000000000 --- a/src/common/bit_cast.h +++ /dev/null @@ -1,23 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project -// SPDX-License-Identifier: GPL-2.0-or-later - -#pragma once - -#include <version> - -#ifdef __cpp_lib_bit_cast -#include <bit> -#endif - -namespace Common { - -template <typename To, typename From> -constexpr inline To BitCast(const From& from) { -#ifdef __cpp_lib_bit_cast - return std::bit_cast<To>(from); -#else - return __builtin_bit_cast(To, from); -#endif -} - -} // namespace Common |
