Commit Graph

368 Commits

Author SHA1 Message Date
Francois Perrad 32e710ae07 remove trailing spaces 2017-12-06 16:30:10 +01:00
Steffen Jaeckel 4f6420bc02 Merge pull request #95 from libtom/improve/travis
create a travis build matrix
2017-10-19 13:56:19 +02:00
Steffen Jaeckel aaa52a3d71 also run test vs mtest with real random data 2017-10-19 12:01:58 +02:00
Steffen Jaeckel e156e7efcf fix clang build for MP_{8,16}BIT 2017-10-19 11:47:29 +02:00
Steffen Jaeckel d5328bfade create a travis build matrix 2017-10-19 11:47:29 +02:00
Steffen Jaeckel 1ca973b6b8 Merge pull request #94 from fperrad/20171018_cast
restore previous cast
2017-10-19 09:46:36 +02:00
Francois Perrad c098e37e2f restore previous cast
avoid warning with gcc -mx32
    left shift count >= width of type [-Wshift-count-overflow]

avoid infinite loop at run time
2017-10-19 05:51:17 +02:00
Steffen Jaeckel faea5da30a Merge pull request #43 from fperrad/20151127_lint
lintings and more

This fixes #71
2017-10-15 22:35:08 +02:00
Francois Perrad 3f8e0b62b2 add name of parameters 2017-10-15 19:58:52 +02:00
Francois Perrad 43c26b3a3d use same parameter name between prototype declaration and definition 2017-10-15 19:58:50 +02:00
Francois Perrad 6b191732da remove extra whitespaces 2017-10-15 19:58:47 +02:00
Francois Perrad dabf9217a1 add parentheses for explicit operator precedence 2017-10-15 19:58:44 +02:00
Francois Perrad f1d6c88759 refactor cast 2017-10-15 19:58:35 +02:00
Francois Perrad bdbed00079 literal suffix 2017-10-15 19:57:12 +02:00
Francois Perrad 40c763a18d literal suffix in call function 2017-10-15 16:11:09 +02:00
Steffen Jaeckel d0cb8ba954 Merge branch 'better/read_radix' into develop
This closes #92
2017-10-15 12:03:10 +02:00
Steffen Jaeckel 0a7ecc3bd4 add the inverse of mp_s_rmap 2017-10-15 12:03:00 +02:00
Steffen Jaeckel 6a268ef463 Merge branch 'fix/54' into develop
This closes #54
2017-10-15 12:01:52 +02:00
Steffen Jaeckel 1bc0088330 use correct printf format specifier in timing.c
This fixes #54
2017-10-15 12:01:38 +02:00
Steffen Jaeckel efcac86cac Merge branch 'fix/67' into develop
This closes #67
2017-10-15 12:01:15 +02:00
Steffen Jaeckel 8dbfaff04e Handle corner-cases of invmod()
This fixes #67
2017-10-15 12:01:04 +02:00
Steffen Jaeckel 6fa127b707 add testcase for #67 2017-10-15 12:01:04 +02:00
Steffen Jaeckel 5bb73c6f74 Merge branch 'fix/issues' into develop
This closes #90
2017-10-15 12:00:26 +02:00
Steffen Jaeckel 356084ee31 improve mp_lshd
This fixes #61
2017-10-15 12:00:11 +02:00
Steffen Jaeckel 1d03522625 make sure fast_s_mp_mul_digs() doesn't BOF
This fixes #60 and #80
2017-10-15 12:00:11 +02:00
Steffen Jaeckel a4d905a030 make sure fast_mp_montgomery_reduce() doesn't BOF
This fixes #63
2017-10-15 12:00:11 +02:00
Steffen Jaeckel e9ce32a16d improve README 2017-10-14 18:50:04 +02:00
Steffen Jaeckel 7800276855 Merge pull request #91 from libtom/fix/microsoft_build
there's no __int128 on MSVC, fall back to 32bit MPI's
2017-10-10 14:30:51 +02:00
Steffen Jaeckel a40e32b21c suppress some warnings when compiling with mingw-gcc
[skip ci]
2017-10-10 14:30:01 +02:00
Steffen Jaeckel d1fc4a71d3 LLP64 indicates a windows environment
as of [1] the only architecture using a LLP64 data model is windows

[1]: https://en.wikipedia.org/wiki/64-bit_computing
2017-10-03 15:18:33 +02:00
Steffen Jaeckel 1346d9830a there's no __int128 on MSVC, fall back to 32bit MPI's 2017-10-03 09:19:50 +02:00
Steffen Jaeckel fd81ac754a Merge pull request #88 from libtom/const_api
Add 'const' keyword in various places. Adopted from Tcl
2017-10-02 17:13:56 +02:00
Francois Perrad d293ab6604 more constify 2017-09-30 22:57:00 +02:00
nijtmans f674018a41 constify remaining functions 2017-09-20 16:59:43 +02:00
Steffen Jaeckel eca200d7cf fix mp_cmp() and mp_cmp_mag() API 2017-09-20 15:02:52 +02:00
nijtmans 41de585524 Add 'const' keyword in various places. Adopted from Tcl 2017-09-19 13:35:15 +02:00
Steffen Jaeckel 5aec0c4094 add `astyle` make target 2017-09-15 12:47:06 +02:00
Steffen Jaeckel fedc15b625 Merge pull request #85 from fperrad/20170830_format
rebase formating code
2017-09-15 12:46:38 +02:00
Francois Perrad 2344bcea3a format with astyle (step 6) 2017-08-30 20:23:46 +02:00
Francois Perrad e2cd147a46 generate tommath_class.h with astyle format
(refactor with heredoc)
2017-08-30 20:23:28 +02:00
Francois Perrad f89cda034b format with astyle (step 5) 2017-08-30 20:23:26 +02:00
Francois Perrad a20d9b102c format with astyle (step 4) 2017-08-30 20:23:22 +02:00
Francois Perrad 4439fae168 format with astyle (step 3) 2017-08-30 20:23:20 +02:00
Francois Perrad 9eed07f09b format with astyle (step 2) 2017-08-30 20:23:17 +02:00
Francois Perrad 45771cc91c format with astyle (step 1) 2017-08-30 20:09:49 +02:00
Francois Perrad 71266b3eb9 format block 2017-08-30 20:09:38 +02:00
Francois Perrad ef6c71f1d2 return type of function on the same line 2017-08-30 20:09:32 +02:00
Francois Perrad cdbb9ca925 fix format 2017-08-30 20:09:28 +02:00
Francois Perrad 82a2d385db refactor indentation of preprocessor directives 2017-08-30 20:09:16 +02:00
Francois Perrad aab1b3d99f split label & statement 2017-08-30 20:09:13 +02:00