Commit Graph

48 Commits

Author SHA1 Message Date
J08nY
f01cc5d266 Fix clang detection when cross-compiling.
`echo` needs -e to output newlines, without the switch make complains:
    <stdin>:1:17: warning: extra tokens at end of #ifdef directive
    <stdin>:1: error: unterminated #ifdef
and does not detect clang properly when cross-compiling.
2020-03-06 09:58:17 +01:00
Daniel Mendler
74d828d526
don't use ranlib, ar s is equivalent 2019-11-05 20:28:59 +01:00
Daniel Mendler
e8e65119d1
add COMPILE_LTO to test link time optimization
the library performs best with lto since many small functions
can be inlined across objects.
2019-11-05 20:28:59 +01:00
Steffen Jaeckel
d800071e81 ignore&clean tommath_amalgam.c [skip ci] 2019-10-28 16:36:40 +01:00
Daniel Mendler
1ece193af2
replace gen.pl by cat, rename mpi.c to mp_all.c 2019-10-28 15:29:54 +01:00
Steffen Jaeckel
1d0affc0a9 update version 2019-10-22 11:54:34 +02:00
Steffen Jaeckel
d06e2986ca v1.2.0
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 Comment: Gnu Privacy Tools
 
 iF4EABEIAAYFAl2uz5oACgkQrwyxdiHtrXLIngD/WoeRRt9sYkjNiSmiKYuBvgAi
 pF0Sdfe7vAAhY3jpRX0A/2rJdJFGiFiuAB72qWiGJZg0Rr+kbOGwKfvYgE6jROw6
 =EL7p
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 Comment: Gnu Privacy Tools
 
 iF4EABEIAAYFAl2u0EEACgkQrwyxdiHtrXIQkQD+I8Z6IYTtVmG0patanpT1EFyA
 SZUKP2z50owej4uF3QAA/32m1dmpG6MSYhfu9zu4435PwaI+RgCaUrZ1YaoWroXJ
 =agqw
 -----END PGP SIGNATURE-----

Merge tag 'v1.2.0' into develop

v1.2.0
2019-10-22 11:47:42 +02:00
Steffen Jaeckel
6a02e94338 final bump 2019-10-22 11:43:35 +02:00
Steffen Jaeckel
ddef44e7d3 update changes, bump version, fixup c917f3c
[skip ci]
2019-10-21 10:49:10 +02:00
Steffen Jaeckel
4d6a9682e5 fix 'coverage' & add 'check' make-target 2019-10-19 16:02:23 +02:00
Steffen Jaeckel
45bef94f88 bump version 2019-10-17 12:22:11 +02:00
Steffen Jaeckel
11ab738e38 fix SO version 2019-10-17 12:11:52 +02:00
Daniel Mendler
554310847a
tommath.h: use enums 2019-10-16 09:32:37 +02:00
Steffen Jaeckel
8adc90411a bump version 2019-10-15 21:12:21 +02:00
Steffen Jaeckel
8825ab6064
improve clean make-target 2019-10-15 14:47:43 +02:00
Steffen Jaeckel
bae1045de5 tommath_cutoffs.h is a private header now
... and should be treated as such
2019-10-03 20:12:34 +02:00
Steffen Jaeckel
f8d64c645a create mtest_opponent instead of alt version of test 2019-09-30 23:44:49 +02:00
Steffen Jaeckel
1687b15249 allow the user to override {C,L,LD}FLAGS 2019-09-07 17:28:16 +02:00
Daniel Mendler
0dfa9da5a6
make tommath_class.h and tommath_superclass.h private
These headers are used for configuration during build time.
Therefore they shouldn't be exposed as part of the public API.
2019-05-21 18:01:17 +02:00
Daniel Mendler
e379c0f734
COMPILE_DEBUG should not disable optimizations
If you additionally want to disable optimizations, define this IGNORE_SPEED macro.
2019-05-21 14:26:14 +02:00
Daniel Mendler
4534056c28
use enums mp_err, mp_ord, mp_bool, mp_sign
* MP_USE_ENUMS enables enums
* Wc++-compat catches some implicit conversions if MP_USE_ENUMS is defined
* 100% backwards compatible API/ABI if MP_USE_ENUMS is not defined
2019-05-13 19:15:14 +02:00
Daniel Mendler
8d71a9e33b
travis: add -fsanitize=undefined 2019-05-12 23:45:36 +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
czurnieden
db76bed220 added autotuning functionality for the Toom-Cook cut-offs 2019-05-06 23:29:08 +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
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
Daniel Mendler
cd1570bb88
split test suite 2019-03-04 01:02:22 +01:00
czurnieden
13bc0b55e9 removed 'arch' command completely 2019-02-28 11:28:07 +01:00
czurnieden
ec79562352 offer alternative to arch 2019-02-27 15:47:28 +01:00
Steffen Jaeckel
50abdb8cd0 continue development 2019-01-28 21:21:49 +01:00
Steffen Jaeckel
7b23243b8e finally last bump 2019-01-23 10:19:58 +01:00
Steffen Jaeckel
5f458dfb95 bump version 2019-01-23 10:11:20 +01:00
Steffen Jaeckel
e543ff319a also bump SO version 2019-01-22 13:49:36 +01:00
Steffen Jaeckel
538cace5cd bump version 2019-01-17 11:03:39 +01:00
Steffen Jaeckel
4cc85c14a6 bump version 2019-01-08 12:02:40 +01:00
Steffen Jaeckel
fb07f33dfc bump version 2018-12-31 11:54:02 +01:00
Karel Miko
4b85095405 fix cygwin build 2018-12-02 17:56:10 +01:00
Alex Arslan
33870d7be2
Make the build logic more robust for BSD systems
This properly sets MAKE on BSDs to gmake rather than make, which refers
to the incompatible BSD Make. Further, it betters detection of Clang as
the default compiler, which is the case on FreeBSD 11.0+ and OpenBSD
6.0+, and it fixes the unrecognized call to arch on FreeBSD.
2018-06-10 14:09:37 -07:00
Steffen Jaeckel
c69c3907c3 rename timing demo 2018-02-27 23:30:43 +01:00
Steffen Jaeckel
a40e32b21c suppress some warnings when compiling with mingw-gcc
[skip ci]
2017-10-10 14:30:01 +02:00
Steffen Jaeckel
29007333fd bump version 2017-08-29 22:27:20 +02:00
Steffen Jaeckel
465933ebf8 disable some compiler warnings 2017-08-29 22:26:54 +02:00
Steffen Jaeckel
e8c27ba7df bump version 2017-08-29 10:48:46 +02:00
Steffen Jaeckel
ac4f48eeec fix install make-target
This fixes #84
2017-08-29 10:40:05 +02:00
Steffen Jaeckel
36ef587709 bump version 2017-08-28 17:04:18 +02:00
Steffen Jaeckel
237b49ad4a correct usage of DESTDIR, PREFIX, etc. for the install make-target
[skip ci]
2017-08-28 15:56:12 +02:00
Steffen Jaeckel
1a2f3bdb7a update clean make-target 2017-08-26 11:12:03 +02:00
Steffen Jaeckel
7cc18ffd11 rename/move some files; fix some stuff regarding this 2017-08-26 11:12:03 +02:00