circuit: remove unused functions

This commit is contained in:
Mark Spanbroek 2024-02-08 13:39:21 +01:00
parent 5e733121d5
commit 2b88a00fb0

View File

@ -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