summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mpi/ChangeLog5
-rw-r--r--mpi/longlong.h4
-rw-r--r--mpi/mpi-bit.c2
3 files changed, 8 insertions, 3 deletions
diff --git a/mpi/ChangeLog b/mpi/ChangeLog
index b2701607..4d806f76 100644
--- a/mpi/ChangeLog
+++ b/mpi/ChangeLog
@@ -1,3 +1,8 @@
+2003-07-30 Moritz Schulte <moritz@g10code.com>
+
+ * longlong.h (__clz_tab): Renamed to _gcry_clz_tab.
+ * mpi-bit.c (__clz_tab): Likewise.
+
2003-07-27 Werner Koch <wk@gnupg.org>
* mpicoder.c (gcry_mpi_scan): New argument BUFLEN to replace the
diff --git a/mpi/longlong.h b/mpi/longlong.h
index b0e8e972..95572c85 100644
--- a/mpi/longlong.h
+++ b/mpi/longlong.h
@@ -1461,7 +1461,7 @@ extern
#ifdef __STDC__
const
#endif
-unsigned char __clz_tab[];
+unsigned char _gcry_clz_tab[];
#define MPI_INTERNAL_NEED_CLZ_TAB 1
#define count_leading_zeros(count, x) \
do { \
@@ -1481,7 +1481,7 @@ unsigned char __clz_tab[];
break; \
} \
\
- (count) = W_TYPE_SIZE - (__clz_tab[__xr >> __a] + __a); \
+ (count) = W_TYPE_SIZE - (_gcry_clz_tab[__xr >> __a] + __a); \
} while (0)
/* This version gives a well-defined value for zero. */
#define COUNT_LEADING_ZEROS_0 W_TYPE_SIZE
diff --git a/mpi/mpi-bit.c b/mpi/mpi-bit.c
index 71f8c425..26853efd 100644
--- a/mpi/mpi-bit.c
+++ b/mpi/mpi-bit.c
@@ -31,7 +31,7 @@
const
#endif
unsigned char
-__clz_tab[] =
+_gcry_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,