Steffen Jaeckel
51512f99f0
Merge pull request #289 from libtom/static-assert
...
add MP_STATIC_ASSERT
2019-05-23 23:22:11 +02:00
Daniel Mendler
18f6e4648b
add MP_STATIC_ASSERT
2019-05-23 16:00:31 +02:00
Steffen Jaeckel
07c1898754
Merge pull request #287 from fperrad/20190522_lint
...
some linting
2019-05-22 11:53:57 +02:00
Francois Perrad
7fdd6b507d
literal suffix instead of cast
2019-05-22 10:33:12 +02:00
Francois Perrad
7ffc562d28
literal suffix
2019-05-22 08:23:53 +02:00
Francois Perrad
9a8b2ecb02
explicit operator precedence
2019-05-22 08:23:49 +02:00
Francois Perrad
991aea532f
explicit condition
2019-05-22 08:23:37 +02:00
Steffen Jaeckel
e8ae3e8309
Merge pull request #265 from czurnieden/faster_toom_cook_three
...
faster Toom-Cook 3 algorithms
2019-05-22 07:59:33 +02:00
czurnieden
228e487bc4
faster Toom-Cook 3 algorithm
2019-05-21 23:44:13 +02:00
Steffen Jaeckel
c99a88e790
Merge pull request #266 from fperrad/20190517_lint
...
more linting
2019-05-21 23:03:48 +02:00
Francois Perrad
d3cbfd587d
remove useless semicolon
2019-05-21 20:23:16 +02:00
Francois Perrad
330b980d49
literal char
2019-05-21 20:23:16 +02:00
Francois Perrad
8d73e158df
literal suffix
2019-05-21 20:23:16 +02:00
Francois Perrad
a4f9818b71
more cast
2019-05-21 20:23:16 +02:00
Francois Perrad
5f84f87fbf
explicit operator precedence
2019-05-21 20:23:16 +02:00
Francois Perrad
3cf0c18883
const pointer
2019-05-21 20:23:16 +02:00
Steffen Jaeckel
3f2d891f45
Merge pull request #279 from libtom/deprecate-bitwise2
...
deprecate mp_tc_(and|or|xor) in favor of mp_(and|or|xor)
2019-05-21 18:52:31 +02:00
Daniel Mendler
1af0de1f91
deprecate mp_tc_(and|or|xor) in favor of mp_(and|or|xor)
...
* same behavior for positive numbers
* generalisation for negative numbers, treating them as two complement
* improve algorithm, iterate once over the digits, manually perform two complement
* simplify mp_add_d, mp_sub_d
* functions are safe in case of a==c or b==c
* renamed mp_tc_div_2d to mp_signed_rsh (signed right shift)
2019-05-21 18:28:11 +02:00
Steffen Jaeckel
aeeea0d7cb
Merge pull request #277 from libtom/fix-fread
...
handle EOF condition in mp_fread, fix #163
2019-05-21 18:24:44 +02:00
Daniel Mendler
6552f55f78
handle EOF condition in mp_fread, fix #163
2019-05-21 18:23:43 +02:00
Steffen Jaeckel
fd7cb14ad9
Merge pull request #283 from czurnieden/callgraph_on_demand
...
remove callgraph.txt from repository
2019-05-21 18:17:29 +02:00
czurnieden
6e01c2b8d8
remove callgraph.txt from repository
2019-05-21 18:12:33 +02:00
Steffen Jaeckel
bdd3ee0287
Merge pull request #275 from libtom/hidden-symbols
...
introduce MP_PRIVATE to hide symbols
2019-05-21 18:11:39 +02:00
Daniel Mendler
bd8f7e55e6
introduce MP_PRIVATE to hide symbols (opt-in for now)
2019-05-21 18:08:02 +02:00
Steffen Jaeckel
28290072b6
Merge pull request #276 from libtom/fix-137
...
fix #137
2019-05-21 18:05:56 +02:00
Daniel Mendler
a069512b71
fix #137
2019-05-21 18:05:30 +02:00
Steffen Jaeckel
22768cf08c
Merge pull request #271 from libtom/private-headers
...
make tommath_class.h and tommath_superclass.h private
2019-05-21 18:04:47 +02:00
Daniel Mendler
0dfa9da5a6
make tommath_class.h and tommath_superclass.h private
...
These headers are used for configuration during build time.
Therefore they shouldn't be exposed as part of the public API.
2019-05-21 18:01:17 +02:00
Steffen Jaeckel
7345a6826f
Merge pull request #270 from libtom/macro-fixes
...
Macro fixes
2019-05-21 16:27:11 +02:00
Daniel Mendler
87edbfe42a
ensure that bn_reverse is compiled in bn_deprecated.c
2019-05-21 15:58:06 +02:00
Daniel Mendler
69f03b3aab
gitignore doc/pics/*.ps
2019-05-21 15:58:06 +02:00
Daniel Mendler
6d84f15e53
remove comment in bn_deprecated
2019-05-21 15:58:06 +02:00
Daniel Mendler
dac8275e1b
fix mp_jacobi ifdef
2019-05-21 15:58:06 +02:00
Daniel Mendler
6631d42664
remove __cplusplus stuff from tommath_private.h
...
tommath_private.h is an internal header which won't be included
by a C++ source file.
2019-05-21 15:58:06 +02:00
Steffen Jaeckel
96b5552cb9
Merge pull request #267 from libtom/private_mp_word
...
make mp_word private
2019-05-21 15:57:38 +02:00
Daniel Mendler
0b840b78a3
make mp_word private
...
mp_word is an internal type and it is problematic if it is exposed
in the public api. See for example #216 - MSVC does not support 128 bit
mp_words. But it is perfectly ok to use those internally in the library,
as long as the library is compiled with GCC.
2019-05-21 15:34:04 +02:00
Steffen Jaeckel
e9c4590d4e
Merge pull request #280 from czurnieden/toom_cook_2_3_tests
...
Tests for Karatsuba and Toom-Cook 3-way
2019-05-21 15:23:31 +02:00
czurnieden
03ca7bcdae
added tests for Karatsuba and Toom-Cook 3-way
2019-05-21 15:21:39 +02:00
Steffen Jaeckel
75d3c57a15
Merge pull request #282 from libtom/restrict-v-algrind
...
Restrict running Valgrind
2019-05-21 15:20:46 +02:00
Steffen Jaeckel
2555884f34
really last one - reorder once more
...
so all long-running jobs start in the beginning
[skip ci]
2019-05-21 15:20:05 +02:00
Daniel Mendler
55ce3e350a
last last one - mtest with real rand on gcc, with prng on clang
2019-05-21 14:58:05 +02:00
Steffen Jaeckel
f8ecaf05c5
ok, a last one - reorder stuff ;-)
...
[skip ci]
2019-05-21 14:56:01 +02:00
Daniel Mendler
c09efffbde
Run gcc 4.9 build on valgrind instead of sanitized clang build
2019-05-21 14:50:44 +02:00
Daniel Mendler
77b42459c5
ok, one more - disable gcc mtest-vs-test runs, only run clang tests
...
[skip ci]
2019-05-21 14:44:50 +02:00
Daniel Mendler
e379c0f734
COMPILE_DEBUG should not disable optimizations
...
If you additionally want to disable optimizations, define this IGNORE_SPEED macro.
2019-05-21 14:26:14 +02:00
Daniel Mendler
f92d8f0a12
COMPILE_DEBUG=1 for the valgrind build
2019-05-21 13:54:18 +02:00
Steffen Jaeckel
30361df573
v-algrind and tune builds to the beginning
...
... as they take the longest time
2019-05-21 13:49:19 +02:00
Daniel Mendler
5c7b9180b7
run tuner only once during CI
2019-05-21 13:43:06 +02:00
Steffen Jaeckel
01e93bb0fc
fix tune for non-v-algrind travis builds
2019-05-21 13:25:24 +02:00
Daniel Mendler
ce34b3aec2
Restrict running Valgrind
...
* Activate on the develop branch
* Activate on branches containing the word v-algrind (without hyphen)
* Activate if the commit message contains v-algrind (without hyphen)
* Run default build always with valgrind
2019-05-21 13:03:31 +02:00