Commit Graph

113 Commits

Author SHA1 Message Date
Steffen Jaeckel
eedf1624f0 allow filtering of tests executed 2019-05-09 10:47:35 +02:00
Daniel Mendler
44d03a6f8b
deprecate LTM_PRIME_* macros in favor of MP_PRIME_* 2019-05-07 09:45:38 +02:00
Daniel Mendler
250751be46
tommath.h: do not expose stdlib.h 2019-05-07 09:32:59 +02:00
Daniel Mendler
e45f75fddb
deprecate DIGIT_BIT, use MP_DIGIT_BIT 2019-04-25 13:39:50 +02:00
Daniel Mendler
e8f56cc4e0
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
2019-04-19 22:01:11 +02:00
Daniel Mendler
fbfcb66184
apply rename 2019-04-12 14:56:29 +02:00
czurnieden
35311aea49 added function mp_ilogb 2019-04-09 21:59:59 +02:00
czurnieden
27ca25cb82 added multiplcation balancing for the Toom-Cook algorithms 2019-04-07 22:15:09 +02:00
Daniel Mendler
70a30ae7a7
remove footers 2019-04-07 17:26:31 +02:00
czurnieden
984d3ff679 changed seed to make nth-root usable 2019-04-06 22:51:10 +02:00
czurnieden
0ed98cf1cd removed tracing 2019-04-04 12:55:39 +02:00
czurnieden
769218ccc7 additional functions mp_incr and mp_decr 2019-04-04 07:58:19 +02:00
Steffen Jaeckel
cb1eb16116 run make astyle
[skip ci]
2019-04-04 07:58:07 +02:00
Francois Perrad
036551277e parameter with name in prototype 2019-03-06 15:13:20 +01:00
Francois Perrad
15a1adc290 literal suffix 2019-03-06 15:13:18 +01:00
Daniel Mendler
00a1bcd657
demo: better ndraw 2019-03-04 02:00:28 +01:00
Daniel Mendler
1fc7d20dab
opponent/test.c: move ndraw to main.c 2019-03-04 01:56:06 +01:00
Daniel Mendler
12b41bbeb5
opponent.c: forgot missing printf("\n") from _cleanup. reason for test failures. 2019-03-04 01:42:05 +01:00
Daniel Mendler
03b319ca3e
opponent.c: get rid of global variables and remove cleanup 2019-03-04 01:11:54 +01:00
Daniel Mendler
3f42b6a799
test/opponent.c: add todo comments 2019-03-04 01:11:12 +01:00
Daniel Mendler
674fdddbfc
remove duplicate T(mp_tc_div_2d) 2019-03-04 01:10:20 +01:00
Daniel Mendler
cd1570bb88
split test suite 2019-03-04 01:02:22 +01:00
Steffen Jaeckel
fcea5e3c35 Merge pull request #149 from czurnieden/develop
Added overflow check in mp_prime_is_prime and some verbosity in demo.c
(cherry picked from commit 55a7af3d62)
2019-01-22 09:00:03 +01:00
Steffen Jaeckel
648fbcefc7 run make format 2018-12-31 12:08:12 +01:00
czurnieden
813963178f reg. #143 added test to demo.c 2018-12-30 22:35:03 +01:00
Francois Perrad
ab074176ab explicit condition 2018-12-27 09:44:59 +01:00
Francois Perrad
f1f6762616 conditional definition of FGETS 2018-12-27 09:44:57 +01:00
Francois Perrad
2bde5bb5d5 semicolon 2018-12-27 09:44:54 +01:00
Francois Perrad
c63ce5bf1f fix indentation 2018-12-27 09:44:51 +01:00
Francois Perrad
b6fa97c591 explicit operator precedence 2018-12-27 09:44:46 +01:00
Francois Perrad
ea44272d41 always use #if LTM_DEMO_TEST_VS_MTEST != 0 2018-12-27 09:44:43 +01:00
Francois Perrad
efda3c0e10 declare cnt only when useful 2018-12-27 09:44:41 +01:00
Francois Perrad
4f902d9f10 remove useless assignment of cnt 2018-12-27 09:44:37 +01:00
Steffen Jaeckel
3ed524048f make astyle + some manual adjustments 2018-12-25 15:17:12 +01:00
czurnieden
3ec93dab9e bugfix in bn_mp_kronecker.c, cleanup and formatting in div. files 2018-12-25 15:17:12 +01:00
Steffen Jaeckel
e6f353b48d add mp_prime_is_prime to timing demo...
... it's disabled per default for now...
2018-12-25 15:17:12 +01:00
czurnieden
a2e15e2d10 Added tests to demo.c, switched off Lucas-Selfridge because it failed a test, and changed MP_8BIT handling in mp_prime_is_prime 2018-12-25 15:17:03 +01:00
czurnieden
dc150614d9 renamed variables in demo/demo.c shadowning another one 2018-12-08 10:13:01 +01:00
Karel Miko
d7f124f563 avoid c++ comments 2018-12-02 13:12:30 +01:00
Steffen Jaeckel
17f382c549 change C++ comments to C style 2018-11-26 12:32:05 +01:00
Daniel Mendler
2ab527b7e0
add mp_get_double, mp_set_double 2018-11-22 12:05:16 +01:00
Steffen Jaeckel
a829b87b00 add testcase of #118 2018-09-22 16:36:56 +02:00
Daniel Mendler
eebbcf0644
add mp_complement, mp_tc_div_2d, mp_tc_and, mp_tc_or, mp_tc_xor 2018-09-10 18:48:58 +02:00
Steffen Jaeckel
bf61c0be58 fix timing & logs/*.png generation 2018-02-27 23:30:43 +01:00
Steffen Jaeckel
82376cb19b format output of timing demo 2018-02-27 23:30:43 +01:00
Francois Perrad
802d8294db fix type & cast 2018-02-13 19:04:31 +01:00
Francois Perrad
9960fe3fe8 literal suffix 2018-02-13 19:04:25 +01:00
Francois Perrad
e3598dc8b2 explicit condition 2018-02-02 17:54:50 +01:00
Francois Perrad
d051d6ba58 remove unused code 2018-02-02 17:54:49 +01:00
Francois Perrad
0dbea3b69f explicit precedence operator with parenthesis 2018-02-01 22:28:57 +01:00