30 ALU &operator=(
ALU &&) noexcept = default;
ALU(ALU &&) noexcept=default
ALU & operator=(const ALU &)=default
RegisterValue compare(RegisterValue a, RegisterValue b) const noexcept
Compares two values and returns a flags word.
Result< RegisterValue > shiftLeft(RegisterValue a, RegisterValue b) const noexcept
Left shift: a << b.
Result< RegisterValue > bitwiseXor(RegisterValue a, RegisterValue b) const noexcept
Bitwise XOR: a ^ b.
Result< RegisterValue > div(RegisterValue a, RegisterValue b) const noexcept
Division: a / b.
Result< RegisterValue > bitwiseOr(RegisterValue a, RegisterValue b) const noexcept
Bitwise OR: a | b.
static constexpr RegisterValue ZERO_FLAG
a == b
Result< RegisterValue > shiftRight(RegisterValue a, RegisterValue b) const noexcept
Right shift: a >> b (arithmetic shift).
Result< RegisterValue > bitwiseAnd(RegisterValue a, RegisterValue b) const noexcept
Bitwise AND: a & b.
Result< RegisterValue > mul(RegisterValue a, RegisterValue b) const noexcept
Multiplication: a * b.
Result< RegisterValue > add(RegisterValue a, RegisterValue b) const noexcept
Addition: a + b.
Result< RegisterValue > sub(RegisterValue a, RegisterValue b) const noexcept
Subtraction: a - b.
static constexpr RegisterValue SIGN_FLAG
a < b
A result type that holds either a success value of type T or an ErrorCode.
Error codes and Result<T> type for fallible operations.
std::int32_t RegisterValue
Value stored in a CPU register.
Common type aliases, sentinel constants, and forward declarations used throughout the Contur 2 kernel...