Steffen Jaeckel
e2f8df3358
fix doc [skip ci]
...
+ ignore bak files generated by latexindent
+ silence latexindent
2019-10-27 21:19:37 +01:00
Daniel Mendler
7afecabd9d
regen files
2019-10-27 19:19:47 +01:00
Daniel Mendler
f662e1f7e1
fix c89 issues
2019-10-27 19:19:47 +01:00
Daniel Mendler
4376913928
remove inttypes.h includes in c89 mode
2019-10-27 18:41:59 +01:00
Daniel Mendler
d27dff92f0
update manual: replace mp_bool/MP_YES/MP_NO references by bool/true/false
2019-10-27 18:41:58 +01:00
Daniel Mendler
8ecf7eaea4
better comment in tommath_c89.h
2019-10-27 18:36:57 +01:00
Daniel Mendler
17d59c2c0f
replace PRIx64 by MP_PRIx64 for c89 mode
2019-10-27 18:36:57 +01:00
Daniel Mendler
cf0042654e
define mp_isodd in terms of mp_iseven
2019-10-27 18:36:56 +01:00
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