kc3-lang/libtommath/demo/test.c

Branch :


Log

Author Commit Date CI Message
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
51cda5b8 2019-05-19 09:55:14 use correct amount of MR trials in tests
cb3ff8c2 2019-05-19 09:54:25 improve coverage
150c47cc 2019-05-19 16:36:53 refactor literal suffix with u lowercase
f55f0a9e 2019-05-18 09:28:33 fix some usages of enum types
56e7a401 2019-05-13 02:46:11 deprecate mp_jacobi
198418ba 2019-05-14 20:39:33 bugfix: don't revert to platform rand source, but to jenkins source!
4534056c 2019-05-13 00:22:18 use enums mp_err, mp_ord, mp_bool, mp_sign * MP_USE_ENUMS enables enums * Wc++-compat catches some implicit conversions if MP_USE_ENUMS is defined * 100% backwards compatible API/ABI if MP_USE_ENUMS is not defined