demo/test.c


Log

Author Commit Date CI Message
Daniel Mendler bcec605a 2019-05-22T15: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)
Daniel Mendler 0a9f5e9b 2019-05-24T10:21:54 use u32 i64 suffix
Daniel Mendler d7e1cb4a 2019-05-24T00:15:11 another proposal: use _ul and _l for the long macros
Daniel Mendler b58c9966 2019-05-23T23:39:47 use int32 and uint32 instead of sint and uint
Daniel Mendler 3289c959 2019-05-20T10:41:06 introduce various mp_set_sint/mp_set_uint functions with precise types
Daniel Mendler 1af0de1f 2019-05-20T19: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)
Daniel Mendler 0b840b78 2019-05-17T20: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.
czurnieden 03ca7bcd 2019-05-20T23:33:35 added tests for Karatsuba and Toom-Cook 3-way
Steffen Jaeckel 51cda5b8 2019-05-19T09:55:14 use correct amount of MR trials in tests
Steffen Jaeckel cb3ff8c2 2019-05-19T09:54:25 improve coverage
Francois Perrad 150c47cc 2019-05-19T16:36:53 refactor literal suffix with u lowercase
Daniel Mendler f55f0a9e 2019-05-18T09:28:33 fix some usages of enum types
Daniel Mendler 56e7a401 2019-05-13T02:46:11 deprecate mp_jacobi
Daniel Mendler 198418ba 2019-05-14T20:39:33 bugfix: don't revert to platform rand source, but to jenkins source!
Daniel Mendler 4534056c 2019-05-13T00: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
Daniel Mendler f85bd31e 2019-05-12T17:06:40 fix undefined behavior in labs
Daniel Mendler 2a2e2716 2019-05-12T11:33:17 move jenkins prng to bn_s_mp_rand_jenkins.c
Daniel Mendler 8d71a9e3 2019-05-11T00:19:28 travis: add -fsanitize=undefined
Daniel Mendler 7365442a 2019-05-10T23:59:46 No grow necessary in mp_set_int* functions * mp_set_int* always return MP_OKAY * remove return checks for mp_set_int* * introduce MP_MIN_PREC
Daniel Mendler 0669e92e 2019-05-08T20:18:53 deprecate mp_prime_random_ex in favor of mp_prime_rand We can use the internal mp_rand generator now, since it generates numbers which are safe for crypto purposes.
Steffen Jaeckel 1a12486d 2019-05-08T21:08:16 add mp_rand test
Steffen Jaeckel eedf1624 2019-03-07T15:01:45 allow filtering of tests executed
Daniel Mendler 44d03a6f 2019-05-07T09:45:38 deprecate LTM_PRIME_* macros in favor of MP_PRIME_*
Daniel Mendler e45f75fd 2019-04-13T08:46:57 deprecate DIGIT_BIT, use MP_DIGIT_BIT
Daniel Mendler e8f56cc4 2019-04-05T11:37:49 enable -Wconversion and -Wsign-conversion on travis * no changes to the library code * conversion issues in the demo testsuite fixed * add CONV_WARNINGS and enable the warnings only for clang-7 (for now) * disable Wsystem-headers if Wconversion is enabled, to avoid warnings from the system headers
Daniel Mendler fbfcb661 2019-04-12T14:56:29 apply rename
czurnieden 35311aea 2019-04-03T23:50:57 added function mp_ilogb
czurnieden 27ca25cb 2019-04-06T18:55:43 added multiplcation balancing for the Toom-Cook algorithms
czurnieden 984d3ff6 2019-04-01T03:41:26 changed seed to make nth-root usable
czurnieden 0ed98cf1 2019-04-04T12:55:39 removed tracing
czurnieden 769218cc 2019-04-03T18:59:09 additional functions mp_incr and mp_decr
Steffen Jaeckel cb1eb161 2019-04-04T07:58:07 run `make astyle` [skip ci]
Francois Perrad 15a1adc2 2019-03-06T15:08:48 literal suffix
Daniel Mendler 1fc7d20d 2019-03-04T01:56:06 opponent/test.c: move ndraw to main.c
Daniel Mendler 3f42b6a7 2019-03-03T23:24:15 test/opponent.c: add todo comments
Daniel Mendler 674fdddb 2019-03-03T23:16:09 remove duplicate T(mp_tc_div_2d)
Daniel Mendler cd1570bb 2019-03-04T01:02:22 split test suite
Tom St Denis ef490f30 2003-06-06T19:35:48 added libtommath-0.19
Tom St Denis fd181cc8 2003-05-17T12:33:54 added libtommath-0.17