mirror of
https://codeberg.org/wownero/RandomX.git
synced 2026-11-19 12:54:07 +01:00
Use strongly typed enums (#55)
This commit is contained in:
@@ -50,7 +50,7 @@ namespace randomx {
|
||||
uint64_t imm;
|
||||
int64_t simm;
|
||||
};
|
||||
uint16_t type;
|
||||
InstructionType type;
|
||||
union {
|
||||
int16_t target;
|
||||
uint16_t shift;
|
||||
@@ -58,6 +58,8 @@ namespace randomx {
|
||||
uint32_t memMask;
|
||||
};
|
||||
|
||||
static_assert(sizeof(InstructionByteCode) == 32, "Invalid packing of struct InstructionByteCode");
|
||||
|
||||
template<class Allocator, bool softAes>
|
||||
class InterpretedVm : public VmBase<Allocator, softAes> {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user