Daniel Mendler
56fb5e4a9a
mp_rand_source(NULL) sets to platform random source
2019-05-08 15:17:37 +02:00
Daniel Mendler
9e28ef9fa2
mp_rand: use #else after arcrandom
2019-05-08 15:15:45 +02:00
Daniel Mendler
2a0021a447
mp_rand: remove superflous mp_clamp
2019-05-08 14:57:49 +02:00
Daniel Mendler
9ddf1e5838
support custom random data source via mp_rand_source
...
* deprecate MP_PRNG_ENABLE_LTM_RNG
* custom mp_rand_source is used always if set, which should be more aligned with user expectations
* use custom source in tune.c
* don't call random number generator once per digit, which is slow
2019-05-08 11:21:10 +02:00
Daniel Mendler
f0f75186cd
set std=c89
...
we cannot set it together with -Wsystem-headers since the system headers
are usually not c89 but c99
2019-05-08 11:13:58 +02:00
Steffen Jaeckel
50fe11bfb7
fix help-output of tune program
...
[skip ci]
2019-05-07 16:34:33 +02:00
Steffen Jaeckel
f4d8b463f8
Merge pull request #235 from libtom/tune-fixes
...
Tune fixes
2019-05-07 16:33:44 +02:00
Daniel Mendler
e0e8c3d5f0
just use one .gitignore for simplicity
2019-05-07 12:36:11 +02:00
Daniel Mendler
e8ff342904
cleanup make output
2019-05-07 12:36:11 +02:00
Daniel Mendler
4f5334e4c6
etc/tune.c: add missing break
2019-05-07 12:36:11 +02:00
Daniel Mendler
6fb233c989
gitignore dos2unix, ignore file from make tune
2019-05-07 12:36:11 +02:00
Steffen Jaeckel
e98797263b
Merge pull request #234 from libtom/more-deprecations
...
More deprecations
2019-05-07 12:09:26 +02:00
Daniel Mendler
fe9a8189f8
sanitize comments in helper.pl
2019-05-07 10:56:13 +02:00
Daniel Mendler
2ea04fb782
dep.pl: strip comments
2019-05-07 10:42:47 +02:00
Daniel Mendler
c7596983ae
fix dep.pl - use lookahead to only generated dependencies for 'mp_*('
2019-05-07 10:28:32 +02:00
Daniel Mendler
290c28c10e
deprecate PRIME_SIZE in favor of MP_PRIME_SIZE
2019-05-07 09:49:26 +02:00
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