summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_radix_smap.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-05 16:37:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-05 16:37:52 (GMT)
commitd010f7c3480b092d396c73d872da43257192a475 (patch)
tree48d45e13e9c79b85aeddc76a32ca49ce48a9e961 /libtommath/bn_mp_radix_smap.c
parentc848a8872a27a167d3eba3391874be66feb637c5 (diff)
downloadtcl-d010f7c3480b092d396c73d872da43257192a475.zip
tcl-d010f7c3480b092d396c73d872da43257192a475.tar.gz
tcl-d010f7c3480b092d396c73d872da43257192a475.tar.bz2
More WIP: All makefile builds appear to work fine, makefile.vc build still to be done.
Diffstat (limited to 'libtommath/bn_mp_radix_smap.c')
-rw-r--r--libtommath/bn_mp_radix_smap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libtommath/bn_mp_radix_smap.c b/libtommath/bn_mp_radix_smap.c
index 5147c74..eb4765a 100644
--- a/libtommath/bn_mp_radix_smap.c
+++ b/libtommath/bn_mp_radix_smap.c
@@ -4,8 +4,8 @@
/* SPDX-License-Identifier: Unlicense */
/* chars used in radix conversions */
-const char s_mp_rmap[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+/";
-const unsigned char s_mp_rmap_reverse[] = {
+const char *const mp_s_rmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+/";
+const unsigned char mp_s_rmap_reverse[] = {
0xff, 0xff, 0xff, 0x3e, 0xff, 0xff, 0xff, 0x3f, /* ()*+,-./ */
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 01234567 */
0x08, 0x09, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 89:;<=>? */
@@ -18,4 +18,5 @@ const unsigned char s_mp_rmap_reverse[] = {
0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, /* pqrstuvw */
0x3b, 0x3c, 0x3d, 0xff, 0xff, 0xff, 0xff, 0xff, /* xyz{|}~. */
};
+const size_t mp_s_rmap_reverse_sz = sizeof(mp_s_rmap_reverse);
#endif