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
Francois Perrad
f5876db051
fix format
2018-02-01 22:28:54 +01:00
Francois Perrad
31aac2cea7
const variable
2018-02-01 22:28:52 +01:00
Francois Perrad
987911bd61
const parameter
2018-02-01 22:28:49 +01:00
Francois Perrad
d74f3d741a
static variable & function
2018-02-01 22:28:43 +01:00
Francois Perrad
8a8659f283
remove useless variable
2017-12-22 21:30:15 +01:00
Francois Perrad
2f35c79c00
refactor with FGETS
2017-12-06 16:31:03 +01:00
Francois Perrad
08741a141c
run astyle
2017-12-06 16:30:45 +01:00
Steffen Jaeckel
1bc0088330
use correct printf format specifier in timing.c
...
This fixes #54
2017-10-15 12:01:38 +02:00
Steffen Jaeckel
6fa127b707
add testcase for #67
2017-10-15 12:01:04 +02:00
Steffen Jaeckel
6f21294212
replace SVN tags
2017-08-28 17:00:58 +02:00
Steffen Jaeckel
2e1446f936
Add testcase for mp_add_d('0',...)
...
This closes #65
2016-06-02 09:52:42 +02:00
Steffen Jaeckel
0b9e9b5b08
improve trivial tests
2016-06-02 09:40:05 +02:00
Tom St Denis
f551dbc8ac
Remove all traces of ulong64 as per comment by Karel M
2016-02-03 13:07:27 -05:00
Steffen Jaeckel
3ae9d0fbd2
demo: verify that negative number handling in mp_jacobi works
2016-01-12 13:49:18 +01:00
Steffen Jaeckel
68a360ab7f
timing: create reproducable results
2015-12-12 18:15:04 +01:00
Steffen Jaeckel
543ffc7a03
improve demo.c a bit
...
- fix mp_get_long_long() tests
- more verbose output of ndraw()
- use all output of rand()
- move montgomery to the end of the tests, it's slow
2015-12-03 00:10:06 +01:00
Steffen Jaeckel
1e7ca501fd
fixup demo.c
2015-11-29 23:14:50 +01:00
Steffen Jaeckel
7176a8777a
Add tests for mp_jacobi()
2015-11-29 22:43:52 +01:00
Francois Perrad
f771e317ff
move standard includes
2015-11-19 21:34:58 +01:00
Steffen Jaeckel
25480d57b7
demo: test one big montgomery reduction
...
...only for coverage reasons...
2015-11-01 12:28:58 +01:00
Steffen Jaeckel
f82599933b
timing: add compile-time option to disable logging
2015-11-01 12:28:49 +01:00
Steffen Jaeckel
b6d76643db
timing: some changes
...
- also use toom-cook for mul and sqr
- don't test too huge numbers with invmod (takes too long)
- remove the goto and labels
2015-11-01 12:28:44 +01:00
Steffen Jaeckel
c4501e1eb5
work a bit on code coverage
2015-11-01 12:28:34 +01:00
Steffen Jaeckel
91df2129ec
add minimal mp_sqrtmod_prime() tests to demo.c
2015-11-01 12:27:08 +01:00
Steffen Jaeckel
cb085f06cf
demo: read from urandom if someone requests real random data
2015-04-18 15:06:28 +02:00
Steffen Jaeckel
35488c9e84
fix errors in demo/demo.c found by clang
...
CC='clang' CFLAGS='-fsanitize=address,undefined -O3 -g -fPIC -I./'
2014-12-14 12:35:46 +01:00
Steffen Jaeckel
9d83fce77e
add tests
2014-12-10 18:59:42 +01:00
Steffen Jaeckel
5d3ee880aa
less noise plz
2014-12-10 18:27:03 +01:00
Steffen Jaeckel
158e326612
add tests for mp_set_long() and mp_get_long()
2014-12-10 17:20:15 +01:00
Steffen Jaeckel
9ca37ca01c
mtest vs. test: add possibility to exit testing
...
'mtest' can now optionally only run a given amount of loops.
the first parameter <n> when invoking 'mtest' is considered to determine
the amount
when <n> is in the range -63..-1: mtest will run 2^-n runs
when <n> is > 0: mtest will run n runs
else: mtest will exit immediately
2014-10-18 18:52:46 +02:00
Steffen Jaeckel
5c5d600a82
demo: calm compiler warnings & improve a bit
2014-10-14 14:38:41 +02:00
Steffen Jaeckel
52bb535ff7
demo: test both mp_n_root() implementations
2014-09-28 13:33:59 +02:00
Steffen Jaeckel
759a926cfe
minor changes & clean-up & small fixes
...
gitignore: add libtool output
booker.pl: fix source code parsing and trim trailing spaces
demo/demo: fix compiler warning, add informational output
demo/timing & etc/tune: fix TIMFUNC()
makefile: minor changes
makefile.shared: increase version, add missing mp_balance_mul
tommath: make sure that DIGIT_BIT is correct
2014-09-28 13:12:10 +02:00
Steffen Jaeckel
6fc385081e
demo: clean-up on exit
2014-02-14 12:59:04 +01:00
Steffen Jaeckel
f47c0f208d
demo: allow mp_reduce_2k_l tests to be switched off
2014-02-14 12:58:49 +01:00
Steffen Jaeckel
ca150960c1
demo: fix compiler warnings, return values & output format
2014-02-14 12:57:52 +01:00
Steffen Jaeckel
e098750798
demo: "improve" a bit
...
allow reproducible testcases
add easy switch to compile either a version for "test vs. mtest" or to
run internal tests
2014-02-14 11:48:34 +01:00
Steffen Jaeckel
ddd788a185
trim trailing spaces
2014-02-14 11:30:40 +01:00
Steffen Jaeckel
fe40673639
fixed compilation error of demo/demo.c because of missing macro LTM_PRIME_2MSB_OFF
2011-03-23 23:25:15 +01:00
Tom St Denis
9294e79150
added libtommath-0.36
2010-07-15 17:25:56 +02:00
Tom St Denis
fdfa2f4f50
added libtommath-0.35
2010-07-15 17:25:53 +02:00
Tom St Denis
3d0fcaab0a
added libtommath-0.34
2010-07-15 17:25:51 +02:00
Tom St Denis
4b7111d96e
added libtommath-0.33
2010-07-15 17:25:49 +02:00
Tom St Denis
e549ccfec5
added libtommath-0.32
2010-07-15 17:25:47 +02:00
Tom St Denis
8eaa98807b
added libtommath-0.31
2010-07-15 17:25:45 +02:00
Tom St Denis
350578d400
added libtommath-0.30
2010-07-15 17:25:43 +02:00
Tom St Denis
6c48a9b3a6
added libtommath-0.29
2010-07-15 17:25:41 +02:00
Tom St Denis
455bb4db20
added libtommath-0.28
2010-07-15 17:25:39 +02:00
Tom St Denis
c343371bb2
added libtommath-0.27
2010-07-15 17:25:37 +02:00
Tom St Denis
6e732340a9
added libtommath-0.26
2010-07-15 17:25:35 +02:00
Tom St Denis
c1da6aa2de
added libtommath-0.25
2010-07-15 17:25:33 +02:00
Tom St Denis
03cc01b578
added libtommath-0.24
2010-07-15 17:25:32 +02:00
Tom St Denis
eed6765fe9
added libtommath-0.23
2010-07-15 17:25:30 +02:00
Tom St Denis
4c1d3f0838
added libtommath-0.22
2010-07-15 17:25:29 +02:00
Tom St Denis
49bef06878
added libtommath-0.21
2010-07-15 17:25:27 +02:00
Tom St Denis
ef490f30f6
added libtommath-0.19
2010-07-15 17:25:24 +02:00
Tom St Denis
0ef44cea9b
added libtommath-0.18
2010-07-15 17:25:22 +02:00
Tom St Denis
fd181cc841
added libtommath-0.17
2010-07-15 17:25:21 +02:00
Tom St Denis
14161e843e
added libtommath-0.16
2010-07-15 17:25:19 +02:00
Tom St Denis
b1756f2f98
added libtommath-0.15
2010-07-15 17:25:18 +02:00
Tom St Denis
82f4858291
added libtommath-0.14
2010-07-15 17:25:17 +02:00
Tom St Denis
b66471f74f
added libtommath-0.13
2010-07-15 17:25:15 +02:00
Tom St Denis
57354e11ac
added libtommath-0.12
2010-07-15 17:25:14 +02:00