diff --git a/circuit/misc.circom b/circuit/misc.circom index c120261..286f924 100644 --- a/circuit/misc.circom +++ b/circuit/misc.circom @@ -1,16 +1,5 @@ pragma circom 2.0.0; -//------------------------------------------------------------------------------ -// compute (compile time) the log2 of a number - -function FloorLog2(n) { - return (n==0) ? -1 : (1 + FloorLog2(n>>1)); -} - -function CeilLog2(n) { - return (n==0) ? 0 : (1 + FloorLog2(n-1)); -} - //------------------------------------------------------------------------------ // decompose an n-bit number into bits