mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:47:45 +00:00
Revert "Userland: static vs non-static constexpr variables"
This reverts commit 800ea8ea96
.
Booting the system no longer worked after these changes.
This commit is contained in:
parent
68f76b9e37
commit
d60ebbbba6
38 changed files with 184 additions and 192 deletions
|
@ -28,9 +28,9 @@ protected:
|
|||
|
||||
template<typename T>
|
||||
struct TypeTrivia {
|
||||
static constexpr size_t bits = sizeof(T) * 8;
|
||||
static constexpr T sign_bit = 1 << (bits - 1);
|
||||
static constexpr T mask = MakeUnsigned<T>(-1);
|
||||
static const size_t bits = sizeof(T) * 8;
|
||||
static const T sign_bit = 1 << (bits - 1);
|
||||
static const T mask = MakeUnsigned<T>(-1);
|
||||
};
|
||||
|
||||
template<typename T, typename U>
|
||||
|
@ -159,9 +159,9 @@ enum InstructionFormat {
|
|||
OP_NEAR_imm,
|
||||
};
|
||||
|
||||
struct InstructionDescriptor {
|
||||
static constexpr unsigned CurrentAddressSize = 0xB33FBABE;
|
||||
static const unsigned CurrentAddressSize = 0xB33FBABE;
|
||||
|
||||
struct InstructionDescriptor {
|
||||
InstructionHandler handler { nullptr };
|
||||
bool opcode_has_register_index { false };
|
||||
const char* mnemonic { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue