Commit Graph

1347 Commits

Author SHA1 Message Date
Steffen Jaeckel
4500d066c1 also no MP_WUR in mtest_opponent() 2019-10-29 14:41:33 +01:00
Steffen Jaeckel
b250ec44e0 clean-up test.c
* no more `MP_WUR` in test.c
* clean-up console output
2019-10-29 13:24:34 +01:00
Steffen Jaeckel
8bf82f9435
Merge pull request #425 from libtom/replace-gen-by-cat
replace gen.pl by cat, rename mpi.c to mp_all.c
2019-10-29 08:44:03 +01:00
Steffen Jaeckel
d800071e81 ignore&clean tommath_amalgam.c [skip ci] 2019-10-28 16:36:40 +01:00
Steffen Jaeckel
a598e61b90 rename to tommath_amalgam.c 2019-10-28 15:42:23 +01:00
Steffen Jaeckel
02f4ee114c compare logs before and after single-object profiling 2019-10-28 15:31:36 +01:00
Steffen Jaeckel
04ee1e75d7 improve demo/timing a bit
* less verbose output on console
* allow changing name for logs
* pre-heat caches before starting the timing
2019-10-28 15:31:36 +01:00
Steffen Jaeckel
8e3a440464
use pre_gen/mp_all.c for profiled_single
+ clean-up defines
2019-10-28 15:29:54 +01:00
Steffen Jaeckel
43804ed732
remove logs and generated PNG's
this fixes #423
2019-10-28 15:29:54 +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
da8b978785
Merge pull request #426 from libtom/rework-read-radix
mp_read_radix and mp_fread should behave the same
2019-10-28 15:29:30 +01:00
Daniel Mendler
a5d5b10154
mp_read_radix and mp_fread should behave the same 2019-10-27 23:51:38 +01:00
Steffen Jaeckel
50abc11a26
Merge pull request #422 from libtom/remove-ltm-rng
remove ltm_rng (deprecated function)
2019-10-27 22:10:25 +01:00
Daniel Mendler
85699be1ac
remove ltm_rng (deprecated function) 2019-10-27 22:09:53 +01:00
Steffen Jaeckel
bde40c44a9
Merge pull request #421 from libtom/doc-fix
manual: don't mention obsolete MP_DIV_SMALL
2019-10-27 22:06:11 +01:00
Daniel Mendler
2122b51139
manual: don't mention obsolete MP_DIV_SMALL 2019-10-27 21:53:17 +01:00
Steffen Jaeckel
baabf5633f
Merge pull request #405 from libtom/add-sub-opt
stdbool/stdint refactoring, various optimizations/simplifications
2019-10-27 21:22:53 +01:00
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