summaryrefslogtreecommitdiffstats
path: root/mpi/mpi.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-04-22 19:54:24 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-04-22 19:54:24 -0700
commit7e41976a6738db339c0962c632314f8490e626c0 (patch)
tree361a50a02472fdef66198c2c88516067ba24dada /mpi/mpi.h
parent13ea02f16c9cdb87c74dd35c63e25ffa96718483 (diff)
downloadtxr-7e41976a6738db339c0962c632314f8490e626c0.tar.gz
txr-7e41976a6738db339c0962c632314f8490e626c0.tar.bz2
txr-7e41976a6738db339c0962c632314f8490e626c0.zip
add-mpi-toradix-with-case patch
* mpi/mpi.c (mp_toradix_case): New function based on mp_toradix. Takes an argument whether to use lower case digits. (mp_toradix): Reduced to wrapper for mp_toradix_case. * mpi/mpi.h (mp_toradix_case): Declared.
Diffstat (limited to 'mpi/mpi.h')
-rw-r--r--mpi/mpi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mpi/mpi.h b/mpi/mpi.h
index 51ffc00d..e0fdbf92 100644
--- a/mpi/mpi.h
+++ b/mpi/mpi.h
@@ -213,6 +213,7 @@ mp_err mp_read_radix(mp_int *mp, unsigned char *str, int radix);
int mp_radix_size(mp_int *mp, int radix);
int mp_value_radix_size(int num, int qty, int radix);
mp_err mp_toradix(mp_int *mp, unsigned char *str, int radix);
+mp_err mp_toradix_case(mp_int *mp, unsigned char *str, int radix, int low);
int mp_char2value(char ch, int r);