Skip to content

Commit

Permalink
removed dec_pow fuzztests
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentash committed Dec 8, 2023
1 parent 9069389 commit f1249d1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 47 deletions.
18 changes: 0 additions & 18 deletions src/utils/math.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,3 @@ fn pow(x: u256, n: u8) -> u256 {
pow(x * x, n / 2)
}
}

fn pow256(x: u256, mut n: u256) -> u256 {
let mut result = 1;
let mut base = x;

loop {
if n & 1 == 1 {
result = result * base;
}

n = n / 2;
if n == 0 {
break result;
}

base = base * base;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use core::array::ArrayTrait;
use shisui::components::shisui_math::ShisuiMathComponent::{InternalImpl, EXPONENT_CAP};
use core::integer::BoundedU256;

Expand Down
8 changes: 0 additions & 8 deletions tests/unit/fuzz/components/shisui_math/dec_pow/dec_pow.tree

This file was deleted.

20 changes: 0 additions & 20 deletions tests/unit/fuzz/components/shisui_math/dec_pow/test_dec_pow.cairo

This file was deleted.

0 comments on commit f1249d1

Please sign in to comment.