public static Opcode WithSimdPrefix(this Opcode opcode, SimdPrefix simdPrefix) => (opcode & ~Opcode.SimdPrefix_Mask) | (Opcode)((uint)simdPrefix << (int)Opcode.SimdPrefix_Shift);
private void SetSimdPrefix(SimdPrefix prefix) { Contract.Requires(opcode.GetSimdPrefix() == SimdPrefix.None); opcode = opcode.WithSimdPrefix(prefix); AdvanceTo(State.PostSimdPrefix); }
public static Opcode MakeLookupKey(SimdPrefix simdPrefix, OpcodeMap map, byte mainByte) { Contract.Requires(simdPrefix == SimdPrefix.None || map != OpcodeMap.Default); return default(Opcode) .WithSimdPrefix(simdPrefix) .WithMap(map) .WithMainByte(mainByte) & Opcode.LookupKey_Mask; }