Simon Tatham
|
736646b0c9
Fix a few warnings reported by Visual Studio.
|
3 years ago |
Simon Tatham
|
289d8873ec
Fix mp_{eq,hs}_integer(tiny, huge).
|
5 years ago |
Simon Tatham
|
3ea69c290e
mpint: clean up handling of uintmax_t.
|
5 years ago |
Simon Tatham
|
20a9912c7c
Add mp_copy_integer_into function.
|
5 years ago |
Simon Tatham
|
6b27999500
Add mp_nthroot function.
|
5 years ago |
Simon Tatham
|
2debb352b0
mpint: add a gcd function.
|
5 years ago |
Simon Tatham
|
957f14088f
mpint: add mp_random_upto().
|
5 years ago |
Simon Tatham
|
d4a4111fec
mpint: add mp_lshift_fixed().
|
5 years ago |
Simon Tatham
|
18678ba9bc
mpint: add mp_[lr]shift_safe_into functions.
|
5 years ago |
Simon Tatham
|
dec79cf152
Start a file of 'unsafe' mp_int functions.
|
5 years ago |
Simon Tatham
|
921118dbea
Fix handling of large RHS in mp_add_integer_into.
|
5 years ago |
Simon Tatham
|
76430f8237
Assorted benign warning fixes.
|
5 years ago |
Simon Tatham
|
8d747d8029
Add lots of missing 'static' keywords.
|
5 years ago |
Simon Tatham
|
1278f51f1d
Remove a few completely unused functions.
|
5 years ago |
Simon Tatham
|
5d718ef64b
Whitespace rationalisation of entire code base.
|
5 years ago |
Simon Tatham
|
1a7521a0a7
New mpint function mp_get_integer().
|
6 years ago |
Simon Tatham
|
9cb8c4bcb7
mp_cond_swap: add a brute-force 'volatile'.
|
6 years ago |
Simon Tatham
|
bfae3ee96e
mpint: add a few simple bitwise operations.
|
6 years ago |
Simon Tatham
|
bd84c5e4b3
mp_modmul: cope with oversized base values.
|
6 years ago |
Simon Tatham
|
6e7df89316
Fix buffer overrun in mp_from_decimal("").
|
6 years ago |
Simon Tatham
|
5017d0a6ca
mpint.c: outlaw mp_ints with nw==0.
|
6 years ago |
Simon Tatham
|
d4ad7272fd
Add functions mp_max and mp_max_into.
|
6 years ago |
Simon Tatham
|
628e794832
Replace random_byte() with random_read().
|
6 years ago |
Simon Tatham
|
c9f673ac12
mpint_rshift_safe: stop using variable bit shifts.
|
6 years ago |
Simon Tatham
|
80f2f6e7af
Fix mp_mul_add_simple on Visual Studio.
|
6 years ago |
Simon Tatham
|
7fd815014e
mpint: fix further integer-type confusions.
|
6 years ago |
Simon Tatham
|
6fc50d402e
Fix 32-bit-only bug in mp_{eq,hs}_integer.
|
6 years ago |
Simon Tatham
|
8024b55ea6
mp_divmod_into: don't confuse uint64_t with BignumInt.
|
6 years ago |
Simon Tatham
|
8e399f9aa7
Speed up and simplify mp_invert.
|
6 years ago |
Simon Tatham
|
22a79fe733
mpint tuning: lower KARATSUBA_THRESHOLD to 24.
|
6 years ago |