# Uses of Class
serp.bytecode.MathInstruction

Packages that use MathInstruction
Package
Description
serp.bytecode
Bytecode Manipuation
serp.bytecode.visitor
Bytecode Visitor

## Uses of MathInstruction in serp.bytecode

Methods in serp.bytecode that return MathInstruction
Modifier and Type
Method
Description
`MathInstruction`
Code.`dadd()`
Add the top two stack double values; the `dadd` opcode.
`MathInstruction`
Code.`ddiv()`
Divide the top two stack double values; the `ddiv` opcode.
`MathInstruction`
Code.`dmul()`
Multiply the top two stack double values; the `dmul` opcode.
`MathInstruction`
Code.`dneg()`
Negate the top stack double value; the `dneg` opcode.
`MathInstruction`
Code.`drem()`
Take the remainder of the top two double stack values; the `drem` opcode.
`MathInstruction`
Code.`dsub()`
Subtract the top two stack double values; the `dsub` opcode.
`MathInstruction`
Code.`fadd()`
Add the top two stack float values; the `fadd` opcode.
`MathInstruction`
Code.`fdiv()`
Divide the top two stack float values; the `fdiv` opcode.
`MathInstruction`
Code.`fmul()`
Multiply the top two stack float values; the `fmul` opcode.
`MathInstruction`
Code.`fneg()`
Negate the top stack float value; the `fneg` opcode.
`MathInstruction`
Code.`frem()`
Take the remainder of the top two float stack values; the `frem` opcode.
`MathInstruction`
Code.`fsub()`
Subtract the top two stack float values; the `fsub` opcode.
`MathInstruction`
Code.`iadd()`
Add the top two stack int values; the `iadd` opcode.
`MathInstruction`
Code.`iand()`
Take the mathematical and of the top two stack int values; the `iand` opcode.
`MathInstruction`
Code.`idiv()`
Divide the top two stack int values; the `idiv` opcode.
`MathInstruction`
Code.`imul()`
Multiply the top two stack int values; the `imul` opcode.
`MathInstruction`
Code.`ineg()`
Negate the top stack int value; the `ineg` opcode.
`MathInstruction`
Code.`ior()`
Take the mathematical or of the top two stack int values; the `ior` opcode.
`MathInstruction`
Code.`irem()`
Take the remainder of the top two int stack values; the `irem` opcode.
`MathInstruction`
Code.`ishl()`
Shift the top stack int values; the `ishl` opcode.
`MathInstruction`
Code.`ishr()`
Shift the top stack int values; the `ishr` opcode.
`MathInstruction`
Code.`isub()`
Subtract the top two stack int values; the `isub` opcode.
`MathInstruction`
Code.`iushr()`
Shift the top stack int values; the `iushr` opcode.
`MathInstruction`
Code.`ixor()`
Take the mathematical xor of the top two stack int values; the `ixor` opcode.
`MathInstruction`
Code.`ladd()`
Add the top two stack long values; the `ladd` opcode.
`MathInstruction`
Code.`land()`
Take the mathematical and of the top two stack long values; the `land` opcode.
`MathInstruction`
Code.`ldiv()`
Divide the top two stack long values; the `ldiv` opcode.
`MathInstruction`
Code.`lmul()`
Multiply the top two stack long values; the `lmul` opcode.
`MathInstruction`
Code.`lneg()`
Negate the top stack long value; the `lneg` opcode.
`MathInstruction`
Code.`lor()`
Take the mathematical or of the top two stack long values; the `lor` opcode.
`MathInstruction`
Code.`lrem()`
Take the remainder of the top two long stack values; the `lrem` opcode.
`MathInstruction`
Code.`lshl()`
Shift the top stack long values; the `lshl` opcode.
`MathInstruction`
Code.`lshr()`
Shift the top stack long values; the `lshr` opcode.
`MathInstruction`
Code.`lsub()`
Subtract the top two stack long values; the `lsub` opcode.
`MathInstruction`
Code.`lushr()`
Shift the top stack long values; the `lushr` opcode.
`MathInstruction`
Code.`lxor()`
Take the mathematical xor of the top two stack long values; the `lxor` opcode.
`MathInstruction`
Code.`math()`
Perform some math operation on the stack items.
`MathInstruction`
MathInstruction.`setOperation(int operation)`
Set the math operation to be performed.
`MathInstruction`
Code.`xadd()`
Add the top two stack values.
`MathInstruction`
Code.`xand()`
Take the mathematical and of the top two stack values.
`MathInstruction`
Code.`xdiv()`
Divide the top two stack values.
`MathInstruction`
Code.`xmul()`
Multiply the top two stack values.
`MathInstruction`
Code.`xneg()`
Negate the top stack value.
`MathInstruction`
Code.`xor()`
Take the mathematical or of the top two stack values.
`MathInstruction`
Code.`xrem()`
Take the remainder of the top two stack values.
`MathInstruction`
Code.`xshl()`
Shift the top stack values.
`MathInstruction`
Code.`xshr()`
Shift the top stack values.
`MathInstruction`
Code.`xsub()`
Subtract the top two stack values.
`MathInstruction`
Code.`xushr()`
Shift the top stack values.
`MathInstruction`
Code.`xxor()`
Take the mathematical xor of the top two stack values.

## Uses of MathInstruction in serp.bytecode.visitor

Methods in serp.bytecode.visitor with parameters of type MathInstruction
Modifier and Type
Method
Description
`void`
BCVisitor.`enterMathInstruction(MathInstruction obj)`
`void`
BCVisitor.`exitMathInstruction(MathInstruction obj)`