improve comment in tommath.h, extend .gitignore

This commit is contained in:
Daniel Mendler 2019-05-23 11:12:30 +02:00
parent 3289c9590b
commit d795985497
No known key found for this signature in database
GPG Key ID: D88ADB2A2693CA43
2 changed files with 5 additions and 1 deletions

4
.gitignore vendored
View File

@ -53,6 +53,10 @@ UpgradeLog*.htm
*.vspx
*.sap
# Linux perf profiler
perf.data
perf.data.old
# ignore mpi.c generated by make
mpi.c

View File

@ -305,7 +305,7 @@ uint64_t mp_get_mag64(const mp_int *a) MP_WUR;
#define mp_get_maglong(a) (sizeof (long) == 8 ? (unsigned long)mp_get_mag64(a) : (unsigned long)mp_get_mag(a))
#define mp_set_ulong(a, b) (sizeof (long) == 8 ? mp_set_uint64((a), (b)) : mp_set_uint((a), (uint32_t)(b)))
/* set to single unsigned digit, only 8 bit guaranteed */
/* set to single unsigned digit, up to MP_DIGIT_MAX */
void mp_set(mp_int *a, mp_digit b);
mp_err mp_init_set(mp_int *a, mp_digit b) MP_WUR;