summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-05-28 21:00:05 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2023-05-28 21:05:55 +0200
commit9950a388d23b69cd86bed5306a0c6b99d7c751cb (patch)
treeec088ab0afd351019c2748dda74f6cc731330c40 /src/common
parentMerge pull request #10475 from ameerj/microprofile-workaround (diff)
downloadyuzu-9950a388d23b69cd86bed5306a0c6b99d7c751cb.tar
yuzu-9950a388d23b69cd86bed5306a0c6b99d7c751cb.tar.gz
yuzu-9950a388d23b69cd86bed5306a0c6b99d7c751cb.tar.bz2
yuzu-9950a388d23b69cd86bed5306a0c6b99d7c751cb.tar.lz
yuzu-9950a388d23b69cd86bed5306a0c6b99d7c751cb.tar.xz
yuzu-9950a388d23b69cd86bed5306a0c6b99d7c751cb.tar.zst
yuzu-9950a388d23b69cd86bed5306a0c6b99d7c751cb.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();
+}