Commit Graph

1281 Commits

Author SHA1 Message Date
Steffen Jaeckel
7ed752222a
Merge pull request #365 from fperrad/20191010_lint
some linting
2019-10-14 14:18:37 +02:00
Francois Perrad
5a4e81c1ea literal suffix 2019-10-10 20:33:01 +02:00
Francois Perrad
e3eb13e4b6 use same parameter name as in the prototype 2019-10-10 20:32:57 +02:00
Francois Perrad
b19750633c use literal char 2019-10-10 20:32:53 +02:00
Steffen Jaeckel
67c099ee8c
Merge pull request #361 from libtom/pack_unpack_buf
add mp_pack/unpack and MP_BUF error
2019-10-10 18:44:00 +02:00
Daniel Mendler
b4f7d8d4c8
test: use malloc/free
tests are library consumers, MP_MALLOC is an internal macro
2019-10-09 20:46:44 +02:00
Daniel Mendler
fe2f91a1b8
to_sbin/to_ubin/pack: don't write anything in case of buffer overflow 2019-10-09 20:46:41 +02:00
Daniel Mendler
6e3dae5625
add MP_BUF error 2019-10-08 22:30:29 +02:00
czurnieden
b6813a4122
replace mp_export/import by mp_pack/unpack 2019-10-08 22:30:25 +02:00
Steffen Jaeckel
c5b901b917
Merge pull request #360 from fperrad/20191007_lint
some linting
2019-10-07 20:20:09 +02:00
Francois Perrad
b2d29b4334 explicit operator precedence 2019-10-07 19:23:38 +02:00
Steffen Jaeckel
ce98f3675d
Merge pull request #348 from czurnieden/to_radix_returns_length_converted
make mp_to_radix return the count of characters of the converted number
2019-10-07 16:09:37 +02:00
czurnieden
71d1b7b9d8 make mp_to_radix return the count of characters of the converted number 2019-10-06 21:26:49 +02:00
Steffen Jaeckel
bd7bf50c94 Merge branch 'pr/359' into develop 2019-10-06 21:13:03 +02:00
czurnieden
d68e28771d bugfix for an edgecase 2019-10-06 21:12:04 +02:00
Steffen Jaeckel
0018bf4a92
Merge pull request #358 from fperrad/20191006_lint
some linting
2019-10-06 21:09:50 +02:00
Francois Perrad
8adc0fc328 literal suffix 2019-10-06 16:16:04 +02:00
Francois Perrad
62a09c66ca all computation on unsigned 2019-10-06 16:16:02 +02:00
Francois Perrad
d2b739ee18 don't overwrite MP_VAL value 2019-10-06 16:15:56 +02:00
Francois Perrad
763b40b490 use same parameter name as in the prototype 2019-10-06 16:15:53 +02:00
Steffen Jaeckel
3da2842939
Merge pull request #354 from czurnieden/refactor_bigendian_storage
refactored functions to read and write binaries
2019-10-06 14:59:04 +02:00
czurnieden
abdb033402 Refactored functions to read and write binaries and added "maxlen" 2019-10-06 03:38:16 +02:00
Steffen Jaeckel
24ed43d5b4
Merge pull request #340 from libtom/improve-demo-timing
Improve demo timing
2019-10-06 02:02:30 +02:00
Steffen Jaeckel
4ebdaca223 "fix" warnings 2019-10-05 19:47:24 +02:00
Steffen Jaeckel
baff51e9f2 allow to run specific timing tests 2019-10-05 19:47:24 +02:00
Steffen Jaeckel
47ab9c60d8 fix printf 2019-10-05 19:47:24 +02:00
Steffen Jaeckel
12873fb6f7
Merge pull request #342 from libtom/refactor-tune
Refactor tune
2019-10-04 14:28:52 +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
6caeaf2912 add registry 2019-10-03 20:12:34 +02:00
Steffen Jaeckel
538a513ec5 use MP_HAS() 2019-10-03 20:12:34 +02:00
Steffen Jaeckel
8bd23b0cd4 add get/set_cutoffs() 2019-10-03 20:12:34 +02:00
Steffen Jaeckel
9a51b12957 exit instead of segfault 2019-10-03 20:12:34 +02:00
Steffen Jaeckel
b7eb89c3c6 re-write median calculation 2019-10-01 09:03:27 +02:00
Steffen Jaeckel
41b6f29165 always run the tune make target 2019-10-01 09:03:27 +02:00
Steffen Jaeckel
eca1a49bd3 add s_strtol() 2019-10-01 09:03:27 +02:00
Steffen Jaeckel
2b1c83bdd4 refactor the 4 equal loops into a run function 2019-10-01 09:03:27 +02:00
Steffen Jaeckel
d0c6a8d5db put parameters into struct 2019-10-01 09:03:27 +02:00
Steffen Jaeckel
0da3c65b3e
Merge pull request #352 from libtom/dedup-test-binary
Deduplicate the test binary
2019-10-01 09:01:23 +02:00
Steffen Jaeckel
f8d64c645a create mtest_opponent instead of alt version of test 2019-09-30 23:44:49 +02:00
Steffen Jaeckel
6e160216b0
Merge pull request #347 from fperrad/20190907_refactor
some refactoring
2019-09-10 09:36:31 +02:00
Francois Perrad
ffdd008dda use MP_DIGIT_MAX instead of MP_MASK 2019-09-09 18:53:34 +02:00
Steffen Jaeckel
d6a8de54f6
Merge pull request #351 from czurnieden/deprecating_eight_bit_warning
Add message that MP-8BIT is deprecated
2019-09-09 17:37:48 +02:00
czurnieden
1cb8a22933 removed tests for MP_8BIT from travis 2019-09-09 16:13:46 +02:00
czurnieden
6b0caef471 add message that MP-8BIT is deprecated 2019-09-09 15:55:45 +02:00
Steffen Jaeckel
c884b64ffb
Merge pull request #350 from czurnieden/travis_valgrind_logname
added printing of valgrind log to travis.yml in case of error
2019-09-09 11:51:27 +02:00
czurnieden
33f4280e45 added printing of valgrind log to travis.yml in case of error 2019-09-09 04:26:59 +02:00
Steffen Jaeckel
287cdf54c2
Merge pull request #346 from fperrad/20190907_fix
fix mp_to_radix
2019-09-08 13:45:24 +02:00
Francois Perrad
642ef5b08f fix mp_to_radix
remove an assignment which could overwrite the one with MP_VAL

caused by a conflict between 2 recent commits
 - refactor with goto
 - return error if output-buffer is too small
2019-09-07 19:07:17 +02:00
Steffen Jaeckel
c63799c392
Merge pull request #341 from libtom/improve-tests
Improve tests
2019-09-07 17:41:09 +02:00
Steffen Jaeckel
234d474fe6 only run tests if the module is available 2019-09-07 17:28:16 +02:00