Commit Graph

681 Commits

Author SHA1 Message Date
czurnieden
984d3ff679 changed seed to make nth-root usable 2019-04-06 22:51:10 +02:00
Steffen Jaeckel
432f995ff3
Merge pull request #205 from libtom/travis_check_sources
Add travis build-job that checks the source-code format
2019-04-06 18:55:25 +02:00
Steffen Jaeckel
c4bb3c1bd4 let's see if the xenial version of astyle is better 2019-04-06 17:59:49 +02:00
Steffen Jaeckel
6dc923efa9 clean-up make astyle output 2019-04-06 17:45:15 +02:00
Steffen Jaeckel
6f5df266f2 fix file headers & footers 2019-04-06 17:45:15 +02:00
Steffen Jaeckel
58e9084e1a run make new_file 2019-04-06 17:45:15 +02:00
Steffen Jaeckel
cf80753764 run make astyle 2019-04-06 17:45:15 +02:00
Steffen Jaeckel
179daef123 add travis-build to check source-code format 2019-04-06 17:45:15 +02:00
Steffen Jaeckel
9e8b71e3a5 remove travis build of clang + x32
as clang has no x32 support at all there's no need to test it

[skip ci]
2019-04-05 11:43:36 +02:00
Steffen Jaeckel
05137105b4
Merge pull request #192 from libtom/alloc-sizes
allocation functions: pass size to XREALLOC and XFREE
2019-04-05 11:43:22 +02:00
Daniel Mendler
db9a47d514
allocation functions: pass size to XREALLOC and XFREE
This is similar to the signatures of the custom allocation functions provided by GMP.
The allocation sizes are useful if the allocator has no easy way to access the allocation size.
2019-04-05 10:58:07 +02:00
Steffen Jaeckel
32b3351d15
Merge pull request #200 from libtom/cast-cleanup
remove unnecessary size_t casts, fix Wconversion/Wsign-conversion issues
2019-04-05 10:54:06 +02:00
Daniel Mendler
5da4e0ac01
remove unnecessary size_t casts, fix Wconversion/Wsign-conversion issues
Wconversion and Wsign-conversion is still not activated by default,
since there are many issues in demo.c.
2019-04-05 10:52:39 +02:00
Steffen Jaeckel
c1131186c0
Merge pull request #199 from libtom/remove-set-long-specialization
remove mp_set_long specialization
2019-04-05 10:49:28 +02:00
Daniel Mendler
77143c33ea
remove mp_set_long specialization 2019-04-04 23:03:25 +02:00
Steffen Jaeckel
d256648e12
Merge pull request #193 from czurnieden/develop
removed tracing
2019-04-04 13:32:14 +02:00
czurnieden
0ed98cf1cd removed tracing 2019-04-04 12:55:39 +02:00
Steffen Jaeckel
e6902c4a59
Merge pull request #190 from czurnieden/bn_incr
additional functions mp_incr and mp_decr
2019-04-04 11:46:02 +02:00
czurnieden
62ca5158c7 corrected C&P induced problem 2019-04-04 07:58:19 +02:00
czurnieden
1af68f471b soothe compiler 2019-04-04 07:58:19 +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
Steffen Jaeckel
646ac8802f update callgraph and tommath_class 2019-04-04 07:55:02 +02:00
Steffen Jaeckel
42b1609222 how to create a minimized callgraph 2019-04-04 07:54:00 +02:00
Steffen Jaeckel
708a8bfd55
Merge pull request #178 from libtom/add-missing-const
add missing const to cast
2019-03-29 10:40:58 +01:00
Daniel Mendler
fce2966e25 add missing const to cast 2019-03-29 10:40:25 +01:00
Steffen Jaeckel
12f0abbe86
Merge pull request #177 from libtom/remove-opt-cast
remove OPT_CAST
2019-03-29 10:39:24 +01:00
Daniel Mendler
28e61778b9 remove OPT_CAST
The explicit cast does not hurt in C. Furthermore the explicit cast is needed
if tommath is compiled as C with strict warning settings.
2019-03-29 10:38:43 +01:00
Steffen Jaeckel
27417b85c7
Merge pull request #188 from libtom/unused_xcalloc
XCALLOC is not used anywhere anymore, so it can be removed
2019-03-29 08:59:25 +01:00
nijtmans
54d673f1a8 XCALLOC is not used anywhere anymore, so it can be removed 2019-03-29 08:58:53 +01:00
Steffen Jaeckel
d449bd44c0
Merge pull request #187 from libtom/unused_mp_min_u32
mp_min_u32 is not used anywhere anymore, so it can be removed
2019-03-29 08:58:28 +01:00
nijtmans
a3076677be previous commit removed a little bit too much 2019-03-28 16:18:41 +01:00
nijtmans
ef07da5b8c mp_min_u32 is not used anywhere anymore, so it can be removed 2019-03-28 16:13:37 +01:00
Steffen Jaeckel
05399033b8
Merge pull request #186 from fperrad/20190326_lint
some linting
2019-03-26 22:01:36 +01:00
Francois Perrad
9d63882d50 explicit condition 2019-03-26 18:58:44 +01:00
Francois Perrad
6d63370370 explicit operator precedence 2019-03-26 18:58:41 +01:00
Steffen Jaeckel
3841062016
Merge pull request #176 from libtom/do-not-include-stdio
do not include stdio.h if LTM_NO_FILE is defined
2019-03-26 17:47:34 +01:00
Daniel Mendler
8eb3bb282e do not include stdio.h if LTM_NO_FILE is defined
stdio.h might not be available on constraint environments
2019-03-26 17:47:16 +01:00
Steffen Jaeckel
255271ed98
Merge pull request #179 from libtom/avoid-ctype
avoid ctype toupper
2019-03-26 17:46:36 +01:00
Daniel Mendler
32099fdef1 avoid ctype toupper
- libc toupper is locale dependent
- removes the dependency on ctype.h
2019-03-26 17:45:13 +01:00
Steffen Jaeckel
f3ff7064f3
Merge pull request #180 from czurnieden/isprimeerror
Fixed bug in mp_prime_isprime
2019-03-26 17:44:05 +01:00
czurnieden
6608eea9e1 bugfix in final fips loop II: alternative version 2019-03-26 15:42:36 +01:00
czurnieden
7ecd1ad4f6 bugfix in final fips loop II 2019-03-26 15:42:36 +01:00
czurnieden
9771308d11 bugfix in final fips loop 2019-03-26 15:42:36 +01:00
Steffen Jaeckel
b587c954a5
Merge pull request #183 from libtom/get_set_efficiency
efficiency improvement in get/set routines
2019-03-26 15:40:38 +01:00
nijtmans
6dc8ae5b64 efficiency improvement in get/set routines 2019-03-26 15:39:30 +01:00
Steffen Jaeckel
0f1abbd1b1
Merge pull request #175 from czurnieden/develop
Added valgrind tests to testme.sh and travis.yml
2019-03-26 15:38:55 +01:00
Steffen Jaeckel
39ef9858a3 partially port over valgrind test logic from ltc
also try if the test failure has to do with travis_wait
2019-03-26 14:38:54 +01:00
Steffen Jaeckel
c1a335b7e5 increase timeout of test vs. mtest to 30mins as proposed by @czurnieden 2019-03-26 14:35:52 +01:00
Steffen Jaeckel
9ed679ea51 use appropriate bash exit code 2019-03-26 14:34:42 +01:00