From 2b88a00fb0df67acb8bc506bc0e408838496a48b Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Thu, 8 Feb 2024 13:39:21 +0100 Subject: [PATCH] circuit: remove unused functions --- circuit/misc.circom | 11 ----------- 1 file changed, 11 deletions(-) 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