diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-05-28 22:33:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-28 22:33:42 +0200 |
commit | 53fd08b360a393af2e6bfdddc5c549492fcb40bf (patch) | |
tree | 6b1ef1f95a8573efe8e239828d10aa65355f780f /src | |
parent | Merge pull request #10475 from ameerj/microprofile-workaround (diff) | |
parent | CMakeLists: Rollback minimum to fmt 9 (diff) | |
download | yuzu-53fd08b360a393af2e6bfdddc5c549492fcb40bf.tar yuzu-53fd08b360a393af2e6bfdddc5c549492fcb40bf.tar.gz yuzu-53fd08b360a393af2e6bfdddc5c549492fcb40bf.tar.bz2 yuzu-53fd08b360a393af2e6bfdddc5c549492fcb40bf.tar.lz yuzu-53fd08b360a393af2e6bfdddc5c549492fcb40bf.tar.xz yuzu-53fd08b360a393af2e6bfdddc5c549492fcb40bf.tar.zst yuzu-53fd08b360a393af2e6bfdddc5c549492fcb40bf.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/bit_field.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/bit_field.h b/src/common/bit_field.h index e4e58ea45..0168ff9cb 100644 --- a/src/common/bit_field.h +++ b/src/common/bit_field.h @@ -188,3 +188,8 @@ private: template <std::size_t Position, std::size_t Bits, typename T> using BitFieldBE = BitField<Position, Bits, T, BETag>; + +template <std::size_t Position, std::size_t Bits, typename T, typename EndianTag = LETag> +inline auto format_as(BitField<Position, Bits, T, EndianTag> bitfield) { + return bitfield.Value(); +} |