#[repr(u8)]pub enum Opcode {
Show 32 variants
TERMINATE = 0,
_RESERVED_1 = 1,
_RESERVED_2 = 2,
_RESERVED_3 = 3,
ADD_INC = 4,
SUB_DEC_NEG = 5,
MOD_ADD_INC = 6,
MOD_SUB_DEC_NEG = 7,
ANDTST0CLR0 = 8,
ORCOPYSET0 = 9,
XORFLP0INVCMP = 10,
_RESERVED_b = 11,
SHR0 = 12,
SHR1 = 13,
SHL0 = 14,
SHL1 = 15,
MUL_LOW = 16,
MOD_MUL = 17,
MOD_MUL_N = 18,
MOD_EXP = 19,
DIVISION = 20,
MOD_INV = 21,
MOD_DIV = 22,
MUL_HIGH = 23,
MOD_MLAC = 24,
MOD_MLACNR = 25,
_RESERVED_1a = 26,
REDUCTION = 27,
_RESERVED_1c = 28,
_RESERVED_1d = 29,
_RESERVED_1e = 30,
_RESERVED_1f = 31,
}
Variants§
TERMINATE = 0
Terminate operation
_RESERVED_1 = 1
_RESERVED_2 = 2
_RESERVED_3 = 3
ADD_INC = 4
Add or Increment
SUB_DEC_NEG = 5
Subtract, Decrement, or Negate
MOD_ADD_INC = 6
Modular Add or Modular Increment
MOD_SUB_DEC_NEG = 7
Modular Subtract, Modular Decrement, or Modular Negate
ANDTST0CLR0 = 8
Perform AND, test, or clear
ORCOPYSET0 = 9
Perform OR, copy, or set bits
XORFLP0INVCMP = 10
Perform XOR, flip bits, invert, or compare
_RESERVED_b = 11
SHR0 = 12
Shift right 0 operation
SHR1 = 13
Shift right 1 operation
SHL0 = 14
Shift left 0 operation
SHL1 = 15
Shift left 1 operation
MUL_LOW = 16
Multiply low operation
MOD_MUL = 17
Modular multiply operation
MOD_MUL_N = 18
Modular multiply N operation
MOD_EXP = 19
Modular exponentiation operation
DIVISION = 20
Division operation
MOD_INV = 21
Modular inversion operation
MOD_DIV = 22
Modular division operation
MUL_HIGH = 23
Multiply high operation
MOD_MLAC = 24
Modular multiplication acceleration
MOD_MLACNR = 25
Modular multiplication acceleration where final reduction is omitted
_RESERVED_1a = 26
REDUCTION = 27
Reduction operation
_RESERVED_1c = 28
_RESERVED_1d = 29
_RESERVED_1e = 30
_RESERVED_1f = 31
Implementations§
Trait Implementations§
Source§impl Ord for Opcode
impl Ord for Opcode
Source§impl PartialOrd for Opcode
impl PartialOrd for Opcode
impl Copy for Opcode
impl Eq for Opcode
impl StructuralPartialEq for Opcode
Auto Trait Implementations§
impl Freeze for Opcode
impl RefUnwindSafe for Opcode
impl Send for Opcode
impl Sync for Opcode
impl Unpin for Opcode
impl UnwindSafe for Opcode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)