mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-02-05 19:33:35 +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:
parent
b2e4c16ef8
commit
3ca18d8a6d
@ -34,7 +34,7 @@ struct u128 {
|
||||
u64 upper = 0;
|
||||
|
||||
template<size_t bit_position>
|
||||
bool Bit() {
|
||||
bool Bit() const {
|
||||
static_assert(bit_position < 128);
|
||||
if constexpr (bit_position < 64) {
|
||||
return Common::Bit<bit_position>(lower);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user