Steffen Jaeckel
7bc487fe8b
Merge pull request #298 from libtom/fix-appveyor
...
fix appveyor.yml
2019-05-27 15:33:41 +02:00
Steffen Jaeckel
d2076fdd11
move test execution into test stage
2019-05-27 15:12:31 +02:00
Steffen Jaeckel
497ea474bb
try to fix yaml
2019-05-27 12:35:10 +02:00
Steffen Jaeckel
04c850493f
Merge pull request #297 from libtom/msvc-fixes
...
Msvc fixes (appveyor works!)
2019-05-26 23:41:47 +02:00
Daniel Mendler
6ce1bcb396
add appveyor.yml: test both vc2015 and vc2017
2019-05-26 11:47:34 +02:00
Daniel Mendler
4b475aca03
fixes for msvc
2019-05-26 11:47:26 +02:00
Karel Miko
9578d671fa
fix invalid OBJECTS=... definition in makefile.msvc
2019-05-25 23:11:17 +02:00
Steffen Jaeckel
8e1704d8fe
Merge pull request #288 from libtom/deprecate-is-divisible
...
deprecate mp_prime_is_divisible and ltm_prime_tab
2019-05-24 12:52:20 +02:00
Daniel Mendler
bcec605af5
deprecate mp_prime_is_divisible and ltm_prime_tab
...
* it is an implementation detail used for prime testing
* there is upcoming work by @czurnieden regarding a generalised prime sieve
* furthermore remove jacobi test (replaced by kronecker)
2019-05-24 12:30:55 +02:00
Steffen Jaeckel
50f0bd750e
Merge pull request #290 from libtom/private-mp-prec
...
MP_PREC is an internal macro, it should be defined in tommath_private.h
2019-05-24 12:30:29 +02:00
Daniel Mendler
c7a7bd47af
MP_PREC is an internal macro, it should be defined in tommath_private.h
2019-05-24 12:26:50 +02:00
Steffen Jaeckel
3000eaa48d
Merge pull request #291 from libtom/simpler-mp-digit-bit
...
disallow defining MP_DIGIT_BIT, only allow MP_8/16/31/32/64BIT
2019-05-24 12:26:25 +02:00
Daniel Mendler
b0938d70f3
remove obsolete comment
2019-05-24 11:57:47 +02:00
Daniel Mendler
9f607dd5eb
disallow defining MP_DIGIT_BIT, only allow MP_8/16/31/32/64BIT
2019-05-24 11:57:47 +02:00
Steffen Jaeckel
e82c42a80b
Merge pull request #273 from czurnieden/cleanup_prime_is_prime
...
prime_is_prime: remove obsolete restriction on PRIME_SIZE
2019-05-24 11:48:29 +02:00
Christoph Zurnieden
47af7bf2a9
remove no-deterministic M-R-only tests
2019-05-24 11:29:24 +02:00
Steffen Jaeckel
20ae9fbafd
Merge pull request #285 from libtom/set-int3
...
introduce mp_set_sint and mp_set_uint functions with precise types
2019-05-24 11:23:24 +02:00
Daniel Mendler
0a9f5e9bc1
use u32 i64 suffix
2019-05-24 10:21:54 +02:00
Daniel Mendler
d7e1cb4a09
another proposal: use _ul and _l for the long macros
2019-05-24 00:15:57 +02:00
Daniel Mendler
b58c996686
use int32 and uint32 instead of sint and uint
2019-05-24 00:15:57 +02:00
Daniel Mendler
d795985497
improve comment in tommath.h, extend .gitignore
2019-05-24 00:15:57 +02:00
Daniel Mendler
3289c9590b
introduce various mp_set_sint/mp_set_uint functions with precise types
2019-05-24 00:15:57 +02:00
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