Commit Graph

365 Commits

Author SHA1 Message Date
(no author)
88c8b3e0f3 Add mp_bitcnt_t type to MPIR 2010-02-08 17:06:12 +00:00
(no author)
3306eae2a2 Add HAVE_NATIVE defines for Windows code 2010-02-07 17:33:56 +00:00
(no author)
06d4a32943 Added divrem_1 and divrem_2 x86_64 assembly code from GMP, replaced
divrem_euclidean_qr_1 with divrem_1.
2010-02-06 13:28:23 +00:00
wbhart
183443ab1e Added t-invert to tests/mpn. 2010-01-14 09:55:55 +00:00
wbhart
c4e57480dc Made t-invert a bit more comprehensive. 2009-12-12 21:02:09 +00:00
wbhart
47a2509990 Made likely_prime do 10 R tests and checked for not too many pseudoprimes in
test code.
2009-12-12 18:20:25 +00:00
wbhart
ac377dc877 Added my copyright and a small change to a print statement (not the only
change I have made to the code - there were others previously, but I had 
forgotten to put my (C) on it).
2009-12-08 15:47:04 +00:00
wbhart
7e6bd6d865 Added Paul's copyright. 2009-12-08 15:43:58 +00:00
wbhart
8bbe321913 Added test code for mpn_invert (currently fails for unknown reasons). 2009-12-08 15:42:25 +00:00
wbhart
4572b3b9d5 Added test for exact square roots, 2009-12-08 01:59:11 +00:00
wbhart
c3cf3b5716 Added a test for the sqrt code and made them work all the way up to 2009-12-08 01:54:07 +00:00
gladman
4671fbc394 remove bug I added to t-mpz_likely_prime_p.c 2009-12-07 23:36:06 +00:00
gladman
a2d93b2a8d Adjust likely_prime test for Windows 2009-12-07 22:48:54 +00:00
wbhart
d252f5b22e Fixed the test code for mpz_likely_prime_p. 2009-12-07 01:06:47 +00:00
wbhart
39d0df2b75 Added is_likely_prime_BPSW code and test. 2009-12-07 00:08:56 +00:00
wbhart
19c4d52566 Fixed a carry bug in mpn_tdiv_q and added the failing cases to tests/mpz/t-tdiv.c. 2009-10-13 04:52:00 +00:00
wbhart
380b80372a Fixed some bugs in mpn_tdiv_q and added a try test for mpn_tdiv_q. 2009-10-11 06:46:10 +00:00
wbhart
8258200ecb Fixed a major bug in mpn_tdiv_q and extended some tests to run longer. 2009-10-08 11:54:06 +00:00
wbhart
a4d22db74e Extended the mpz/t-tdiv test and fixed a bug in mpn_tdiv_q. 2009-10-08 02:54:11 +00:00
wbhart
321e816c50 Fixed some bugs in the test code. 2009-10-07 05:57:09 +00:00
wbhart
938a8de8ed Added fast mpn_tdiv_q and test code and used it in mpz_tdiv_q. 2009-10-07 05:27:59 +00:00
wbhart
1480bbb493 Added autoconf stuff for mpn_tdiv_q. 2009-10-06 06:24:03 +00:00
jasonmoxham
bf0f5c4e6f add carry limb into the existing rsh_divrem_hensel 2009-10-04 02:16:25 +00:00
jasonmoxham
144deaa17e autotools 2009-10-03 22:23:58 +00:00
jasonmoxham
cdaad5bffc New AMD asm function mpn_rsh_divrem_hensel_qr_1_2 2009-10-03 22:21:44 +00:00
jasonmoxham
76989a39e8 add mingw random/rand workaround 2009-10-03 13:56:59 +00:00
wbhart
55fe74c97b Oops, this time the segfault in t-sb_divappr_q should be fixed. 2009-10-02 00:30:43 +00:00
wbhart
7edce5c5c6 Fixed a segfault in t-sb_divappr_q. 2009-10-02 00:28:36 +00:00
jasonmoxham
f3b7ed1f2e limit try test of divrem_1_2 to 2limbs 2009-10-01 00:09:14 +00:00
jasonmoxham
07f97a0963 new AMD asm function mpn_divrem_hensel_qr_1_2 2009-09-30 23:41:09 +00:00
gladman
f700c5c84c Add new assembler, C and test files to Windows builds 2009-09-30 16:21:46 +00:00
wbhart
5fcad2a384 Added files for divide conquer division. 2009-09-30 03:07:18 +00:00
jasonmoxham
9bbfba8e5e New generic functions for two limb inverse of divrem_hensel_qr_1 and tunes,tests 2009-09-30 02:24:29 +00:00
wbhart
d70b96fff0 Added configure info for divide conquer division. 2009-09-30 02:00:18 +00:00
wbhart
5308d1e8fd Got invett and sb_divappr_q working (modulo some linker issue). 2009-09-29 22:55:10 +00:00
jasonmoxham
61c42e5ae1 New generic divrem_hensel's functions and tests,tunes 2009-09-29 16:41:28 +00:00
wbhart
f224ba47f2 Added config stuff for invert.c and t-sb_divappr_q 2009-09-28 22:17:53 +00:00
jasonmoxham
6d9a1d1a3a replace most occurances of RANDS with local versions 2009-09-14 19:06:46 +00:00
jasonmoxham
e029801ead remove most of the old global random stuff and replace with local 2009-09-14 14:17:11 +00:00
jasonmoxham
7fecdf1f0d repalce most occarances of mpn_random with mpn_randomb 2009-09-14 12:19:07 +00:00
jasonmoxham
908a13ef32 replace most occurances of mpn-random2 with mpn_rrandom 2009-09-14 11:51:49 +00:00
jasonmoxham
7ae92558ce remove nonsense test from random numbers 2009-09-14 01:57:46 +00:00
jasonmoxham
cf6363d0c8 replace all the old mpf_random2 with the new mpf_rrandomb 2009-09-13 10:50:07 +00:00
jasonmoxham
59e7877431 removed some obsolete error checking 2009-09-12 13:19:36 +00:00
jasonmoxham
fff313847b added more tests for roots , corrected existing rootrem error 2009-09-11 13:49:34 +00:00
jasonmoxham
1b89edcb42 add tests for trial div 2009-09-11 00:44:34 +00:00
jasonmoxham
7fc74fc3ab refmpn functions for add/sub_err1/2 2009-09-10 09:24:04 +00:00
jasonmoxham
35e24c6d30 in refmpn.c make sure we use refmpn functions not just mpn functions 2009-09-10 08:55:40 +00:00
jasonmoxham
6a8ac2c03e change name of mpz_next_probable_prime to mpz_next_likely_prime 2009-09-07 19:56:58 +00:00
jasonmoxham
16fb5b48d7 revamp tests for mpz_nthroot 2009-09-03 19:43:11 +00:00
jasonmoxham
8a0e159dcd add mpn_add/sublsh_nc to try.exe 2009-09-02 15:52:19 +00:00
jasonmoxham
b3eee0a71f update overlap requirement for try for add_err etc 2009-09-02 14:09:28 +00:00
jasonmoxham
cda8da9c76 add mpn_add_err1 etc to try 2009-09-02 12:46:03 +00:00
jasonmoxham
2e8eb2abee update try to cope with macros 2009-08-23 17:50:04 +00:00
jasonmoxham
a8da3b5617 try tests for addlsh etc 2009-08-23 16:23:55 +00:00
jasonmoxham
d8fdd6ef28 replacement function mpz_next_probable_prime 2009-08-17 09:03:35 +00:00
jasonmoxham
f405d0fe68 remove ansitoknr stuff 2009-08-13 03:07:39 +00:00
jasonmoxham
5494e58b76 remove all referances to mpbsd 2009-08-12 18:40:03 +00:00
jasonmoxham
eba14d65ba have-native only bits 2009-08-12 06:13:55 +00:00
jasonmoxham
1a7781ade8 New K8 asm function mpn_lshiftc 2009-08-12 03:13:11 +00:00
jasonmoxham
21c652d442 remove some referances to the old functions 2009-08-11 23:09:56 +00:00
jasonmoxham
e013b89256 delete obsolete fn gmp_randinit and all referances to it 2009-08-11 22:34:51 +00:00
jasonmoxham
1e8dfa942a removed obsolete fns mpn_divrem mpn_divmod and all referances to them 2009-08-11 22:11:33 +00:00
jasonmoxham
7a8390114c remove obsolete fns mpz_random mpz_random2 and all references to them 2009-08-11 20:52:44 +00:00
gladman
22998b1140 Bring Windows build up to date 2009-08-10 14:50:25 +00:00
jasonmoxham
ac986071e7 fix cxx mpf_eq tests 2009-08-08 15:52:24 +00:00
jasonmoxham
bd6ab0e972 New generic mpn_mulmod_2expm1 and tests and tuning thresholds 2009-08-07 03:47:42 +00:00
jasonmoxham
7e2c3356f5 New generic mpn_mulmod_2expp1 and tests 2009-08-06 22:20:09 +00:00
jasonmoxham
497662212c mpf_eq tests 2009-08-03 14:49:22 +00:00
jasonmoxham
db6b81922d New generic function mpn_neg_n and tests 2009-08-03 01:59:50 +00:00
jasonmoxham
a27c2925ff when building both static and shared librarys , we can make "try" and "static_try" 2009-08-02 14:43:19 +00:00
jasonmoxham
a7afe5bc4e t-mulmid mingw32 update 2009-07-31 15:20:05 +00:00
jasonmoxham
2cc0cfcde9 Update make check to test static versions , when we build both , of popham and fat 2009-07-30 21:21:03 +00:00
jasonmoxham
e70e8fdad3 cast pointer fix trac issue 33 2009-07-29 00:18:43 +00:00
gladman
d16e9e3e9b Update Windows build for recent added and deleted C source code files (assembler not done yet) 2009-07-26 18:06:59 +00:00
jasonmoxham
196f304858 mullow mulhigh tests 2009-07-24 21:56:38 +00:00
wbhart
311b929e2c Added ordinary test code for mulmid (including mulmid_basecase, mulmid
and mulmid_toom42
2009-07-24 07:16:52 +00:00
wbhart
e732476ad3 Added more mulmid test code including mulmid_basecase. 2009-07-24 06:53:30 +00:00
wbhart
1f5523b9d6 Attempt to add test code for mulmid and mulmid_n. 2009-07-24 06:09:04 +00:00
wbhart
d5e7b36cb0 Added strassen multiplication and increased the gcd test sizes so that
it actually gets used a few more times.
2009-07-22 00:44:05 +00:00
jasonmoxham
4c587bb0eb fixed configure to ignore mingw broken mprotect , run autotools 2009-06-15 01:28:27 +00:00
jasonmoxham
42b02d4f32 remove gnu_source redefinition warning 2009-06-02 15:26:21 +00:00
jasonmoxham
563142f6be autoreconf 2009-06-01 14:18:24 +00:00
wbhart
5d57433347 Ran aclocal, autoheader, autoconf, automake, configure. 2009-05-31 20:26:55 +00:00
jasonmoxham
9c68614d77 Add new function generic mpn_divrem_euclidean_qr_2 2009-05-19 09:30:34 +00:00
gladman
714cbef23f 1. revert t-fat and remove fat test from Windows testing
2. minor update to Python translator
2009-05-14 20:14:04 +00:00
jasonmoxham
a1b14414c6 New generic mpn_store and tests/tune etc 2009-05-14 19:29:28 +00:00
jasonmoxham
3b7c555c8e New generic functions/macros mpn_lshift2 mpn_rshift2 and tests/speed etc 2009-05-14 02:44:19 +00:00
gladman
d6962d575f 1. Add new/changed Core2 assembler files to the Windows build
2. Workaround VC++ optimisation bug in mul_fft.c
2009-05-13 09:54:24 +00:00
gladman
9918886c2f Update Windows K8 build to add new assembler 2009-05-12 19:37:47 +00:00
gladman
d942415a1c 1. Update Windows Powershell scripts in mpirbench to refer to MPIR rather than GMP
2. Update MPIR version number in Windows config files to 1.1.2 
3. Add an MSVC inline definition in in gmp-h.in
4. Correct locale test (as per GMP correction)
5. Add Windows x64 set/copy intrinsics to mul_fft.c (improves FFT speed score by 2%)
2009-05-09 13:26:27 +00:00
jasonmoxham
b52aa5a59e mpn_mul_2 doesn't do size=1 2009-04-22 22:05:08 +00:00
jasonmoxham
bd56955e74 divexact_by Bm1of try tests 2009-04-14 06:19:16 +00:00
jasonmoxham
b5aef8ffc3 fat bits 2009-04-13 22:15:45 +00:00
jasonmoxham
996bd50496 add divrem_euclidean_qr_1 , divexact_byBm1of to fat structure 2009-04-13 21:42:55 +00:00
jasonmoxham
70dbf93478 make dist-hook to add dummy alias make install-gmpcompat 2009-04-13 05:17:43 +00:00
wbhart
2afa504132 Added support for testing three source operand functions. 2009-04-12 08:57:03 +00:00
jasonmoxham
25ada3c3a6 make dist-hook to change yasm/Makefile.in to stop install/check 2009-04-11 20:51:08 +00:00
wbhart
63ff9afb61 Added bogus dependency to work around an Apple ld bug. 2009-04-11 04:14:25 +00:00
jasonmoxham
525b748078 change gmplink to gmpcompat and update docs etc 2009-04-08 13:41:51 +00:00
jasonmoxham
010de3baa8 remove dead links for --enable-gmplink 2009-04-02 11:18:24 +00:00
wbhart
22db24db76 Attempt to add toom cook 7. 2009-04-02 07:38:03 +00:00
jasonmoxham
afca898b1a run old autotools 2009-04-02 02:12:51 +00:00
jasonmoxham
c211599518 autoreconf 2009-04-01 12:12:56 +00:00
wbhart
2d5eb1a1e5 Temporarily ran autoconf and automake until someone runs it with an old
version.
2009-04-01 09:09:20 +00:00
wbhart
e42709e967 Added toom4 multiplication. 2009-04-01 08:21:03 +00:00
jasonmoxham
8ca3be5bef merge div-branch into trunk with svn merge -r 1782:1816 ../branches/x86_64-division/ run on my local trunk 2009-03-31 23:56:06 +00:00
jasonmoxham
2235444edf x86_64 mpn_subadd_n plus tests,tune 2009-03-29 10:49:51 +00:00
jasonmoxham
ed2eb17f96 update Makefile.am so that make dist works 2009-03-15 15:51:47 +00:00
jasonmoxham
07cbd98824 autotools with ylwrap link 2009-03-14 19:03:25 +00:00
gladman
453422c9b6 1. Tune Windows builds
2. Adjust try.c for WIndows
2009-03-08 16:38:38 +00:00
gladman
09c898001b revert try.c that I broke 2009-03-08 14:02:47 +00:00
jasonmoxham
c561795862 new configure option --enable-gmplink to install symlinks of gmp->mpir 2009-03-08 02:28:30 +00:00
gladman
ac487c4e1c 1. Minor windows build update
2. Changes to try.c for Windows
2009-03-07 17:50:40 +00:00
jasonmoxham
5f0ff82a0b update try.c for 3 src functions 2009-03-07 17:37:22 +00:00
wbhart
32a114be59 Added new reference test for divexact_byff 2009-03-07 14:41:22 +00:00
jasonmoxham
d5ab92b6bc cast mpn_addsub_b try tests to int 2009-03-07 01:59:42 +00:00
wbhart
710d61a3e6 Added reference mpn implementations for missing try functions. 2009-03-07 01:33:39 +00:00
jasonmoxham
1438bac1be added redc_basecase tests to tests/try.c 2009-03-06 18:42:05 +00:00
jasonmoxham
1401943328 tests for redc , not yet complete 2009-03-06 04:51:29 +00:00
jasonmoxham
35b1041be8 added lshift1 rshift1 divexact_byff addadd addsub to tests/try.c as tests 2009-03-05 19:06:24 +00:00
jasonmoxham
98fb151932 merged buildtest branch into trunk for building outside the src tree , the command I used was svn merge -r 1643:1669 ../branches/buildtest/ in my local copy of trunk 2009-03-03 21:40:13 +00:00
jasonmoxham
def21c1810 add redc_basecase and sumdiff_n to the fat structure 2009-02-27 17:59:28 +00:00
gladman
3f353d55a8 Bring Windows up to date on new trunk 2009-02-22 21:03:08 +00:00
jasonmoxham
deb06ea4ed merged k8-branch into trunk , autotools , few handbits , windows bits just copyed over 2009-02-19 23:22:30 +00:00
jasonmoxham
dbf715e599 autostuff and change name of file gmpxx.h to mpirxx.h 2009-02-12 12:50:13 +00:00
jasonmoxham
b76677c8fc changed libgmp*.* for a few odd cases left 2009-02-12 12:25:23 +00:00
jasonmoxham
f62cab6011 changed libgmp*.* for a few odd cases left 2009-02-12 12:00:42 +00:00
jasonmoxham
31ec9cdbeb for file in $(find -name Makefile.am) ; do sed -e "s/libgmp\.a/libmpir.a/g" $file > temp ; mv temp $file ; done
for file in $(find -name Makefile.am) ; do sed -e "s/libgmp\.la/libmpir.la/g" $file > temp ; mv temp $file ; done
for file in $(find -name Makefile.am) ; do sed -e "s/libgmpxx\.la/libmpirxx.la/g" $file > temp ; mv temp $file ; done
for file in $(find -name Makefile.am) ; do sed -e "s/libgmpxx\.a/libmpirxx.a/g" $file > temp ; mv temp $file ; done
2009-02-12 11:51:33 +00:00
jasonmoxham
9b722633b9 changed gmpxx.h to mpirxx.h for a few odd cases left 2009-02-12 11:37:18 +00:00
jasonmoxham
a6ab0a96b3 changed gmp.h to mpir.h for a few odd cases left 2009-02-12 11:23:26 +00:00
jasonmoxham
c6bffec6ad for file in $(find -name \*.cc) ; do sed -e "s/#include \"gmpxx\.h\"/#include \"mpirxx.h\"/g" $file > temp ; mv temp $file ; done 2009-02-12 10:30:03 +00:00
jasonmoxham
e554550755 for file in $(find -name \*.c ) ; do sed -e "s/#include \"gmp\.h\"/#include \"mpir.h\"/g" $file > temp ; mv temp $file ; done
for file in $(find -name \*.h ) ; do sed -e "s/#include \"gmp\.h\"/#include \"mpir.h\"/g" $file > temp ; mv temp $file ; done
for file in $(find -name \*.cc) ; do sed -e "s/#include \"gmp\.h\"/#include \"mpir.h\"/g" $file > temp ; mv temp $file ; done
2009-02-12 10:24:24 +00:00
jasonmoxham
7b4d8b2be7 reverted to rev 1593 2009-02-10 00:16:08 +00:00
wbhart
9868d016fd Ran aclocal, automake, autoconf. 2009-02-04 18:19:56 +00:00
wbhart
17caa3c6cf Reinstated all the tests in t-fat.c. 2009-01-29 06:26:13 +00:00
wbhart
01864037af Made fat binaries work for x86_64. 2009-01-29 06:05:21 +00:00
wbhart
7eb253056e Fixed a std::FILE issue in gmp.h and a missing <cstdlib> in t-locale.cc 2009-01-10 19:12:05 +00:00
jasonmoxham
030f354093 A few more tests for mpz_perfect_power_p 2009-01-10 06:43:12 +00:00
jasonmoxham
c9dd7aea90 mpz_perfect_power_p corrections and new test program 2008-12-26 17:41:36 +00:00
jasonmoxham
80374d4fb3 result after running aclocal,autoconf,automake,autoheader and rm -r autom4te.cache/ 2008-12-24 01:57:34 +00:00
jasonmartin
4b2966287f Incorporated Niels Mollers lgpl 2.1 gcd code into trunk 2008-10-11 06:56:15 +00:00
wbhart
93f9776b6f Ran autoconf and automake. 2008-07-24 21:15:19 +00:00
wbhart
79aacf7209 Updated license information for many files. 2008-07-24 21:14:10 +00:00
wbhart
8af38b0415 changed line endings to native style. 2008-07-23 16:49:23 +00:00
wbhart
6f38c99e0d Rename amd64call.asm and core2call.as and amd64check.c to x86_64call.as and x86_64check.c (merging the first two into a single file) and updated configure.in accordingly. 2008-07-23 16:47:44 +00:00
wbhart
8905fb8d84 The .asm file is not needed now that it has been converted to yasm format. 2008-07-23 14:17:41 +00:00
wbhart
abe65e321e Patch to deal properly with 1 nail bits in mpz_set_si test. 2008-07-13 20:13:35 +00:00
jasonmartin
50d0aa3c21 Converted core2call to yasm/Intel syntax 2008-07-12 16:44:48 +00:00
wbhart
4bb078e801 Ran autoconf, aclocal and automake. 2008-06-28 05:23:08 +00:00
wbhart
c7caca6d56 Set native line endings for all .c, .h, as, .asm, .s, .in, .m4, .cc, am 2008-06-25 07:33:36 +00:00
wbhart
0e296b1cf4 Fixed yasm so that it only builds on x86, not by default. 2008-06-25 07:10:51 +00:00
wbhart
f4ec3d5515 Experimental fix for global symbol prefix for yasm assembly files. 2008-06-15 18:46:08 +00:00
wbhart
42ef8307be Add core2call in this directory too. 2008-05-30 09:34:47 +00:00
wbhart
ec9d99fb88 Update makefile for core2call. 2008-05-30 09:34:12 +00:00
wbhart
6873c97263 Get rid of transitioned. 2008-05-30 06:37:17 +00:00
wbhart
8ad9ff3d76 Set the object file correctly. 2008-05-30 04:39:25 +00:00
wbhart
b3b5e441a0 Rerun aclocal, autoconf, automake. 2008-05-30 04:03:22 +00:00
wbhart
961b19487f Run automake and autoconf. 2008-05-30 01:34:39 +00:00
wbhart
ecff967e32 Run automake and autoconf to propagate changes. 2008-05-29 23:56:41 +00:00
wbhart
c1c70f040e Run automake to propagate changes. 2008-05-27 02:54:55 +00:00
wbhart
dd19683c98 First attempt at making make check work.
Fixed execute permissions on some files.

Removed some files from yasm that are regenerated by the build 
procedure.
2008-05-27 02:28:44 +00:00
wbhart
075a98ed18 Ran autoconf, automake and aclocal to update all the autohell files. 2008-05-26 22:20:33 +00:00
brgladman
48248cda46 1. longlong.h change to add MSVC intrinsics
2. longlong.h rearrangement for Intel compiler
3. MSVC additions in test  code 
4. GMP 4.2.1 bug fixes
5. Intel format assembly code
2008-05-18 22:20:43 +00:00
wbhart
a197a2d3eb Basic GMP files with a new core2 directory and amd_64 directory with Martin's and Gaudry's patches.
Removed directories for no longer supported architectures.
2008-04-17 21:03:07 +00:00