mirror of
https://github.com/logos-storage/logos-storage-proofs-circuits.git
synced 2026-01-05 15:03:05 +00:00
Revert "circuit: remove unused functions"
This reverts commit 14c7c7a6d9ee24c6aded17ebfadbc7609465259c. Co-Authored-By: Balazs Komuves <bkomuves@gmail.com>
This commit is contained in:
parent
46c17fa2ce
commit
ded25f54c2
@ -1,5 +1,15 @@
|
||||
pragma circom 2.0.0;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
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 (least significant bit first)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user