mirror of
https://github.com/logos-storage/logos-storage-proofs-circuits.git
synced 2026-01-03 14:03:06 +00:00
circuit: remove unused functions
This commit is contained in:
parent
5e733121d5
commit
2b88a00fb0
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user