summaryrefslogtreecommitdiffstats
path: root/mpi
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
parentbackup (diff)
downloadgnupg2-d71f8bce7e73b41c1d19d2dae6396ea8eace9c07.tar.xz
gnupg2-d71f8bce7e73b41c1d19d2dae6396ea8eace9c07.zip
Trust stuff works partly.
Diffstat (limited to 'mpi')
-rw-r--r--mpi/longlong.h2
-rw-r--r--mpi/mpi-bit.c22
2 files changed, 24 insertions, 0 deletions
diff --git a/mpi/longlong.h b/mpi/longlong.h
index c341c3d19..c92435570 100644
--- a/mpi/longlong.h
+++ b/mpi/longlong.h
@@ -1,4 +1,5 @@
/* longlong.h -- definitions for mixed size 32/64 bit arithmetic.
+ Note: I added some stuff for use with g10
Copyright (C) 1991, 1992, 1993, 1994, 1996 Free Software Foundation, Inc.
@@ -1440,6 +1441,7 @@ extern
const
#endif
unsigned char __clz_tab[];
+#define MPI_INTERNAL_NEED_CLZ_TAB 1
#define count_leading_zeros(count, x) \
do { \
UWtype __xr = (x); \
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.
*/