mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-21 20:29:06 +00:00
Fix packing_size
.
This commit is contained in:
parent
2d70b44303
commit
f9d98ed219
@ -728,7 +728,7 @@ template<bool is_32bit> class Instruction {
|
||||
/// this allows a denser packing of instructions into containers.
|
||||
size_t packing_size() const {
|
||||
return
|
||||
offsetof(Instruction<is_32bit>, extensions) +
|
||||
offsetof(Instruction<is_32bit>, extensions_) +
|
||||
(has_displacement() + has_operand()) * sizeof(ImmediateT);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user