summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-05-28 22:33:42 +0200
committerGitHub <noreply@github.com>2023-05-28 22:33:42 +0200
commit53fd08b360a393af2e6bfdddc5c549492fcb40bf (patch)
tree6b1ef1f95a8573efe8e239828d10aa65355f780f /src
parentMerge pull request #10475 from ameerj/microprofile-workaround (diff)
parentCMakeLists: Rollback minimum to fmt 9 (diff)
downloadyuzu-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.h5
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();
+}