mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-11 10:46:27 +00:00
u128: Make Bit() a const-qualified member function
This function doesn't modify the struct members, so it can be made const.
This commit is contained in:
@@ -34,7 +34,7 @@ struct u128 {
|
|||||||
u64 upper = 0;
|
u64 upper = 0;
|
||||||
|
|
||||||
template<size_t bit_position>
|
template<size_t bit_position>
|
||||||
bool Bit() {
|
bool Bit() const {
|
||||||
static_assert(bit_position < 128);
|
static_assert(bit_position < 128);
|
||||||
if constexpr (bit_position < 64) {
|
if constexpr (bit_position < 64) {
|
||||||
return Common::Bit<bit_position>(lower);
|
return Common::Bit<bit_position>(lower);
|
||||||
|
|||||||
Reference in New Issue
Block a user