summaryrefslogtreecommitdiffstats
path: root/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-01-24 17:32:27 +0100
committerWerner Koch <wk@gnupg.org>1998-01-24 17:32:27 +0100
commitd71f8bce7e73b41c1d19d2dae6396ea8eace9c07 (patch)
tree89854e6434a270ad627f4f4011385a7739f8f3df /mpi/mpi-bit.c
parentbackup (diff)
downloadgnupg2-d71f8bce7e73b41c1d19d2dae6396ea8eace9c07.tar.xz
gnupg2-d71f8bce7e73b41c1d19d2dae6396ea8eace9c07.zip
Trust stuff works partly.
Diffstat (limited to 'mpi/mpi-bit.c')
-rw-r--r--mpi/mpi-bit.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/mpi/mpi-bit.c b/mpi/mpi-bit.c
index 864dc0236..d1f440a9a 100644
--- a/mpi/mpi-bit.c
+++ b/mpi/mpi-bit.c
@@ -26,6 +26,28 @@
#include "longlong.h"
+#ifdef MPI_INTERNAL_NEED_CLZ_TAB
+unsigned char
+__clz_tab[] =
+{
+ 0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
+ 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
+ 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
+ 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
+ 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
+ 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
+ 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
+ 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
+};
+#endif
+
+
+
+
+
+
+
+
/****************
* Return the number of bits in A.
*/