Commit Graph

709 Commits

Author SHA1 Message Date
Daniel Mendler
df8fcb0e4b
add MP_DEPRECATED macro 2019-04-12 14:55:09 +02:00
Daniel Mendler
e09a5c99bc
remove s_mp_mul which is only used once 2019-04-12 14:55:09 +02:00
Daniel Mendler
c4fb2241dc
rename macros in tommath_private to use MP_* prefix 2019-04-12 14:55:08 +02:00
Steffen Jaeckel
a105bc95c1
Merge pull request #220 from libtom/missing_error_code
Add handling of MP_ITER error-code to mp_error_to_string()
2019-04-12 13:30:22 +02:00
nijtmans
2b6e9d05a2 Change, make it a switch-statement 2019-04-12 11:24:17 +02:00
nijtmans
6b3c2ba111 Add handling of MP_ITER error-code to mp_error_to_string() 2019-04-12 10:46:31 +02:00
Steffen Jaeckel
3d51fe164e
Merge pull request #217 from libtom/rename_bn_error_c
Rename bn_error.c to bn_mp_error_to_string.c
2019-04-11 10:41:22 +02:00
nijtmans
066830ad06 Fix surrounding macro 2019-04-10 15:40:54 +02:00
nijtmans
3afec571e7 Re-generate callgraph and tommath_class.h 2019-04-10 15:19:23 +02:00
nijtmans
5968263bc4 Rename bn_error.c to bn_mp_error_to_string.c 2019-04-10 14:49:59 +02:00
Steffen Jaeckel
d999fed62c
Merge pull request #191 from czurnieden/bn_ilogb
New function:  ilogb, integer logarithm to integer base
2019-04-10 08:04:55 +02:00
czurnieden
35311aea49 added function mp_ilogb 2019-04-09 21:59:59 +02:00
Steffen Jaeckel
96ece822c3
Merge pull request #215 from fperrad/20190409_lint
some linting
2019-04-09 21:47:13 +02:00
Francois Perrad
42193f8914 explicit operator precedence 2019-04-09 20:26:08 +02:00
Francois Perrad
cb8c00d83b remove useless initialization 2019-04-09 20:25:27 +02:00
Francois Perrad
fb3eec2046 final else after a chain of if/else if 2019-04-09 20:25:24 +02:00
Francois Perrad
382a561ca1 literal suffix 2019-04-09 20:25:09 +02:00
Steffen Jaeckel
2033fb9108
Merge pull request #206 from czurnieden/bn_mul_balance
Multiplication balancing for the Toom-Cook algorithms
2019-04-07 23:39:31 +02:00
czurnieden
27ca25cb82 added multiplcation balancing for the Toom-Cook algorithms 2019-04-07 22:15:09 +02:00
Steffen Jaeckel
7f42ce0968
Merge pull request #211 from libtom/remove-footers
remove footers & headers
2019-04-07 21:30:51 +02:00
Daniel Mendler
ff56140462
shorter headers 2019-04-07 17:26:31 +02:00
Daniel Mendler
70a30ae7a7
remove footers 2019-04-07 17:26:31 +02:00
Steffen Jaeckel
4f8c353293
Merge pull request #209 from libtom/reintroduce-realloc
Reintroduce calloc
2019-04-07 14:48:43 +02:00
Steffen Jaeckel
a3651cbd79 apply modifications to XCALLOC according to #192 2019-04-06 23:41:24 +02:00
Steffen Jaeckel
d6c6f8c3cc use calloc so we don't have to zero the digits ourself
this also has the nice side-effect that potential multiplication
overflows in `mp_init_size` are now eliminiated
2019-04-06 23:41:24 +02:00
Steffen Jaeckel
d01b531897 Revert "Merge pull request #188 from libtom/unused_xcalloc"
This reverts commit 27417b85c7, reversing
changes made to d449bd44c0.
2019-04-06 23:41:24 +02:00
Steffen Jaeckel
ec4149d03b
Merge pull request #189 from czurnieden/bugfix-n-root
changed seed to make nth-root usable
2019-04-06 23:40:47 +02:00
czurnieden
8312296bf6 workaround for bug in helper.pl 2019-04-06 22:52:37 +02:00
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