Skip to content

Commit

Permalink
fix: fix unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Eikix committed Nov 16, 2023
1 parent 2847121 commit 020573c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/kakarot/instructions/stop_and_math_operations.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ from starkware.cairo.common.uint256 import (
uint256_add,
uint256_and,
uint256_eq,
uint256_le,
uint256_lt,
uint256_mul_div_mod,
uint256_mul,
Expand Down Expand Up @@ -241,11 +240,10 @@ namespace StopAndMathOperations {
EXP:
let range_check_ptr = [ap - 2];
let popped = cast([ap - 1], Uint256*);
tempvar bitwise_ptr = cast([fp - 4], BitwiseBuiltin*);

let result = uint256_fast_exp(popped[0], popped[1]);

tempvar bitwise_ptr = bitwise_ptr;
tempvar bitwise_ptr = cast([fp - 4], BitwiseBuiltin*);
tempvar range_check_ptr = range_check_ptr;
tempvar result = Uint256(result.low, result.high);
jmp end;
Expand Down
7 changes: 1 addition & 6 deletions src/utils/uint256.cairo
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
from starkware.cairo.common.uint256 import (
Uint256,
uint256_eq,
uint256_le,
uint256_sub,
uint256_mul,
uint256_unsigned_div_rem,
uint256_and,
)
from starkware.cairo.common.bool import FALSE
from starkware.cairo.common.cairo_builtins import BitwiseBuiltin

// @notice Internal exponentiation of two 256-bit integers.
// @dev The result is modulo 2^256.
Expand All @@ -34,9 +31,7 @@ func uint256_exp{range_check_ptr}(value: Uint256, exponent: Uint256) -> Uint256
// @param value - The base.
// @param exponent - The exponent.
// @return The result of the exponentiation.
func uint256_fast_exp{range_check_ptr, bitwise_ptr: BitwiseBuiltin*}(
value: Uint256, exponent: Uint256
) -> Uint256 {
func uint256_fast_exp{range_check_ptr}(value: Uint256, exponent: Uint256) -> Uint256 {
alloc_locals;

let one = Uint256(1, 0);
Expand Down

0 comments on commit 020573c

Please sign in to comment.