Commit Graph

1095 Commits

Author SHA1 Message Date
Steffen Jaeckel
8b5fc198a7
Merge pull request #372 from libtom/rename-and-fixups
Rename and fixups
2019-10-15 14:48:10 +02:00
Daniel Mendler
cb1b2dc879
mp_log_u32: return uint32_t 2019-10-15 14:47:43 +02:00
Steffen Jaeckel
4bbe2cde9c
fix build of demos 2019-10-15 14:47:43 +02:00
Steffen Jaeckel
8825ab6064
improve clean make-target 2019-10-15 14:47:43 +02:00
Steffen Jaeckel
c9d41fba73
rename mp_ilogb() to mp_log_u32() 2019-10-15 14:47:43 +02:00
Steffen Jaeckel
1cc02f2d88
fix build of timing.c 2019-10-15 14:47:43 +02:00
Steffen Jaeckel
8365614f59
Merge pull request #373 from libtom/missing-symbols
add back missing symbols
2019-10-15 14:46:40 +02:00
Steffen Jaeckel
2fefcaa010 copy implementation of mp_to_unsigned_bin_n() to mp_to_signed_bin_n() 2019-10-15 14:21:30 +02:00
Daniel Mendler
049e2e85e2
add back missing symbols 2019-10-15 14:02:44 +02:00
Steffen Jaeckel
4a373ffa64
Merge pull request #367 from czurnieden/ilogb_shortcuts
ilog: added shortcuts for bases that are powers of two
2019-10-15 10:32:53 +02:00
czurnieden
f0a9d3c355 added shortcuts for bases that are powers of two 2019-10-15 10:31:40 +02:00
Steffen Jaeckel
9bf8ce0322
Merge pull request #364 from czurnieden/miller_rabin_rounds_update
Update to list of number of Miller-Rabin trials
2019-10-15 10:28:05 +02:00
czurnieden
3dd542f2fe Changed macro 'LTM_USE_FIPS_ONLY' to 'LTM_USE_ONLY_MR' 2019-10-14 23:05:56 +02:00
czurnieden
cf08afa498 Update to list of number of Miller-Rabin trials 2019-10-14 20:50:48 +02:00
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