add most relevant paper

This commit is contained in:
Markus Teich 2016-06-02 13:26:37 +02:00
parent 9a94dd6936
commit d430dc2b20
2 changed files with 2 additions and 1 deletions

3
smc.c
View File

@ -24,12 +24,13 @@
GEN GEN
smc_hextodec (char *s) /* int */ smc_hextodec (char *s) /* int */
{ {
long i, tmp; unsigned int i, tmp;
GEN ret = gen_0; /* int */ GEN ret = gen_0; /* int */
GEN v = gtovecsmall (strtoGENstr (s)); /* vecsmall */ GEN v = gtovecsmall (strtoGENstr (s)); /* vecsmall */
for (i = 1; i < lg (v); ++i) for (i = 1; i < lg (v); ++i)
{ {
///TODO: scanf instead of if
if ((v[i] >= '0') && (v[i] <= '9')) if ((v[i] >= '0') && (v[i] <= '9'))
tmp = v[i] - '0'; tmp = v[i] - '0';
else if ((v[i] >= 'a') && (v[i] <= 'f')) else if ((v[i] >= 'a') && (v[i] <= 'f'))