diff options
author | Tony Wasserka <NeoBrainX@gmail.com> | 2014-05-29 22:54:34 +0200 |
---|---|---|
committer | Tony Wasserka <NeoBrainX@gmail.com> | 2014-07-16 09:05:29 +0200 |
commit | 47a001722d7ada681e333e991373e19d159c380b (patch) | |
tree | cb8871d30e4cb67e4224ff9e59d34acc38774378 | |
parent | Merge pull request #29 from bunnei/address-arbiters (diff) | |
download | yuzu-47a001722d7ada681e333e991373e19d159c380b.tar yuzu-47a001722d7ada681e333e991373e19d159c380b.tar.gz yuzu-47a001722d7ada681e333e991373e19d159c380b.tar.bz2 yuzu-47a001722d7ada681e333e991373e19d159c380b.tar.lz yuzu-47a001722d7ada681e333e991373e19d159c380b.tar.xz yuzu-47a001722d7ada681e333e991373e19d159c380b.tar.zst yuzu-47a001722d7ada681e333e991373e19d159c380b.zip |
-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 dfd00d198..a39bb9886 100644 --- a/src/common/bit_field.h +++ b/src/common/bit_field.h @@ -132,6 +132,11 @@ public: __forceinline operator T() const { + return Value(); + } + + __forceinline T Value() const + { if (std::numeric_limits<T>::is_signed) { std::size_t shift = 8 * sizeof(T)-bits; |