Commit Graph

216 Commits

Author SHA1 Message Date
Brian Gladman
33be9007f9 fix bug in mpz_n_pow_ui that failed for exponents longer than 32 bits 2022-01-05 00:19:39 +00:00
Brian Gladman
24961f93c5 Only add functions mpz_get_2exp_d and mpf_get_2exp_d on Windows 2018-02-27 10:00:55 +00:00
Brian Gladman
c7567b5ad9 Remove __GMP_PROTO and _PROTO crap from the MPIR source code 2018-02-25 09:02:47 +00:00
Brian Gladman
2e1c2e6849 add two new functions to ease the 32/64-bit integer length problem of Windows x64 2018-01-25 17:30:22 +00:00
Simon Sobisch
fc047ca036 Update inp_str.c
...removing stray unicode characters that got in via GitHub editor....
2017-10-14 17:06:26 +02:00
Simon Sobisch
c74e003b6e fix compilation with i586-pc-msdosdjgpp (using GCC 4.7.3)
GCC raised a warning "mpz_inp_str_nowhite not defined, defined implicit" and directly afterwards error on the conflicting definition.
I've actually not checked why it is not defined nor why the implicit definition is different - but swapping these two functions lead to a working compilation...
2017-10-14 16:14:44 +02:00
Brian Gladman
a37a985075 remove duplicated macro in export.c 2017-02-21 17:11:57 +00:00
Jean-Pierre Flori
28d2620ddf Untrack autotools generated files. 2017-02-15 11:14:40 +00:00
William Hart
58a7e98fcd Run autoreconf. 2017-02-14 15:01:24 +00:00
William Hart
44d5c89b2d Fix more gmp.h -> mpir.h. 2017-02-14 11:23:13 +00:00
William Hart
7180e50d46 Fix gmp.h -> mpir.h. 2017-02-14 10:57:34 +00:00
William Hart
7794ae01b4 Fix merge of new mpz_powm, mpz_powm_ui code. 2017-02-13 17:24:01 +00:00
Jean-Pierre Flori
feb4d44508 Merge branch 'master' into powm
Conflicts:
	configure.ac
	gmp-impl.h
2017-02-13 16:42:13 +00:00
William Hart
29e4538dac Update implementation of get_str, hopefully fixing a reported issue #170. 2017-02-13 15:16:37 +00:00
William Hart
79379c1027 Update *nix build for limbs, roinit_n and sizeinbase files. 2017-02-13 11:13:04 +00:00
Brian Gladman
16b79b74a7 add five mpz limbs routines and one test (from GMP) 2017-02-09 14:54:10 +00:00
Marcel Keller
43ead0838f Preserve sign when converting. 2016-09-19 11:43:54 +01:00
wbhart
88bda20ed0 Merge pull request #169 from adyache/master
MPIR.Net solutions added for Visual Studio 2012, 2013, and 2015.
2016-08-03 01:15:35 +02:00
Brian Gladman
b84e7e24ca remove 'long/long long' pointer bug on Windows x64 2016-06-18 13:27:19 +01:00
Alex Dyachenko
05c71611a9 Moved MPIR.Net-specific symbols from gmp-h.in to gmp-impl.h. Added comments in inp_raw.c and out_raw.c to document the changes. 2016-03-28 09:23:58 -04:00
Alex Dyachenko
914844ebb3 Merge branch 'master' of github.com:wbhart/mpir 2015-12-22 16:09:19 -05:00
Jean-Pierre Flori
58844207ae Merge remote-tracking branch 'wbhart/master' into powm
Conflicts:
	configure.ac
2015-07-22 04:57:48 -07:00
William Hart
acd49c3818 INCLUDES -> AM_CPPFLAGS as per autoreconf advice. 2015-06-09 17:21:21 +00:00
William Hart
33c8ccc034 Ran autoreconf -fiv --no-recursive. 2015-06-09 15:50:53 +00:00
William Hart
bb15e496b6 Remove some compiler warnings. 2014-06-16 14:37:08 +01:00
Jean-Pierre Flori
2091276c4a Draft commit to merge GMP powm code into MPIR. 2014-04-30 16:14:11 +02:00
Alex Dyachenko
adb5be1ece String IO. Completed MPIR 2.6.0 section 5.12. 2014-04-23 20:44:37 -04:00
Alex Dyachenko
607caf6b7e Raw binary IO. This necessitated some refactoring to the MPIR code. 2014-04-12 00:04:12 -04:00
William Hart
1253f4cade Fixed a problem in mpz_nextprime (probably we want 5 and 7 to be prime :-)) 2014-03-31 14:30:33 +01:00
William Hart
11327b1554 Added test case for nthroot aliasing and fixed code. 2014-03-28 14:31:23 +00:00
William Hart
d5197b9e12 Fixed an aliasing bug in nthroot. 2014-03-28 14:03:27 +00:00
William Hart
6c73f45f7e Updated docs for primality testing. 2014-03-26 12:59:18 +00:00
William Hart
0d8b59ca28 Fix mpz_nextprime so it runs 25 rounds of miller-rabin in total (same as GMP). 2014-03-26 12:39:08 +00:00
William Hart
6ac545e1e7 Renamed next_likely_prime files to next_prime_candidate. 2014-03-25 20:56:21 +00:00
William Hart
a87ef5b3e7 Missing mpir.h. 2014-03-19 23:19:46 +00:00
William Hart
ba01f2690d unsigned long -> mpir_ui. 2014-02-28 19:33:27 +00:00
William Hart
77542fb62b Update to new divegcd from GMP 5.1.3. 2014-02-28 16:57:25 +00:00
William Hart
8e3504e372 Updated to new bin_ui and bin_uiui code from GMP 5.1.3. Added a version of
mpn_divrem_hensel_rsh_qr_1 that takes a precomputed inverse.
2014-02-28 16:44:53 +00:00
William Hart
006f33dc49 Updated mpz/jacobi.c from GMP 5.1.3. 2014-02-28 13:59:52 +00:00
William Hart
7e44cf98e7 Added primorial code and test code from GMP/ 2014-02-28 13:49:27 +00:00
William Hart
3b39af2d08 Added mfac_uiui and test code from GMP-5.1.3. 2014-02-28 13:35:36 +00:00
William Hart
abc2bd4b83 Added t-fac_ui test code and changed gmp.h => mpir.h. 2014-02-28 13:19:19 +00:00
William Hart
024bca73a7 Forgot to commit the file! 2014-02-28 13:00:53 +00:00
William Hart
b2dad35919 Added double factorial code from GMP 5.1.3. 2014-02-28 13:00:17 +00:00
William Hart
c83838d803 Update to latest lucas code from GMP 5.1.3. 2014-02-28 12:33:38 +00:00
William Hart
0dce4dded5 Typo. 2014-02-28 11:40:21 +00:00
William Hart
67809f39a2 Update to GMP 5.1.3 factorial code. 2014-02-27 21:35:04 +00:00
William Hart
fd6b1b0571 Update to latest mpz_gcd and mpz_gcdext from GMP. 2014-02-27 17:58:43 +00:00
William Hart
cc92f1ab7e Remove orphaned memory allocation. 2014-02-26 18:31:48 +00:00
William Hart
7aa8f6364e Further C code cleanups. 2014-02-16 17:23:27 +00:00