Commit Graph

1322 Commits

Author SHA1 Message Date
Daniel Mendler
17a846f2bc
add "make c99" to convert back 2019-10-27 18:36:56 +01:00
Daniel Mendler
9f01ba14bc
add "testme.sh --c89" and "make c89"
* replace int*_t and bool by custom typedefs
* the result is tested in CI
2019-10-27 18:36:56 +01:00
Daniel Mendler
bf9507a9d4
replace mp_bool by stdbool
* This gives the advantage that static analysis **understands** bool,
  but complains about using an enum type instead of bool.

* If stdbool.h is not desired, true/false/bool can be replaced using sed
  as in the no-stdint-h branch.

* We already include stdint.h and stdbool.h is not more harmful than
  this header
2019-10-27 18:36:56 +01:00
Daniel Mendler
c91c1ba2b1
rework mp_add_d and mp_sub_d 2019-10-27 18:36:56 +01:00
Daniel Mendler
58fb93fd79
cleanup prime rand function 2019-10-27 18:36:56 +01:00
Daniel Mendler
27e142bc43
remove unnecessary == MP_YES/MP_NO comparisons 2019-10-27 18:36:55 +01:00
Daniel Mendler
a44e68e652
remove MP_IS_* macros 2019-10-27 18:36:55 +01:00
Daniel Mendler
f8b2f5d6fe
s_mp_reverse is only used by mp_to_radix 2019-10-27 18:36:55 +01:00
Daniel Mendler
eb70378bfb
mp_iseven/mp_isodd should be inline 2019-10-27 18:36:55 +01:00
Daniel Mendler
f21ea6ce18
add fast path to mp_add_d and mp_sub_d 2019-10-27 18:36:53 +01:00
Steffen Jaeckel
68c1594890
Merge pull request #410 from czurnieden/update_manual
Cleanup and update of manual
2019-10-27 16:32:10 +01:00
Steffen Jaeckel
8862ca830e fix index
added new API functions found by `helper.pl -d`

removed old API functions found via

```sh
awk -F',' '/item/ {print $1}' doc/bn.ind | \
	awk '/mp/ {print $2}' | \
	sed -e 's/\\//g' | \
	xargs -I {} sh -c "grep -q {} tommath.h || echo {}"
```
2019-10-27 16:29:30 +01:00
Steffen Jaeckel
9d954dc819 also check doc when running helper.pl -a 2019-10-27 16:19:02 +01:00
Steffen Jaeckel
59ee1416a0 fix ./helper.pl -d 2019-10-27 15:48:38 +01:00
czurnieden
2efbdd543c
more clean-ups and addition of a latexinden.pl configuration file 2019-10-27 14:57:37 +01:00
czurnieden
3947ffda95
backup 2019-10-27 14:57:37 +01:00
czurnieden
8b31c193bf
Cleanup and update of manual 2019-10-27 14:57:37 +01:00
Steffen Jaeckel
19424313bf
Merge pull request #402 from fperrad/20191023_lint
some linting
2019-10-27 14:51:05 +01:00
Francois Perrad
814d0387a6 literal suffix 2019-10-27 14:27:53 +01:00
Francois Perrad
f2efe74676 more cast 2019-10-27 14:27:53 +01:00
Steffen Jaeckel
14dbad6d84
Merge pull request #414 from libtom/fix-comments-fast
Fix some comments
2019-10-27 13:16:14 +01:00
nijtmans
b26bd5082e
Fix some comments 2019-10-27 13:15:35 +01:00
Steffen Jaeckel
5a0c39f52e
Merge pull request #412 from libtom/fix-win32-includes
fix win32 includes, remove support for everything older than Windows XP
2019-10-27 13:15:16 +01:00
nijtmans
a8ca1c3cc6
fix win32 includes, remove support for everything older than Windows XP 2019-10-27 13:14:28 +01:00
Steffen Jaeckel
a478990882
Merge pull request #413 from libtom/ignore-eclipse-settings
Ignore Eclipse .settings directory
2019-10-27 13:14:13 +01:00
nijtmans
867f08b057
Ignore Eclipse .settings directory 2019-10-27 13:13:40 +01:00
Steffen Jaeckel
8e21616ab2
Merge pull request #411 from fperrad/20191024_lint
some linting
2019-10-27 13:12:28 +01:00
Daniel Mendler
c4622f53c8
only include tommath_private.h 2019-10-24 21:44:55 +02:00
Francois Perrad
17afe155f0 needs mp_word 2019-10-24 18:26:34 +02:00
Francois Perrad
9051694850 literal suffix 2019-10-24 18:26:31 +02:00
Francois Perrad
d0e26bb3ff explicit operator precedence 2019-10-24 18:26:25 +02:00
Steffen Jaeckel
2bd76ac166
Merge pull request #408 from libtom/comment-fix-in-helper
Fix comment in helper.pl
2019-10-24 10:13:41 +02:00
nijtmans
448d00804d Fix commit in helper.pl 2019-10-24 08:47:17 +02:00
Steffen Jaeckel
a69babcfe6
Merge pull request #403 from libtom/log2
move out s_mp_log_pow2, fix limitation of base
2019-10-24 08:44:59 +02:00
Daniel Mendler
87b4e51794
move out s_mp_log_pow2, fix limitation of base 2019-10-23 19:18:15 +02:00
Steffen Jaeckel
e1994d99ff
Merge pull request #400 from libtom/rename-cutoffs
add prefix to cutoff variables
2019-10-23 18:23:51 +02:00
Daniel Mendler
14642642f9
add prefix to cutoff variables 2019-10-23 18:21:57 +02:00
Steffen Jaeckel
121973fc6b
Merge pull request #399 from libtom/private-mp-word
remove private_mp_word
2019-10-23 18:20:22 +02:00
Daniel Mendler
00b263f303
remove private_mp_word 2019-10-23 18:19:16 +02:00
Steffen Jaeckel
4bab432cec
Merge pull request #397 from libtom/bbs-style
mp_prime_next_prime: use mp_bool for bbs_style
2019-10-23 18:18:02 +02:00
Steffen Jaeckel
3180c66ca6 also use MP_YES/NO in tests 2019-10-23 18:17:20 +02:00
Daniel Mendler
31e64aa640
mp_prime_next_prime: use mp_bool for bbs_style 2019-10-23 18:14:55 +02:00
Steffen Jaeckel
1f210d2945
Merge pull request #370 from czurnieden/recursive_division
Addition of fast division (recursive divrem only)
2019-10-23 18:13:49 +02:00
czurnieden
9edd185f66 Addition of fast division (recursive divrem only) 2019-10-22 21:02:18 +02:00
Steffen Jaeckel
6378a90a70
Merge pull request #396 from libtom/radix-size-t
use size_t for mp_radix_size
2019-10-22 15:08:28 +02:00
Daniel Mendler
a29aa59baa
use size_t for mp_radix_size 2019-10-22 14:25:58 +02:00
Steffen Jaeckel
1d0affc0a9 update version 2019-10-22 11:54:34 +02:00
Steffen Jaeckel
78d0c0c843 fix date in changelog...again :-\
[skip ci]
2019-10-22 11:53:41 +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
6ca6898bf3 Merge branch 'release/1.2.0' 2019-10-22 11:44:44 +02:00