aboutsummaryrefslogtreecommitdiffstats
path: root/src/mutils.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-06-12 08:00:58 +0200
committerTristan Gingold <tgingold@free.fr>2019-06-12 08:04:46 +0200
commit4b4c2f03f79dbd7a9b9138371440117a514644ce (patch)
treecb37fd13badb62d924a8604d3eb51bf2af8c1fd1 /src/mutils.ads
parent5525cc11604efbcb33c513f6092c8e2e029dfbe3 (diff)
downloadghdl-4b4c2f03f79dbd7a9b9138371440117a514644ce.tar.gz
ghdl-4b4c2f03f79dbd7a9b9138371440117a514644ce.tar.bz2
ghdl-4b4c2f03f79dbd7a9b9138371440117a514644ce.zip
Add mutils.
Diffstat (limited to 'src/mutils.ads')
-rw-r--r--src/mutils.ads7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mutils.ads b/src/mutils.ads
new file mode 100644
index 000000000..4275fe6c0
--- /dev/null
+++ b/src/mutils.ads
@@ -0,0 +1,7 @@
+with Types; use Types;
+
+package Mutils is
+ -- Return the ceiling log2 of V.
+ -- Returns 0 for 0.
+ function Clog2 (V : Uns64) return Integer;
+end Mutils;