Daniel Mendler
a8c76138f9
deprecate macros in tommath.h
...
* move MP_DEPRECATED to tommath.h since we need it later
* add MP_DEPRECATED_PRAGMA
2019-04-25 13:39:50 +02:00
Steffen Jaeckel
a6b5da2f17
Merge pull request #225 from minad/travis/compiler-versions
...
Test against multiple specific clang/gcc versions
2019-04-24 22:20:39 +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
6d092b85a5
travis: test various compiler options
2019-04-19 19:30:55 +02:00
Daniel Mendler
cb34cc2b25
ignore emacs and vim files
2019-04-19 18:57:33 +02:00
Steffen Jaeckel
6eae00c82a
Merge pull request #219 from czurnieden/bn_ilogb
...
Resolving problems mentioned in #218
2019-04-18 09:23:43 +02:00
czurnieden
8a886c8284
resolving #218
2019-04-18 08:33:03 +02:00
Steffen Jaeckel
e9e2342b8e
Merge pull request #218 from fperrad/20190410_lint
...
more linting
2019-04-18 08:27:35 +02:00
Francois Perrad
bdf93e8308
avoid else if
2019-04-13 07:59:40 +02:00
Francois Perrad
a13a7e7c5c
missing cast
2019-04-13 07:59:40 +02:00
Francois Perrad
01de1fe12a
literal suffix
2019-04-13 07:59:40 +02:00
Francois Perrad
b586fcbd30
explicit condition
2019-04-13 07:59:40 +02:00
Steffen Jaeckel
f5a4537f3c
Merge pull request #222 from libtom/fix/includes
...
fix includes
2019-04-12 22:50:39 +02:00
Steffen Jaeckel
e05b1e181b
fix includes
...
as of @czurnieden "there's always leftovers" and he's right
that's a leftover of #127
2019-04-12 19:07:08 +02:00
Steffen Jaeckel
a75224277f
Merge pull request #172 from minad/rename-internals
...
Rename internals
2019-04-12 15:49:18 +02:00
Daniel Mendler
8bf2eaa111
use MP_IS_ZERO in bn_mp_ilogb
2019-04-12 14:58:27 +02:00
Daniel Mendler
fbfcb66184
apply rename
2019-04-12 14:56:29 +02:00
Daniel Mendler
7469e852f1
add rename script
2019-04-12 14:55:09 +02:00
Daniel Mendler
87292ed10a
move mp_balance_mul to tommath_private.h
2019-04-12 14:55:09 +02:00
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