Expand description
Implementations for [binary field operations][acir::brillig::Opcode::BinaryFieldOp] and [binary integer operations][acir::brillig::Opcode::BinaryIntOp].
Enumsยง
Functionsยง
- evaluate_
binary_ ๐field_ op - Evaluate a binary operation on two FieldElement memory values.
- evaluate_
binary_ ๐int_ op - Evaluate a binary operation on two unsigned big integers with a given bit size.
- evaluate_
binary_ ๐int_ op_ arith - Evaluates arithmetic or bitwise operations on unsigned integer types, using wrapping arithmetic for [add][BinaryIntOp::Add], [sub][BinaryIntOp::Sub], and [mul][BinaryIntOp::Mul].
- evaluate_
binary_ ๐int_ op_ cmp - Evaluates comparison operations (
Equals,LessThan,LessThanEquals) between two values of an ordered type (e.g., fields are unordered). - evaluate_
binary_ ๐int_ op_ shifts - Evaluates shift operations (
Shl,Shr) for unsigned integers. Ensures that shifting beyond the type width returns zero. - evaluate_
binary_ ๐int_ op_ u1 - Evaluates binary operations on 1-bit unsigned integers (booleans).