Daniel Mendler
44d03a6f8b
deprecate LTM_PRIME_* macros in favor of MP_PRIME_*
2019-05-07 09:45:38 +02:00
Daniel Mendler
e2ee39b536
deprecate ltm_prime_callback
2019-05-07 09:36:24 +02:00
Daniel Mendler
80f5fac53b
rename LTM_NO_FILE to MP_NO_FILE
2019-05-07 09:33:56 +02:00
Daniel Mendler
0337d48b67
add MP_NULL_TERMINATED
2019-05-07 09:33:46 +02:00
Daniel Mendler
250751be46
tommath.h: do not expose stdlib.h
2019-05-07 09:32:59 +02:00
Steffen Jaeckel
79c8743015
Merge pull request #232 from czurnieden/autotune
...
Autotuning functionality for the Toom-Cook cut-offs
2019-05-07 09:10:37 +02:00
Steffen Jaeckel
a7fcb6f53c
update etc/tune_it.sh after merging #231
2019-05-06 23:29:08 +02:00
czurnieden
db76bed220
added autotuning functionality for the Toom-Cook cut-offs
2019-05-06 23:29:08 +02:00
Steffen Jaeckel
9e1a75cfdc
Merge pull request #231 from libtom/tune-via-D
...
Tunable cutoff parameters
2019-05-06 22:18:33 +02:00
Daniel Mendler
818d8fb7f5
Rework handling of tunable cutoffs
...
* In the default settings, a cutoff X can be modified at runtime
by adjusting the corresponding X_CUTOFF variable.
* Tunability of the library can be disabled at compile time
by defining the MP_FIXED_CUTOFFS macro.
* There is an additional file tommath_cutoffs.h, which defines
the default cutoffs. These can be adjusted manually or by the
autotuner.
2019-05-04 13:08:37 +02:00
Steffen Jaeckel
91d953ed73
Merge pull request #226 from libtom/deprecate-macros2
...
Deprecate macros (2)
2019-04-26 11:43:06 +02:00
Daniel Mendler
90eccd5768
prefix private macros by PRIVATE_
2019-04-25 15:36:35 +02:00
Daniel Mendler
632601f405
MP_WARRAY is an internal macro
2019-04-25 13:39:50 +02:00
Daniel Mendler
e45f75fddb
deprecate DIGIT_BIT, use MP_DIGIT_BIT
2019-04-25 13:39:50 +02:00
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