1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Add mp_copy_integer_into function.

Even simpler than the existing mp_add_integer_into.
This commit is contained in:
Simon Tatham
2020-02-19 19:12:32 +00:00
parent 6b27999500
commit 20a9912c7c
4 changed files with 15 additions and 3 deletions

View File

@ -176,9 +176,10 @@ mp_int *mp_max(mp_int *x, mp_int *y);
void mp_dump(FILE *fp, const char *prefix, mp_int *x, const char *suffix);
/*
* Overwrite one mp_int with another.
* Overwrite one mp_int with another, or with a plain integer.
*/
void mp_copy_into(mp_int *dest, mp_int *src);
void mp_copy_integer_into(mp_int *dest, uintmax_t n);
/*
* Conditional selection. Overwrites dest with either src0 or src1,