[Cryptech-Commits] [core/lib] branch master updated: Fixed clog2() replacement.

git at cryptech.is git at cryptech.is
Wed Oct 23 16:19:32 UTC 2019


This is an automated email from the git hooks/post-receive script.

meisterpaul1 at yandex.ru pushed a commit to branch master
in repository core/lib.

The following commit(s) were added to refs/heads/master by this push:
     new 2578241  Fixed clog2() replacement.
2578241 is described below

commit 2578241c6795bacfd6819d0065edb855681bd669
Author: Pavel V. Shatov (Meister) <meisterpaul1 at yandex.ru>
AuthorDate: Wed Oct 23 19:17:57 2019 +0300

    Fixed clog2() replacement.
---
 util/cryptech_clog2.vh | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/util/cryptech_clog2.vh b/util/cryptech_clog2.vh
index 06120c4..d075112 100644
--- a/util/cryptech_clog2.vh
+++ b/util/cryptech_clog2.vh
@@ -30,15 +30,16 @@
 //
 //======================================================================
 
-function    integer cryptech_clog2;
-    input   integer value;
-            integer result;
+function integer cryptech_clog2;
+   input integer value_in;
+         integer value;
+         integer result;
     //
     begin
-        value = value - 1;
+        value = value_in - 1;
         for (result = 0; value > 0; result = result + 1)
             value = value >> 1;
-        clog2 = result;
+        cryptech_clog2 = result;
     end
     //
 endfunction

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list