2003-07-30 Moritz Schulte <moritz@g10code.com>
authorMoritz Schulte <mo@g10code.com>
Wed, 30 Jul 2003 11:39:15 +0000 (11:39 +0000)
committerMoritz Schulte <mo@g10code.com>
Wed, 30 Jul 2003 11:39:15 +0000 (11:39 +0000)
* longlong.h (__clz_tab): Renamed to _gcry_clz_tab.
* mpi-bit.c (__clz_tab): Likewise.

mpi/ChangeLog
mpi/longlong.h
mpi/mpi-bit.c

index b270160..4d806f7 100644 (file)
@@ -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
index b0e8e97..95572c8 100644 (file)
@@ -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
index 71f8c42..26853ef 100644 (file)
@@ -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,