| // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project | |
| // SPDX-License-Identifier: GPL-2.0-or-later | |
| namespace Common { | |
| template <typename To, typename From> | |
| constexpr inline To BitCast(const From& from) { | |
| return std::bit_cast<To>(from); | |
| return __builtin_bit_cast(To, from); | |
| } | |
| } // namespace Common | |