kc3-lang/libtommath/demo/test.c

Branch :


Log

Author Commit Date CI Message
c7314fa4 2019-05-25 06:42:01 deprecate mp_n_root_ex and mp_expt_d_ex These functions were introduced to give some timing guarantees. However the guarantees are too weak to be useful. The functions seem to be unused essentially by downstream users.
0e1a0e65 2019-05-24 11:27:03 also test mp_shrink()
bcec605a 2019-05-22 15:34:49 deprecate mp_prime_is_divisible and ltm_prime_tab * it is an implementation detail used for prime testing * there is upcoming work by @czurnieden regarding a generalised prime sieve * furthermore remove jacobi test (replaced by kronecker)
0a9f5e9b 2019-05-24 10:21:54 use u32 i64 suffix
d7e1cb4a 2019-05-24 00:15:11 another proposal: use _ul and _l for the long macros
b58c9966 2019-05-23 23:39:47 use int32 and uint32 instead of sint and uint
3289c959 2019-05-20 10:41:06 introduce various mp_set_sint/mp_set_uint functions with precise types
1af0de1f 2019-05-20 19:11:25 deprecate mp_tc_(and|or|xor) in favor of mp_(and|or|xor) * same behavior for positive numbers * generalisation for negative numbers, treating them as two complement * improve algorithm, iterate once over the digits, manually perform two complement * simplify mp_add_d, mp_sub_d * functions are safe in case of a==c or b==c * renamed mp_tc_div_2d to mp_signed_rsh (signed right shift)
0b840b78 2019-05-17 20:53:24 make mp_word private mp_word is an internal type and it is problematic if it is exposed in the public api. See for example #216 - MSVC does not support 128 bit mp_words. But it is perfectly ok to use those internally in the library, as long as the library is compiled with GCC.
03ca7bcd 2019-05-20 23:33:35 added tests for Karatsuba and Toom-Cook 3-way