Skip to content

Commit

Permalink
[KGA-89] dev: remove useless computation in uint256_fast_exp" (#1603)
Browse files Browse the repository at this point in the history
removes a useless line that compute `uint256_fast_exp` one too many
times.

<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg"
height="34" align="absmiddle"
alt="Reviewable"/>](https://reviewable.io/reviews/kkrt-labs/kakarot/1603)
<!-- Reviewable:end -->
  • Loading branch information
enitrat authored Nov 12, 2024
1 parent 474951c commit 8eacec6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cairo_zero/utils/uint256.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ func uint256_fast_exp{range_check_ptr}(value: Uint256, exponent: Uint256) -> Uin
return res;
}

let pow = uint256_fast_exp(value, half_exponent);
let (res, _) = uint256_mul(pow, pow);
return res;
}
Expand Down

0 comments on commit 8eacec6

Please sign in to comment.