Repository: wbhart/mpir
Branch: master
Commit: 307663bf8b4d
Files: 2160
Total size: 11.4 MB
Directory structure:
gitextract_o7x9ziic/
├── .appveyor_msys_build.sh
├── .gdbinit
├── .gitattributes
├── .gitignore
├── .travis.yml
├── AUTHORS
├── COPYING
├── COPYING.LIB
├── ChangeLog
├── INSTALL
├── INSTALL.autoconf
├── Makefile.am
├── NEWS
├── README
├── acinclude.m4
├── appveyor.yml
├── assert.c
├── autogen.sh
├── cl_int.bat
├── clwrap
├── compat.c
├── config.guess
├── config.sub
├── configfsf.guess
├── configfsf.sub
├── configure.ac
├── configure.yasm
├── cpuid.c
├── cxx/
│ ├── Makefile.am
│ ├── dummy.cc
│ ├── isfuns.cc
│ ├── ismpf.cc
│ ├── ismpq.cc
│ ├── ismpz.cc
│ ├── ismpznw.cc
│ ├── osdoprnti.cc
│ ├── osfuns.cc
│ ├── osmpf.cc
│ ├── osmpq.cc
│ └── osmpz.cc
├── devel/
│ ├── configfsf.sub.diff
│ ├── gen-bases.c
│ ├── gen-fac_ui.c
│ ├── gen-fib.c
│ ├── gen-psqr.c
│ ├── regen
│ ├── setversion
│ └── yasm.diff
├── doc/
│ ├── Makefile.am
│ ├── devel/
│ │ ├── Configure.txt
│ │ ├── FILES.txt
│ │ ├── configuration
│ │ ├── gmp-h.txt
│ │ ├── gmp-impl-h.txt
│ │ ├── mpn_functions.txt
│ │ ├── projects.html
│ │ └── tasks.html
│ ├── fdl.texi
│ ├── isa_abi_headache
│ ├── mdate-sh
│ ├── mpir.texi
│ ├── texinfo.tex
│ └── version.texi
├── errno.c
├── extract-dbl.c
├── fft/
│ ├── Makefile.am
│ ├── adjust.c
│ ├── adjust_sqrt2.c
│ ├── butterfly_lshB.c
│ ├── butterfly_rshB.c
│ ├── combine_bits.c
│ ├── div_2expmod_2expp1.c
│ ├── fermat_to_mpz.c
│ ├── fft_mfa_trunc_sqrt2.c
│ ├── fft_mfa_trunc_sqrt2_inner.c
│ ├── fft_negacyclic.c
│ ├── fft_radix2.c
│ ├── fft_trunc.c
│ ├── fft_trunc_sqrt2.c
│ ├── ifft_mfa_trunc_sqrt2.c
│ ├── ifft_negacyclic.c
│ ├── ifft_radix2.c
│ ├── ifft_trunc.c
│ ├── ifft_trunc_sqrt2.c
│ ├── mul_2expmod_2expp1.c
│ ├── mul_fft_main.c
│ ├── mul_mfa_trunc_sqrt2.c
│ ├── mul_trunc_sqrt2.c
│ ├── mulmod_2expp1.c
│ ├── normmod_2expp1.c
│ ├── revbin.c
│ └── split_bits.c
├── gmp-impl.h
├── gpl-2.0.txt
├── invalid.c
├── lgpl-2.1.txt
├── longlong_post.h
├── longlong_pre.h
├── memory.c
├── mp_bpl.c
├── mp_clz_tab.c
├── mp_dv_tab.c
├── mp_get_fns.c
├── mp_minv_tab.c
├── mp_set_fns.c
├── mpf/
│ ├── Makefile.am
│ ├── abs.c
│ ├── add.c
│ ├── add_ui.c
│ ├── ceilfloor.c
│ ├── clear.c
│ ├── clears.c
│ ├── cmp.c
│ ├── cmp_d.c
│ ├── cmp_si.c
│ ├── cmp_ui.c
│ ├── cmp_z.c
│ ├── div.c
│ ├── div_2exp.c
│ ├── div_ui.c
│ ├── dump.c
│ ├── eq.c
│ ├── fits_s.h
│ ├── fits_si.c
│ ├── fits_sint.c
│ ├── fits_slong.c
│ ├── fits_sshort.c
│ ├── fits_u.h
│ ├── fits_ui.c
│ ├── fits_uint.c
│ ├── fits_ulong.c
│ ├── fits_ushort.c
│ ├── get_d.c
│ ├── get_d_2exp.c
│ ├── get_dfl_prec.c
│ ├── get_prc.c
│ ├── get_si.c
│ ├── get_str.c
│ ├── get_ui.c
│ ├── init.c
│ ├── init2.c
│ ├── inits.c
│ ├── inp_str.c
│ ├── int_p.c
│ ├── iset.c
│ ├── iset_d.c
│ ├── iset_si.c
│ ├── iset_str.c
│ ├── iset_ui.c
│ ├── mul.c
│ ├── mul_2exp.c
│ ├── mul_ui.c
│ ├── neg.c
│ ├── out_str.c
│ ├── pow_ui.c
│ ├── random2.c
│ ├── reldiff.c
│ ├── rrandomb.c
│ ├── set.c
│ ├── set_d.c
│ ├── set_dfl_prec.c
│ ├── set_prc.c
│ ├── set_prc_raw.c
│ ├── set_q.c
│ ├── set_si.c
│ ├── set_str.c
│ ├── set_ui.c
│ ├── set_z.c
│ ├── size.c
│ ├── sqrt.c
│ ├── sqrt_ui.c
│ ├── sub.c
│ ├── sub_ui.c
│ ├── swap.c
│ ├── trunc.c
│ ├── ui_div.c
│ ├── ui_sub.c
│ └── urandomb.c
├── mpir.net/
│ ├── build.vc/
│ │ └── check_config.bat
│ ├── build.vc11/
│ │ ├── mpir.net/
│ │ │ ├── mpir.net.vcxproj
│ │ │ └── mpir.net.vcxproj.filters
│ │ ├── mpir.net-tests/
│ │ │ └── mpir.net-tests.csproj
│ │ └── mpir.net.sln
│ ├── build.vc12/
│ │ ├── mpir.net/
│ │ │ ├── mpir.net.vcxproj
│ │ │ └── mpir.net.vcxproj.filters
│ │ ├── mpir.net-tests/
│ │ │ └── mpir.net-tests.csproj
│ │ └── mpir.net.sln
│ ├── build.vc14/
│ │ ├── mpir.net/
│ │ │ ├── mpir.net.vcxproj
│ │ │ └── mpir.net.vcxproj.filters
│ │ ├── mpir.net-tests/
│ │ │ └── mpir.net-tests.csproj
│ │ └── mpir.net.sln
│ ├── build.vc15/
│ │ ├── mpir.net/
│ │ │ ├── mpir.net.vcxproj
│ │ │ └── mpir.net.vcxproj.filters
│ │ ├── mpir.net-tests/
│ │ │ └── mpir.net-tests.csproj
│ │ └── mpir.net.sln
│ ├── mpir.net/
│ │ ├── AssemblyInfo.cpp
│ │ ├── Common.cpp
│ │ ├── Common.h
│ │ ├── ExpressionMacros.h
│ │ ├── HugeFloat.cpp
│ │ ├── HugeFloat.h
│ │ ├── HugeInt.cpp
│ │ ├── HugeInt.h
│ │ ├── HugeRational.cpp
│ │ ├── HugeRational.h
│ │ ├── Random.cpp
│ │ ├── Random.h
│ │ ├── RandomFloat.cpp
│ │ ├── ReadMe.txt
│ │ ├── Stdafx.cpp
│ │ ├── Stdafx.h
│ │ ├── app.rc
│ │ └── resource.h
│ └── mpir.net-tests/
│ ├── HugeFloatTests/
│ │ ├── Arithmetic.cs
│ │ ├── Assignment.cs
│ │ ├── Comparisons.cs
│ │ ├── ConstructionAndDisposal.cs
│ │ ├── Conversions.cs
│ │ ├── ExpressionTests.cs
│ │ ├── IO.cs
│ │ ├── Math.cs
│ │ └── Precision.cs
│ ├── HugeIntTests/
│ │ ├── Arithmetic.cs
│ │ ├── Assignment.cs
│ │ ├── Bitwise.cs
│ │ ├── Comparisons.cs
│ │ ├── ConstructionAndDisposal.cs
│ │ ├── Conversions.cs
│ │ ├── ExpressionTests.cs
│ │ ├── IO.cs
│ │ ├── Math.cs
│ │ └── NumberTheoretic.cs
│ ├── HugeRationalTests/
│ │ ├── Arithmetic.cs
│ │ ├── Assignment.cs
│ │ ├── Comparisons.cs
│ │ ├── ConstructionAndDisposal.cs
│ │ ├── Conversions.cs
│ │ ├── ExpressionTests.cs
│ │ └── IO.cs
│ ├── IntegrationTests/
│ │ └── XmlCommentsTests.cs
│ ├── OtherTests/
│ │ ├── MpirSettings.cs
│ │ └── Random.cs
│ ├── Properties/
│ │ └── AssemblyInfo.cs
│ └── Utilities/
│ ├── Accessors.cs
│ └── Platform.cs
├── mpirxx.h
├── mpn/
│ ├── Makeasm.am
│ ├── Makefile.am
│ ├── README
│ ├── alpha/
│ │ ├── README
│ │ ├── add_n.asm
│ │ ├── addlsh1_n.asm
│ │ ├── addmul_1.asm
│ │ ├── alpha-defs.m4
│ │ ├── cntlz.asm
│ │ ├── copyd.asm
│ │ ├── copyi.asm
│ │ ├── default.m4
│ │ ├── divexact_1.c
│ │ ├── divexact_by3c.asm
│ │ ├── ev5/
│ │ │ ├── add_n.asm
│ │ │ ├── com_n.asm
│ │ │ ├── lshift.asm
│ │ │ ├── rshift.asm
│ │ │ └── sub_n.asm
│ │ ├── ev6/
│ │ │ ├── add_n.asm
│ │ │ ├── addmul_1.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── slot.pl
│ │ │ ├── sqr_diagonal.asm
│ │ │ ├── sub_n.asm
│ │ │ └── submul_1.asm
│ │ ├── ev67/
│ │ │ ├── gcd_1.asm
│ │ │ ├── hamdist.asm
│ │ │ └── popcount.asm
│ │ ├── invert_limb.asm
│ │ ├── longlong_inc.h
│ │ ├── lshift.asm
│ │ ├── mod_34lsub1.asm
│ │ ├── modexact_1c_odd.asm
│ │ ├── mul_1.asm
│ │ ├── rshift.asm
│ │ ├── sqr_diagonal.asm
│ │ ├── sub_n.asm
│ │ ├── sublsh1_n.asm
│ │ ├── submul_1.asm
│ │ └── umul.asm
│ ├── arm/
│ │ ├── add_n.asm
│ │ ├── addmul_1.asm
│ │ ├── arm-defs.m4
│ │ ├── copyd.asm
│ │ ├── copyi.asm
│ │ ├── invert_limb.asm
│ │ ├── longlong_inc.h
│ │ ├── mul_1.asm
│ │ ├── sub_n.asm
│ │ ├── submul_1.asm
│ │ └── udiv.asm
│ ├── asm-defs.m4
│ ├── cpp-ccas
│ ├── generic/
│ │ ├── add.c
│ │ ├── add_1.c
│ │ ├── add_err1_n.c
│ │ ├── add_err2_n.c
│ │ ├── add_n.c
│ │ ├── addadd_n.c
│ │ ├── addmul_1.c
│ │ ├── addsub_n.c
│ │ ├── and_n.c
│ │ ├── andn_n.c
│ │ ├── bdivmod.c
│ │ ├── binvert.c
│ │ ├── cmp.c
│ │ ├── com_n.c
│ │ ├── comb_tables.c
│ │ ├── copyd.c
│ │ ├── copyi.c
│ │ ├── dc_bdiv_q.c
│ │ ├── dc_bdiv_q_n.c
│ │ ├── dc_bdiv_qr.c
│ │ ├── dc_bdiv_qr_n.c
│ │ ├── dc_div_q.c
│ │ ├── dc_div_qr.c
│ │ ├── dc_div_qr_n.c
│ │ ├── dc_divappr_q.c
│ │ ├── divexact.c
│ │ ├── divexact_1.c
│ │ ├── divexact_by3c.c
│ │ ├── divexact_byff.c
│ │ ├── divexact_byfobm1.c
│ │ ├── divisible_p.c
│ │ ├── divrem.c
│ │ ├── divrem_1.c
│ │ ├── divrem_2.c
│ │ ├── divrem_euclidean_qr_1.c
│ │ ├── divrem_euclidean_qr_2.c
│ │ ├── divrem_euclidean_r_1.c
│ │ ├── divrem_hensel_qr_1.c
│ │ ├── divrem_hensel_qr_1_1.c
│ │ ├── divrem_hensel_qr_1_2.c
│ │ ├── divrem_hensel_r_1.c
│ │ ├── divrem_hensel_rsh_qr_1.c
│ │ ├── dump.c
│ │ ├── fib2_ui.c
│ │ ├── fib_table.c
│ │ ├── gcd.c
│ │ ├── gcd_1.c
│ │ ├── gcd_subdiv_step.c
│ │ ├── gcdext.c
│ │ ├── gcdext_1.c
│ │ ├── gcdext_lehmer.c
│ │ ├── get_d.c
│ │ ├── get_str.c
│ │ ├── hamdist.c
│ │ ├── hgcd.c
│ │ ├── hgcd2.c
│ │ ├── hgcd2_jacobi.c
│ │ ├── hgcd_appr.c
│ │ ├── hgcd_jacobi.c
│ │ ├── hgcd_matrix.c
│ │ ├── hgcd_reduce.c
│ │ ├── hgcd_step.c
│ │ ├── inv_div_q.c
│ │ ├── inv_div_qr.c
│ │ ├── inv_div_qr_n.c
│ │ ├── inv_divappr_q.c
│ │ ├── inv_divappr_q_n.c
│ │ ├── invert.c
│ │ ├── ior_n.c
│ │ ├── iorn_n.c
│ │ ├── jacobi.c
│ │ ├── jacobi_2.c
│ │ ├── jacobi_base.c
│ │ ├── longlong_inc.h
│ │ ├── lshift.c
│ │ ├── matrix22_mul.c
│ │ ├── matrix22_mul1_inverse_vector.c
│ │ ├── mod_1.c
│ │ ├── mod_1_1.c
│ │ ├── mod_1_2.c
│ │ ├── mod_1_3.c
│ │ ├── mod_34lsub1.c
│ │ ├── modexact_1c_odd.c
│ │ ├── mp_bases.c
│ │ ├── mul.c
│ │ ├── mul_1.c
│ │ ├── mul_basecase.c
│ │ ├── mul_fft.c
│ │ ├── mul_n.c
│ │ ├── mulhigh_n.c
│ │ ├── mullow_basecase.c
│ │ ├── mullow_n.c
│ │ ├── mullow_n_basecase.c
│ │ ├── mulmid.c
│ │ ├── mulmid_basecase.c
│ │ ├── mulmid_n.c
│ │ ├── mulmod_2expm1.c
│ │ ├── mulmod_2expp1_basecase.c
│ │ ├── mulmod_bexpp1.c
│ │ ├── nand_n.c
│ │ ├── neg_n.c
│ │ ├── nior_n.c
│ │ ├── nsumdiff_n.c
│ │ ├── perfect_square_p.c
│ │ ├── popcount.c
│ │ ├── pow_1.c
│ │ ├── powlo.c
│ │ ├── powm.c
│ │ ├── preinv_divrem_1.c
│ │ ├── preinv_mod_1.c
│ │ ├── random.c
│ │ ├── random2.c
│ │ ├── randomb.c
│ │ ├── redc_1.c
│ │ ├── redc_2.c
│ │ ├── redc_n.c
│ │ ├── rootrem.c
│ │ ├── rootrem_basecase.c
│ │ ├── rrandom.c
│ │ ├── rsh_divrem_hensel_qr_1.c
│ │ ├── rsh_divrem_hensel_qr_1_1.c
│ │ ├── rsh_divrem_hensel_qr_1_2.c
│ │ ├── rshift.c
│ │ ├── sb_bdiv_q.c
│ │ ├── sb_bdiv_qr.c
│ │ ├── sb_div_q.c
│ │ ├── sb_div_qr.c
│ │ ├── sb_divappr_q.c
│ │ ├── scan0.c
│ │ ├── scan1.c
│ │ ├── set_str.c
│ │ ├── sizeinbase.c
│ │ ├── sqr_basecase.c
│ │ ├── sqrtrem.c
│ │ ├── sub.c
│ │ ├── sub_1.c
│ │ ├── sub_err1_n.c
│ │ ├── sub_err2_n.c
│ │ ├── sub_n.c
│ │ ├── subadd_n.c
│ │ ├── submul_1.c
│ │ ├── sumdiff_n.c
│ │ ├── tdiv_q.c
│ │ ├── tdiv_qr.c
│ │ ├── toom3_mul.c
│ │ ├── toom3_mul_n.c
│ │ ├── toom42_mulmid.c
│ │ ├── toom4_mul.c
│ │ ├── toom4_mul_n.c
│ │ ├── toom8_sqr_n.c
│ │ ├── toom8h_mul.c
│ │ ├── toom_couple_handling.c
│ │ ├── toom_eval_dgr3_pm1.c
│ │ ├── toom_eval_dgr3_pm2.c
│ │ ├── toom_eval_pm1.c
│ │ ├── toom_eval_pm2.c
│ │ ├── toom_eval_pm2exp.c
│ │ ├── toom_eval_pm2rexp.c
│ │ ├── toom_interpolate_16pts.c
│ │ ├── udiv_w_sdiv.c
│ │ ├── urandomb.c
│ │ ├── urandomm.c
│ │ ├── xnor_n.c
│ │ ├── xor_n.c
│ │ ├── zero.c
│ │ └── zero_p.c
│ ├── ia64/
│ │ ├── README
│ │ ├── add_n.asm
│ │ ├── addlsh1_n.asm
│ │ ├── addmul_1.asm
│ │ ├── addmul_2.asm
│ │ ├── addmul_4.asm
│ │ ├── and_n.asm
│ │ ├── andn_n.asm
│ │ ├── copyd.asm
│ │ ├── copyi.asm
│ │ ├── divexact_1.asm
│ │ ├── divrem_2.asm
│ │ ├── divrem_euclidean_qr_1.asm
│ │ ├── gcd_1.asm
│ │ ├── hamdist.asm
│ │ ├── ia64-defs.m4
│ │ ├── invert_limb.asm
│ │ ├── ior_n.asm
│ │ ├── iorn_n.asm
│ │ ├── longlong_inc.h
│ │ ├── lshift.asm
│ │ ├── modexact_1c_odd.asm
│ │ ├── mul_1.asm
│ │ ├── mul_2.asm
│ │ ├── nand_n.asm
│ │ ├── nior_n.asm
│ │ ├── popcount.asm
│ │ ├── rsh1add_n.asm
│ │ ├── rsh1sub_n.asm
│ │ ├── rshift.asm
│ │ ├── sqr_diagonal.asm
│ │ ├── sub_n.asm
│ │ ├── sublsh1_n.asm
│ │ ├── submul_1.c
│ │ ├── xnor_n.asm
│ │ └── xor_n.asm
│ ├── m4-ccas
│ ├── mips32/
│ │ ├── add_n.asm
│ │ ├── addmul_1.asm
│ │ ├── longlong_inc.h
│ │ ├── lshift.asm
│ │ ├── mips-defs.m4
│ │ ├── mips.m4
│ │ ├── mul_1.asm
│ │ ├── rshift.asm
│ │ ├── sub_n.asm
│ │ ├── submul_1.asm
│ │ └── umul.asm
│ ├── mips64/
│ │ ├── README
│ │ ├── add_n.asm
│ │ ├── addmul_1.asm
│ │ ├── divrem_1.asm
│ │ ├── longlong_inc.h
│ │ ├── lshift.asm
│ │ ├── mul_1.asm
│ │ ├── rshift.asm
│ │ ├── sqr_diagonal.asm
│ │ ├── sub_n.asm
│ │ ├── submul_1.asm
│ │ └── umul.asm
│ ├── powerpc32/
│ │ ├── 750/
│ │ │ ├── com_n.asm
│ │ │ ├── lshift.asm
│ │ │ └── rshift.asm
│ │ ├── README
│ │ ├── add_n.asm
│ │ ├── addlsh1_n.asm
│ │ ├── addmul_1.asm
│ │ ├── aix.m4
│ │ ├── darwin.m4
│ │ ├── divexact_by3c.asm
│ │ ├── eabi.m4
│ │ ├── elf.m4
│ │ ├── longlong_inc.h
│ │ ├── lshift.asm
│ │ ├── mod_34lsub1.asm
│ │ ├── modexact_1c_odd.asm
│ │ ├── mul_1.asm
│ │ ├── powerpc-defs.m4
│ │ ├── rshift.asm
│ │ ├── sqr_diagonal.asm
│ │ ├── sub_n.asm
│ │ ├── sublsh1_n.asm
│ │ ├── submul_1.asm
│ │ ├── umul.asm
│ │ └── vmx/
│ │ ├── and_n.asm
│ │ ├── andn_n.asm
│ │ ├── copyd.asm
│ │ ├── copyi.asm
│ │ ├── ior_n.asm
│ │ ├── iorn_n.asm
│ │ ├── nand_n.asm
│ │ ├── nior_n.asm
│ │ ├── popcount.asm
│ │ ├── xnor_n.asm
│ │ └── xor_n.asm
│ ├── powerpc64/
│ │ ├── README
│ │ ├── aix.m4
│ │ ├── copyd.asm
│ │ ├── copyi.asm
│ │ ├── darwin.m4
│ │ ├── elf.m4
│ │ ├── longlong_inc.h
│ │ ├── lshift.asm
│ │ ├── mode32/
│ │ │ ├── add_n.asm
│ │ │ ├── addmul_1.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── sub_n.asm
│ │ │ └── submul_1.asm
│ │ ├── mode64/
│ │ │ ├── add_n.asm
│ │ │ ├── addmul_1.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── sub_n.asm
│ │ │ ├── submul_1.asm
│ │ │ └── umul.asm
│ │ ├── rshift.asm
│ │ ├── sqr_diagonal.asm
│ │ ├── umul.asm
│ │ └── vmx/
│ │ └── popcount.asm
│ ├── sparc32/
│ │ ├── README
│ │ ├── add_n.asm
│ │ ├── addmul_1.asm
│ │ ├── longlong_inc.h
│ │ ├── lshift.asm
│ │ ├── mul_1.asm
│ │ ├── rshift.asm
│ │ ├── sparc-defs.m4
│ │ ├── sub_n.asm
│ │ ├── submul_1.asm
│ │ ├── udiv.asm
│ │ ├── udiv_nfp.asm
│ │ ├── umul.asm
│ │ └── v9/
│ │ ├── README
│ │ ├── add_n.asm.broken
│ │ ├── addmul_1.asm
│ │ ├── mul_1.asm
│ │ ├── sqr_diagonal.asm
│ │ ├── sub_n.asm.broken
│ │ ├── submul_1.asm
│ │ └── udiv.asm
│ ├── sparc64/
│ │ ├── README
│ │ ├── add_n.asm
│ │ ├── addmul_1.asm
│ │ ├── addmul_2.asm
│ │ ├── copyd.asm
│ │ ├── copyi.asm
│ │ ├── divexact_1.c
│ │ ├── divrem_1.c
│ │ ├── longlong_inc.h
│ │ ├── lshift.asm
│ │ ├── mod_1.c
│ │ ├── modexact_1c_odd.c
│ │ ├── mul_1.asm
│ │ ├── rshift.asm
│ │ ├── sparc64.h
│ │ ├── sqr_diagonal.asm
│ │ ├── sub_n.asm
│ │ └── submul_1.asm
│ ├── x86_64/
│ │ ├── add_err1_n.asm
│ │ ├── add_err2_n.asm
│ │ ├── atom/
│ │ │ ├── add_n.as
│ │ │ ├── addlsh1_n.as
│ │ │ ├── addlsh_n.asm
│ │ │ ├── addmul_1.as
│ │ │ ├── addmul_2.as
│ │ │ ├── and_n.as
│ │ │ ├── andn_n.as
│ │ │ ├── com_n.as
│ │ │ ├── copyd.as
│ │ │ ├── copyi.asm
│ │ │ ├── divexact_byff.as
│ │ │ ├── divrem_hensel_qr_1_1.asm
│ │ │ ├── ior_n.as
│ │ │ ├── iorn_n.as
│ │ │ ├── karaadd.asm
│ │ │ ├── karasub.asm
│ │ │ ├── lshift.as
│ │ │ ├── lshift1.as
│ │ │ ├── lshift2.asm
│ │ │ ├── mod_1_1.asm
│ │ │ ├── mod_1_2.asm
│ │ │ ├── mod_1_3.asm
│ │ │ ├── mul_1.as
│ │ │ ├── mul_2.as
│ │ │ ├── mul_basecase.as
│ │ │ ├── nand_n.as
│ │ │ ├── nior_n.as
│ │ │ ├── redc_1.as
│ │ │ ├── rsh1add_n.as
│ │ │ ├── rsh1sub_n.as
│ │ │ ├── rsh_divrem_hensel_qr_1_1.asm
│ │ │ ├── rshift.as
│ │ │ ├── sqr_basecase.as
│ │ │ ├── store.asm
│ │ │ ├── sub_n.as
│ │ │ ├── sublsh1_n.as
│ │ │ ├── sublsh_n.asm
│ │ │ ├── submul_1.as
│ │ │ ├── xnor_n.as
│ │ │ └── xor_n.as
│ │ ├── bobcat/
│ │ │ ├── add_err1_n.asm
│ │ │ ├── add_n.as
│ │ │ ├── addadd_n.as
│ │ │ ├── addlsh1_n.as
│ │ │ ├── addlsh_n.asm
│ │ │ ├── addmul_1.as
│ │ │ ├── addsub_n.as
│ │ │ ├── and_n.asm
│ │ │ ├── andn_n.as
│ │ │ ├── com_n.as
│ │ │ ├── copyd.as
│ │ │ ├── copyi.as
│ │ │ ├── divexact_byff.as
│ │ │ ├── divrem_hensel_qr_1_1.asm
│ │ │ ├── divrem_hensel_qr_1_2.asm
│ │ │ ├── divrem_hensel_r_1.asm
│ │ │ ├── hamdist.asm
│ │ │ ├── ior_n.asm
│ │ │ ├── iorn_n.as
│ │ │ ├── karaadd.asm
│ │ │ ├── karasub.asm
│ │ │ ├── lshift.as
│ │ │ ├── lshift1.as
│ │ │ ├── lshift2.asm
│ │ │ ├── lshiftc.asm
│ │ │ ├── mod_1_1.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── mul_basecase.as
│ │ │ ├── nand_n.asm
│ │ │ ├── nior_n.asm
│ │ │ ├── not.asm
│ │ │ ├── popcount.asm
│ │ │ ├── redc_1.as
│ │ │ ├── rsh1add_n.as
│ │ │ ├── rsh1sub_n.as
│ │ │ ├── rsh_divrem_hensel_qr_1_1.asm
│ │ │ ├── rsh_divrem_hensel_qr_1_2.asm
│ │ │ ├── rshift.asm
│ │ │ ├── rshift2.asm
│ │ │ ├── sqr_basecase.as
│ │ │ ├── store.asm
│ │ │ ├── sub_err1_n.asm
│ │ │ ├── sub_n.as
│ │ │ ├── subadd_n.as
│ │ │ ├── sublsh1_n.as
│ │ │ ├── sublsh_n.asm
│ │ │ ├── submul_1.as
│ │ │ ├── sumdiff_n.as
│ │ │ ├── xnor_n.as
│ │ │ └── xor_n.asm
│ │ ├── bulldozer/
│ │ │ ├── com_n.asm
│ │ │ ├── copyd.asm
│ │ │ ├── copyi.asm
│ │ │ ├── lshift.asm
│ │ │ ├── mul_basecase.asm
│ │ │ └── rshift.asm
│ │ ├── core2/
│ │ │ ├── README
│ │ │ ├── add_n.as
│ │ │ ├── addadd_n.asm
│ │ │ ├── addlsh_n.as
│ │ │ ├── addmul_1.asm
│ │ │ ├── addmul_2.as
│ │ │ ├── addsub_n.asm
│ │ │ ├── and_n.as
│ │ │ ├── andn_n.as
│ │ │ ├── com_n.as
│ │ │ ├── copyd.as
│ │ │ ├── copyi.asm
│ │ │ ├── divexact_byff.as
│ │ │ ├── divrem_hensel_qr_1_2.asm
│ │ │ ├── hamdist.asm
│ │ │ ├── ior_n.as
│ │ │ ├── iorn_n.as
│ │ │ ├── karaadd.asm
│ │ │ ├── karasub.asm
│ │ │ ├── lshift.asm
│ │ │ ├── mod_1_1.asm
│ │ │ ├── mod_1_2.asm
│ │ │ ├── mod_1_3.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── mul_2.as
│ │ │ ├── mul_basecase.as
│ │ │ ├── mullow_n_basecase.asm
│ │ │ ├── nand_n.as
│ │ │ ├── nior_n.as
│ │ │ ├── penryn/
│ │ │ │ ├── mod_1_1.asm
│ │ │ │ └── sumdiff_n.asm
│ │ │ ├── popcount.asm
│ │ │ ├── redc_1.as
│ │ │ ├── rsh1add_n.as
│ │ │ ├── rsh1sub_n.as
│ │ │ ├── rsh_divrem_hensel_qr_1_2.asm
│ │ │ ├── rshift.asm
│ │ │ ├── store.asm
│ │ │ ├── sub_n.as
│ │ │ ├── subadd_n.asm
│ │ │ ├── sublsh1_n.as
│ │ │ ├── submul_1.asm
│ │ │ ├── sumdiff_n.asm
│ │ │ ├── xnor_n.as
│ │ │ └── xor_n.as
│ │ ├── divexact_by3c.as
│ │ ├── divexact_byfobm1.as
│ │ ├── divrem_2.as
│ │ ├── divrem_euclidean_qr_1.as
│ │ ├── divrem_euclidean_qr_2.as
│ │ ├── fat/
│ │ │ ├── add_err1_n.c
│ │ │ ├── add_err2_n.c
│ │ │ ├── add_n.c
│ │ │ ├── addmul_1.c
│ │ │ ├── copyd.c
│ │ │ ├── copyi.c
│ │ │ ├── divexact_1.c
│ │ │ ├── divexact_by3c.c
│ │ │ ├── divexact_byfobm1.c
│ │ │ ├── divrem_1.c
│ │ │ ├── divrem_2.c
│ │ │ ├── divrem_euclidean_qr_1.c
│ │ │ ├── divrem_euclidean_qr_2.c
│ │ │ ├── fat.c
│ │ │ ├── fat_entry.asm
│ │ │ ├── gcd_1.c
│ │ │ ├── lshift.c
│ │ │ ├── mod_1.c
│ │ │ ├── mod_34lsub1.c
│ │ │ ├── modexact_1c_odd.c
│ │ │ ├── mul_1.c
│ │ │ ├── mul_basecase.c
│ │ │ ├── mulmid_basecase.c
│ │ │ ├── preinv_divrem_1.c
│ │ │ ├── preinv_mod_1.c
│ │ │ ├── redc_1.c
│ │ │ ├── rshift.c
│ │ │ ├── sqr_basecase.c
│ │ │ ├── sub_err1_n.c
│ │ │ ├── sub_err2_n.c
│ │ │ ├── sub_n.c
│ │ │ ├── submul_1.c
│ │ │ └── sumdiff_n.c
│ │ ├── haswell/
│ │ │ ├── add_n.as
│ │ │ ├── addlsh1_n.as
│ │ │ ├── avx/
│ │ │ │ ├── addmul_1.as
│ │ │ │ ├── com_n.as
│ │ │ │ ├── copyd.as
│ │ │ │ ├── copyi.as
│ │ │ │ ├── lshift.as
│ │ │ │ ├── lshift1.as
│ │ │ │ ├── mul_1.asm
│ │ │ │ ├── mul_basecase.as
│ │ │ │ ├── rshift.as
│ │ │ │ ├── rshift1.as
│ │ │ │ ├── sqr_basecase.asm
│ │ │ │ └── submul_1.as
│ │ │ ├── hgcd2.c
│ │ │ ├── karaadd.asm
│ │ │ ├── karasub.as
│ │ │ ├── nsumdiff_n.as
│ │ │ ├── sub_n.as
│ │ │ ├── sublsh1_n.as
│ │ │ └── sumdiff_n.as
│ │ ├── k8/
│ │ │ ├── add_err1_n.asm
│ │ │ ├── add_n.as
│ │ │ ├── addadd_n.as
│ │ │ ├── addlsh1_n.as
│ │ │ ├── addlsh_n.asm
│ │ │ ├── addmul_1.asm
│ │ │ ├── addmul_2.as
│ │ │ ├── addsub_n.as
│ │ │ ├── and_n.asm
│ │ │ ├── andn_n.as
│ │ │ ├── com_n.as
│ │ │ ├── copyd.as
│ │ │ ├── copyi.as
│ │ │ ├── divexact_byff.as
│ │ │ ├── divrem_hensel_qr_1_1.asm
│ │ │ ├── divrem_hensel_qr_1_2.asm
│ │ │ ├── divrem_hensel_r_1.asm
│ │ │ ├── double.asm
│ │ │ ├── half.asm
│ │ │ ├── hamdist.asm
│ │ │ ├── ior_n.asm
│ │ │ ├── iorn_n.as
│ │ │ ├── k10/
│ │ │ │ ├── hamdist.asm
│ │ │ │ ├── karaadd.asm
│ │ │ │ ├── karasub.asm
│ │ │ │ ├── lshift.as
│ │ │ │ ├── popcount.asm
│ │ │ │ └── rshift.as
│ │ │ ├── k8only/
│ │ │ │ ├── lshift2.asm
│ │ │ │ ├── lshift3.asm
│ │ │ │ ├── lshift4.asm
│ │ │ │ ├── lshift5.asm
│ │ │ │ ├── lshift6.asm
│ │ │ │ └── rshift2.asm
│ │ │ ├── karaadd.asm
│ │ │ ├── karasub.asm
│ │ │ ├── lshift.as
│ │ │ ├── lshift1.as
│ │ │ ├── lshiftc.asm
│ │ │ ├── mod_1_1.asm
│ │ │ ├── mod_1_2.asm
│ │ │ ├── mod_1_3.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── mul_2.as
│ │ │ ├── mul_basecase.as
│ │ │ ├── nand_n.asm
│ │ │ ├── nior_n.asm
│ │ │ ├── not.asm
│ │ │ ├── popcount.asm
│ │ │ ├── redc_1.as
│ │ │ ├── rsh1add_n.as
│ │ │ ├── rsh1sub_n.as
│ │ │ ├── rsh_divrem_hensel_qr_1_1.asm
│ │ │ ├── rsh_divrem_hensel_qr_1_2.asm
│ │ │ ├── rshift.asm
│ │ │ ├── rshift1.as
│ │ │ ├── store.asm
│ │ │ ├── sub_err1_n.asm
│ │ │ ├── sub_n.as
│ │ │ ├── subadd_n.as
│ │ │ ├── sublsh1_n.as
│ │ │ ├── sublsh_n.asm
│ │ │ ├── submul_1.asm
│ │ │ ├── sumdiff_n.as
│ │ │ ├── xnor_n.as
│ │ │ └── xor_n.asm
│ │ ├── longlong_inc.h
│ │ ├── modexact_1c_odd.as
│ │ ├── mullow_n_basecase.asm
│ │ ├── mulmid_basecase.asm
│ │ ├── nehalem/
│ │ │ ├── add_err1_n.asm
│ │ │ ├── add_n.as
│ │ │ ├── addadd_n.asm
│ │ │ ├── addlsh_n.as
│ │ │ ├── addmul_1.as
│ │ │ ├── addmul_2.as
│ │ │ ├── addsub_n.asm
│ │ │ ├── and_n.asm
│ │ │ ├── andn_n.asm
│ │ │ ├── com_n.asm
│ │ │ ├── copyd.asm
│ │ │ ├── copyi.asm
│ │ │ ├── divexact_byff.as
│ │ │ ├── divrem_hensel_qr_1_2.asm
│ │ │ ├── hamdist.asm
│ │ │ ├── ior_n.asm
│ │ │ ├── iorn_n.asm
│ │ │ ├── karaadd.asm
│ │ │ ├── karasub.asm
│ │ │ ├── lshift.asm
│ │ │ ├── mod_1_1.asm
│ │ │ ├── mod_1_2.asm
│ │ │ ├── mod_1_3.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── mul_2.asm
│ │ │ ├── mul_basecase.as
│ │ │ ├── nand_n.asm
│ │ │ ├── nior_n.asm
│ │ │ ├── popcount.asm
│ │ │ ├── redc_1.as
│ │ │ ├── rsh1add_n.as
│ │ │ ├── rsh1sub_n.as
│ │ │ ├── rsh_divrem_hensel_qr_1_2.asm
│ │ │ ├── rshift.asm
│ │ │ ├── store.asm
│ │ │ ├── sub_err1_n.asm
│ │ │ ├── sub_n.as
│ │ │ ├── subadd_n.asm
│ │ │ ├── sublsh1_n.as
│ │ │ ├── submul_1.as
│ │ │ ├── sumdiff_n.asm
│ │ │ ├── xnor_n.asm
│ │ │ └── xor_n.asm
│ │ ├── netburst/
│ │ │ ├── add_n.as
│ │ │ ├── addmul_1.as
│ │ │ ├── addmul_2.as
│ │ │ ├── and_n.as
│ │ │ ├── andn_n.as
│ │ │ ├── com_n.as
│ │ │ ├── divexact_byff.as
│ │ │ ├── ior_n.as
│ │ │ ├── iorn_n.as
│ │ │ ├── karaadd.asm
│ │ │ ├── karasub.asm
│ │ │ ├── lshift.as
│ │ │ ├── mul_1.as
│ │ │ ├── mul_2.as
│ │ │ ├── mul_basecase.as
│ │ │ ├── nand_n.as
│ │ │ ├── nior_n.as
│ │ │ ├── redc_1.as
│ │ │ ├── rshift.as
│ │ │ ├── sub_n.as
│ │ │ ├── submul_1.as
│ │ │ ├── xnor_n.as
│ │ │ └── xor_n.as
│ │ ├── sandybridge/
│ │ │ ├── add_n.as
│ │ │ ├── addmul_1.asm
│ │ │ ├── addmul_2.as
│ │ │ ├── and_n.asm
│ │ │ ├── andn_n.asm
│ │ │ ├── com_n.asm
│ │ │ ├── copyd.asm
│ │ │ ├── copyi.asm
│ │ │ ├── divexact_byff.as
│ │ │ ├── divrem_hensel_qr_1_1.asm
│ │ │ ├── hamdist.asm
│ │ │ ├── ior_n.asm
│ │ │ ├── iorn_n.asm
│ │ │ ├── karaadd.asm
│ │ │ ├── karasub.asm
│ │ │ ├── lshift.as
│ │ │ ├── lshift1.as
│ │ │ ├── lshift2.asm
│ │ │ ├── lshiftc.asm
│ │ │ ├── mod_1_1.asm
│ │ │ ├── mod_1_2.asm
│ │ │ ├── mod_1_3.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── mul_2.asm
│ │ │ ├── mul_basecase.as
│ │ │ ├── mullow_n_basecase.asm
│ │ │ ├── nand_n.asm
│ │ │ ├── nior_n.asm
│ │ │ ├── popcount.asm
│ │ │ ├── redc_1.as
│ │ │ ├── rsh_divrem_hensel_qr_1_1.asm
│ │ │ ├── rsh_divrem_hensel_qr_1_2.asm
│ │ │ ├── rshift.as
│ │ │ ├── store.asm
│ │ │ ├── sub_n.as
│ │ │ ├── submul_1.asm
│ │ │ ├── xnor_n.asm
│ │ │ └── xor_n.asm
│ │ ├── skylake/
│ │ │ ├── add_n.as
│ │ │ ├── avx/
│ │ │ │ ├── add_err1_n.as
│ │ │ │ ├── addmul_1.asm
│ │ │ │ ├── mul_1.as
│ │ │ │ ├── mul_basecase.asm
│ │ │ │ ├── sqr_basecase.asm
│ │ │ │ └── sub_err1_n.as
│ │ │ └── sub_n.as
│ │ ├── sqr_basecase.asm
│ │ ├── sub_err1_n.asm
│ │ ├── sub_err2_n.asm
│ │ └── x86_64-defs.m4
│ ├── x86_64w/
│ │ ├── add_err1_n.asm
│ │ ├── add_err2_n.asm
│ │ ├── addmul_2.asm
│ │ ├── atom/
│ │ │ ├── add_n.asm
│ │ │ ├── addlsh1_n.asm
│ │ │ ├── addlsh_n.asm
│ │ │ ├── addmul_1.asm
│ │ │ ├── addmul_2.asm
│ │ │ ├── and_n.asm
│ │ │ ├── andn_n.asm
│ │ │ ├── com_n.asm
│ │ │ ├── copyd.asm
│ │ │ ├── divexact_byff.asm
│ │ │ ├── divrem_hensel_qr_1_1.asm
│ │ │ ├── iorn_n.asm
│ │ │ ├── karaadd.asm
│ │ │ ├── karasub.asm
│ │ │ ├── lshift1.asm
│ │ │ ├── mod_1_1.asm
│ │ │ ├── mod_1_2.asm
│ │ │ ├── mod_1_3.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── mul_2.asm
│ │ │ ├── mul_basecase.asm
│ │ │ ├── nand_n.asm
│ │ │ ├── nior_n.asm
│ │ │ ├── redc_1.asm
│ │ │ ├── rsh1add_n.asm
│ │ │ ├── rsh1sub_n.asm
│ │ │ ├── rsh_divrem_hensel_qr_1_1.asm
│ │ │ ├── sqr_basecase.asm
│ │ │ ├── store.asm
│ │ │ ├── sub_n.asm
│ │ │ ├── sublsh1_n.asm
│ │ │ ├── sublsh_n.asm
│ │ │ ├── submul_1.asm
│ │ │ └── xnor_n.asm
│ │ ├── bobcat/
│ │ │ ├── add_err1_n.asm
│ │ │ ├── add_n.asm
│ │ │ ├── addadd_n.asm
│ │ │ ├── addlsh1_n.asm
│ │ │ ├── addlsh_n.asm
│ │ │ ├── addmul_1.asm
│ │ │ ├── addsub_n.asm
│ │ │ ├── and_n.asm
│ │ │ ├── andn_n.asm
│ │ │ ├── com_n.asm
│ │ │ ├── copyd.asm
│ │ │ ├── copyi.asm
│ │ │ ├── divexact_byff.asm
│ │ │ ├── divrem_hensel_qr_1_1.asm
│ │ │ ├── divrem_hensel_qr_1_2.asm
│ │ │ ├── divrem_hensel_r_1.asm
│ │ │ ├── hamdist.asm
│ │ │ ├── ior_n.asm
│ │ │ ├── iorn_n.asm
│ │ │ ├── karaadd.asm
│ │ │ ├── karasub.asm
│ │ │ ├── lshift.asm
│ │ │ ├── lshift1.asm
│ │ │ ├── lshift2.asm
│ │ │ ├── lshiftc.asm
│ │ │ ├── mod_1_1.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── mul_basecase.asm
│ │ │ ├── nand_n.asm
│ │ │ ├── nior_n.asm
│ │ │ ├── not.asm
│ │ │ ├── popcount.asm
│ │ │ ├── redc_1.asm
│ │ │ ├── rsh1add_n.asm
│ │ │ ├── rsh1sub_n.asm
│ │ │ ├── rsh_divrem_hensel_qr_1_1.asm
│ │ │ ├── rsh_divrem_hensel_qr_1_2.asm
│ │ │ ├── rshift.asm
│ │ │ ├── rshift2.asm
│ │ │ ├── sqr_basecase.asm
│ │ │ ├── store.asm
│ │ │ ├── sub_err1_n.asm
│ │ │ ├── sub_n.asm
│ │ │ ├── subadd_n.asm
│ │ │ ├── sublsh1_n.asm
│ │ │ ├── sublsh_n.asm
│ │ │ ├── submul_1.asm
│ │ │ ├── sumdiff_n.asm
│ │ │ ├── xnor_n.asm
│ │ │ └── xor_n.asm
│ │ ├── broadwell/
│ │ │ └── avx/
│ │ │ ├── addsub_n.asm
│ │ │ ├── and_n.asm
│ │ │ ├── andn_n.asm
│ │ │ ├── ior_n.asm
│ │ │ ├── iorn_n.asm
│ │ │ ├── nand_n.asm
│ │ │ ├── nior_n.asm
│ │ │ ├── subadd_n.asm
│ │ │ ├── xnor_n.asm
│ │ │ └── xor_n.asm
│ │ ├── bulldozer/
│ │ │ ├── com_n.asm
│ │ │ ├── copyd.asm
│ │ │ ├── copyi.asm
│ │ │ ├── lshift.asm
│ │ │ ├── mul_basecase.asm
│ │ │ └── rshift.asm
│ │ ├── core2/
│ │ │ ├── add_n.asm
│ │ │ ├── addadd_n.asm
│ │ │ ├── addlsh1_n.asm
│ │ │ ├── addlsh_n.asm
│ │ │ ├── addmul_1.asm
│ │ │ ├── addmul_2.asm
│ │ │ ├── addsub_n.asm
│ │ │ ├── and_n.asm
│ │ │ ├── andn_n.asm
│ │ │ ├── com_n.asm
│ │ │ ├── copyd.asm
│ │ │ ├── copyi.asm
│ │ │ ├── divexact_byff.asm
│ │ │ ├── divrem_hensel_qr_1_2.asm
│ │ │ ├── hamdist.asm
│ │ │ ├── ior_n.asm
│ │ │ ├── iorn_n.asm
│ │ │ ├── karaadd.asm
│ │ │ ├── karasub.asm
│ │ │ ├── lshift.asm
│ │ │ ├── lshift1.asm
│ │ │ ├── mod_1_1.asm
│ │ │ ├── mod_1_2.asm
│ │ │ ├── mod_1_3.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── mul_2.asm
│ │ │ ├── mul_basecase.asm
│ │ │ ├── mullow_n_basecase.asm
│ │ │ ├── nand_n.asm
│ │ │ ├── nior_n.asm
│ │ │ ├── penryn/
│ │ │ │ ├── mod_1_1.asm
│ │ │ │ └── sumdiff_n.asm
│ │ │ ├── popcount.asm
│ │ │ ├── redc_1.asm
│ │ │ ├── rsh1add_n.asm
│ │ │ ├── rsh1sub_n.asm
│ │ │ ├── rsh_divrem_hensel_qr_1_2.asm
│ │ │ ├── rshift.asm
│ │ │ ├── rshift1.asm
│ │ │ ├── store.asm
│ │ │ ├── sub_n.asm
│ │ │ ├── subadd_n.asm
│ │ │ ├── sublsh1_n.asm
│ │ │ ├── submul_1.asm
│ │ │ ├── sumdiff_n.asm
│ │ │ ├── udiv_qrnnd.asm
│ │ │ ├── umul_ppmm.asm
│ │ │ ├── xnor_n.asm
│ │ │ └── xor_n.asm
│ │ ├── divexact_1.asm
│ │ ├── divexact_by3c.asm
│ │ ├── divexact_byfobm1.asm
│ │ ├── divrem_2.asm
│ │ ├── divrem_euclidean_qr_1.asm
│ │ ├── divrem_euclidean_qr_2.asm
│ │ ├── fat/
│ │ │ ├── add_n.c
│ │ │ ├── addmul_1.c
│ │ │ ├── copyd.c
│ │ │ ├── copyi.c
│ │ │ ├── divexact_1.c
│ │ │ ├── divexact_by3c.c
│ │ │ ├── divexact_byfobm1.c
│ │ │ ├── divrem_1.c
│ │ │ ├── divrem_2.c
│ │ │ ├── divrem_euclidean_qr_1.c
│ │ │ ├── divrem_euclidean_qr_2.c
│ │ │ ├── fat.c
│ │ │ ├── fat_entry.asm
│ │ │ ├── gcd_1.c
│ │ │ ├── lshift.c
│ │ │ ├── mod_1.c
│ │ │ ├── mod_34lsub1.c
│ │ │ ├── modexact_1c_odd.c
│ │ │ ├── mul_1.c
│ │ │ ├── mul_basecase.c
│ │ │ ├── preinv_divrem_1.c
│ │ │ ├── preinv_mod_1.c
│ │ │ ├── redc_1.c
│ │ │ ├── rshift.c
│ │ │ ├── sqr_basecase.c
│ │ │ ├── sub_n.c
│ │ │ ├── submul_1.c
│ │ │ └── sumdiff_n.c
│ │ ├── haswell/
│ │ │ ├── add_n.asm
│ │ │ ├── addlsh1_n.asm
│ │ │ ├── addmul_1.asm
│ │ │ ├── addmul_2.asm
│ │ │ ├── and_n.asm
│ │ │ ├── andn_n.asm
│ │ │ ├── avx/
│ │ │ │ ├── addmul_1.asm
│ │ │ │ ├── addsub_n.asm
│ │ │ │ ├── and_n.asm
│ │ │ │ ├── andn_n.asm
│ │ │ │ ├── com_n.asm
│ │ │ │ ├── copyd.asm
│ │ │ │ ├── copyi.asm
│ │ │ │ ├── ior_n.asm
│ │ │ │ ├── iorn_n.asm
│ │ │ │ ├── lshift.asm
│ │ │ │ ├── lshift1.asm
│ │ │ │ ├── mul_1.asm
│ │ │ │ ├── mul_basecase.asm
│ │ │ │ ├── nand_n.asm
│ │ │ │ ├── nior_n.asm
│ │ │ │ ├── rshift.asm
│ │ │ │ ├── rshift1.asm
│ │ │ │ ├── sqr_basecase.asm
│ │ │ │ ├── subadd_n.asm
│ │ │ │ ├── submul_1.asm
│ │ │ │ ├── xnor_n.asm
│ │ │ │ └── xor_n.asm
│ │ │ ├── com_n.asm
│ │ │ ├── copyd.asm
│ │ │ ├── copyi.asm
│ │ │ ├── divexact_byff.asm
│ │ │ ├── divrem_hensel_qr_1_1.asm
│ │ │ ├── hamdist.asm
│ │ │ ├── ior_n.asm
│ │ │ ├── iorn_n.asm
│ │ │ ├── karaadd.asm
│ │ │ ├── karasub.asm
│ │ │ ├── lshift.asm
│ │ │ ├── lshift1.asm
│ │ │ ├── lshiftc.asm
│ │ │ ├── mod_1_1.asm
│ │ │ ├── mod_1_2.asm
│ │ │ ├── mod_1_3.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── mul_2.asm
│ │ │ ├── mul_basecase.asm
│ │ │ ├── nand_n.asm
│ │ │ ├── nior_n.asm
│ │ │ ├── nsumdiff_n.asm
│ │ │ ├── popcount.asm
│ │ │ ├── redc_1.asm
│ │ │ ├── rsh_divrem_hensel_qr_1_1.asm
│ │ │ ├── rsh_divrem_hensel_qr_1_2.asm
│ │ │ ├── rshift.asm
│ │ │ ├── rshift1.asm
│ │ │ ├── sqr_basecase.asm
│ │ │ ├── store.asm
│ │ │ ├── sub_n.asm
│ │ │ ├── sublsh1_n.asm
│ │ │ ├── submul_1.asm
│ │ │ ├── sumdiff_n.asm
│ │ │ ├── xnor_n.asm
│ │ │ └── xor_n.asm
│ │ ├── k8/
│ │ │ ├── add_err1_n.asm
│ │ │ ├── add_n.asm
│ │ │ ├── addadd_n.asm
│ │ │ ├── addlsh1_n.asm
│ │ │ ├── addlsh_n.asm
│ │ │ ├── addmul_1.asm
│ │ │ ├── addmul_2.asm
│ │ │ ├── addsub_n.asm
│ │ │ ├── and_n.asm
│ │ │ ├── andn_n.asm
│ │ │ ├── com_n.asm
│ │ │ ├── copyd.asm
│ │ │ ├── copyi.asm
│ │ │ ├── divexact_byff.asm
│ │ │ ├── divrem_hensel_qr_1_1.asm
│ │ │ ├── divrem_hensel_qr_1_2.asm
│ │ │ ├── divrem_hensel_r_1.asm
│ │ │ ├── double.asm
│ │ │ ├── half.asm
│ │ │ ├── hamdist.asm
│ │ │ ├── ior_n.asm
│ │ │ ├── iorn_n.asm
│ │ │ ├── k10/
│ │ │ │ ├── hamdist.asm
│ │ │ │ ├── karaadd.asm
│ │ │ │ ├── karasub.asm
│ │ │ │ ├── lshift.asm
│ │ │ │ ├── popcount.asm
│ │ │ │ ├── rshift.asm
│ │ │ │ └── store.asm
│ │ │ ├── karaadd.asm
│ │ │ ├── karasub.asm
│ │ │ ├── lshift.asm
│ │ │ ├── lshift1.asm
│ │ │ ├── lshift2.asm
│ │ │ ├── lshift3.asm
│ │ │ ├── lshift4.asm
│ │ │ ├── lshift5.asm
│ │ │ ├── lshift6.asm
│ │ │ ├── lshiftc.asm
│ │ │ ├── mod_1_1.asm
│ │ │ ├── mod_1_2.asm
│ │ │ ├── mod_1_3.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── mul_2.asm
│ │ │ ├── mul_basecase.asm
│ │ │ ├── nand_n.asm
│ │ │ ├── nior_n.asm
│ │ │ ├── not.asm
│ │ │ ├── popcount.asm
│ │ │ ├── redc_1.asm
│ │ │ ├── rsh1add_n.asm
│ │ │ ├── rsh1sub_n.asm
│ │ │ ├── rsh_divrem_hensel_qr_1_1.asm
│ │ │ ├── rsh_divrem_hensel_qr_1_2.asm
│ │ │ ├── rshift.asm
│ │ │ ├── rshift1.asm
│ │ │ ├── rshift2.asm
│ │ │ ├── store.asm
│ │ │ ├── sub_err1_n.asm
│ │ │ ├── sub_n.asm
│ │ │ ├── subadd_n.asm
│ │ │ ├── sublsh1_n.asm
│ │ │ ├── sublsh_n.asm
│ │ │ ├── submul_1.asm
│ │ │ ├── sumdiff_n.asm
│ │ │ ├── udiv_qrnnd.asm
│ │ │ ├── umul_ppmm.asm
│ │ │ ├── xnor_n.asm
│ │ │ └── xor_n.asm
│ │ ├── longlong_inc.h
│ │ ├── modexact_1c_odd.asm
│ │ ├── mul_2.asm
│ │ ├── mullow_n_basecase.asm
│ │ ├── mulmid_basecase.asm
│ │ ├── nehalem/
│ │ │ ├── add_err1_n.asm
│ │ │ ├── add_n.asm
│ │ │ ├── addadd_n.asm
│ │ │ ├── addlsh1_n.asm
│ │ │ ├── addlsh_n.asm
│ │ │ ├── addmul_1.asm
│ │ │ ├── addmul_2.asm
│ │ │ ├── addsub_n.asm
│ │ │ ├── and_n.asm
│ │ │ ├── andn_n.asm
│ │ │ ├── com_n.asm
│ │ │ ├── copyd.asm
│ │ │ ├── copyi.asm
│ │ │ ├── divexact_byff.asm
│ │ │ ├── divrem_hensel_qr_1_2.asm
│ │ │ ├── hamdist.asm
│ │ │ ├── ior_n.asm
│ │ │ ├── iorn_n.asm
│ │ │ ├── karaadd.asm
│ │ │ ├── karasub.asm
│ │ │ ├── lshift.asm
│ │ │ ├── mod_1_1.asm
│ │ │ ├── mod_1_2.asm
│ │ │ ├── mod_1_3.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── mul_2.asm
│ │ │ ├── mul_basecase.asm
│ │ │ ├── nand_n.asm
│ │ │ ├── nior_n.asm
│ │ │ ├── popcount.asm
│ │ │ ├── redc_1.asm
│ │ │ ├── rsh1add_n.asm
│ │ │ ├── rsh1sub_n.asm
│ │ │ ├── rsh_divrem_hensel_qr_1_2.asm
│ │ │ ├── rshift.asm
│ │ │ ├── store.asm
│ │ │ ├── sub_err1_n.asm
│ │ │ ├── sub_n.asm
│ │ │ ├── subadd_n.asm
│ │ │ ├── sublsh1_n.asm
│ │ │ ├── submul_1.asm
│ │ │ ├── sumdiff_n.asm
│ │ │ ├── xnor_n.asm
│ │ │ └── xor_n.asm
│ │ ├── netburst/
│ │ │ ├── addmul_1.asm
│ │ │ ├── addmul_2.asm
│ │ │ ├── and_n.asm
│ │ │ ├── andn_n.asm
│ │ │ ├── com_n.asm
│ │ │ ├── ior_n.asm
│ │ │ ├── iorn_n.asm
│ │ │ ├── karaadd.asm
│ │ │ ├── karasub.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── mul_2.asm
│ │ │ ├── mul_basecase.asm
│ │ │ ├── nand_n.asm
│ │ │ ├── nior_n.asm
│ │ │ ├── redc_1.asm
│ │ │ ├── submul_1.asm
│ │ │ ├── xnor_n.asm
│ │ │ └── xor_n.asm
│ │ ├── sandybridge/
│ │ │ ├── add_n.asm
│ │ │ ├── addmul_1.asm
│ │ │ ├── addmul_2.asm
│ │ │ ├── and_n.asm
│ │ │ ├── andn_n.asm
│ │ │ ├── com_n.asm
│ │ │ ├── copyd.asm
│ │ │ ├── copyi.asm
│ │ │ ├── divexact_byff.asm
│ │ │ ├── divrem_hensel_qr_1_1.asm
│ │ │ ├── hamdist.asm
│ │ │ ├── ior_n.asm
│ │ │ ├── iorn_n.asm
│ │ │ ├── karaadd.asm
│ │ │ ├── karasub.asm
│ │ │ ├── lshift.asm
│ │ │ ├── lshift1.asm
│ │ │ ├── lshiftc.asm
│ │ │ ├── mod_1_1.asm
│ │ │ ├── mod_1_2.asm
│ │ │ ├── mod_1_3.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── mul_2.asm
│ │ │ ├── mul_basecase.asm
│ │ │ ├── mullow_n_basecase.asm
│ │ │ ├── nand_n.asm
│ │ │ ├── nior_n.asm
│ │ │ ├── popcount.asm
│ │ │ ├── redc_1.asm
│ │ │ ├── rsh_divrem_hensel_qr_1_1.asm
│ │ │ ├── rsh_divrem_hensel_qr_1_2.asm
│ │ │ ├── rshift.asm
│ │ │ ├── store.asm
│ │ │ ├── sub_n.asm
│ │ │ ├── submul_1.asm
│ │ │ ├── xnor_n.asm
│ │ │ └── xor_n.asm
│ │ ├── skylake/
│ │ │ ├── add_n.asm
│ │ │ ├── addlsh1_n.asm
│ │ │ ├── addmul_1.asm
│ │ │ ├── addmul_2.asm
│ │ │ ├── and_n.asm
│ │ │ ├── andn_n.asm
│ │ │ ├── avx/
│ │ │ │ ├── add_err1_n.asm
│ │ │ │ ├── add_n.asm
│ │ │ │ ├── addmul_1.asm
│ │ │ │ ├── addsub_n.asm
│ │ │ │ ├── and_n.asm
│ │ │ │ ├── andn_n.asm
│ │ │ │ ├── ior_n.asm
│ │ │ │ ├── iorn_n.asm
│ │ │ │ ├── lshift.asm
│ │ │ │ ├── lshift1.asm
│ │ │ │ ├── mul_1.asm
│ │ │ │ ├── mul_basecase.asm
│ │ │ │ ├── nand_n.asm
│ │ │ │ ├── nior_n.asm
│ │ │ │ ├── rshift.asm
│ │ │ │ ├── rshift1.asm
│ │ │ │ ├── sqr_basecase.asm
│ │ │ │ ├── sub_err1_n.asm
│ │ │ │ ├── sub_n.asm
│ │ │ │ ├── subadd_n.asm
│ │ │ │ ├── xnor_n.asm
│ │ │ │ └── xor_n.asm
│ │ │ ├── com_n.asm
│ │ │ ├── copyd.asm
│ │ │ ├── copyi.asm
│ │ │ ├── divexact_byff.asm
│ │ │ ├── divrem_hensel_qr_1_1.asm
│ │ │ ├── hamdist.asm
│ │ │ ├── ior_n.asm
│ │ │ ├── iorn_n.asm
│ │ │ ├── karaadd.asm
│ │ │ ├── karasub.asm
│ │ │ ├── lshift.asm
│ │ │ ├── lshift1.asm
│ │ │ ├── lshiftc.asm
│ │ │ ├── mod_1_1.asm
│ │ │ ├── mod_1_2.asm
│ │ │ ├── mod_1_3.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── mul_2.asm
│ │ │ ├── mul_basecase.asm
│ │ │ ├── mullow_n_basecase.asm
│ │ │ ├── nand_n.asm
│ │ │ ├── nior_n.asm
│ │ │ ├── popcount.asm
│ │ │ ├── redc_1.asm
│ │ │ ├── rsh_divrem_hensel_qr_1_1.asm
│ │ │ ├── rsh_divrem_hensel_qr_1_2.asm
│ │ │ ├── rshift.asm
│ │ │ ├── sqr_basecase.asm
│ │ │ ├── store.asm
│ │ │ ├── sub_n.asm
│ │ │ ├── sublsh1_n.asm
│ │ │ ├── submul_1.asm
│ │ │ ├── sumdiff_n.asm
│ │ │ ├── xnor_n.asm
│ │ │ └── xor_n.asm
│ │ ├── sqr_basecase.asm
│ │ ├── sub_err1_n.asm
│ │ ├── sub_err2_n.asm
│ │ ├── udiv_qrnnd.asm
│ │ └── umul_ppmm.asm
│ └── x86w/
│ ├── add_n.asm
│ ├── addmul_1.asm
│ ├── copyd.asm
│ ├── copyi.asm
│ ├── divexact_1.asm
│ ├── divexact_by3c.asm
│ ├── divrem_1.asm
│ ├── longlong_inc.h
│ ├── lshift.asm
│ ├── mod_1.asm
│ ├── mod_34lsub1.asm
│ ├── mul_1.asm
│ ├── mul_basecase.asm
│ ├── p3/
│ │ ├── addmul_1.asm
│ │ ├── copyd.asm
│ │ ├── divexact_1.asm
│ │ ├── divexact_by3c.asm
│ │ ├── divrem_1.asm
│ │ ├── hamdist.asm
│ │ ├── lshift.asm
│ │ ├── mod_1.asm
│ │ ├── p3mmx/
│ │ │ ├── hamdist.asm
│ │ │ └── popcount.asm
│ │ ├── popcount.asm
│ │ └── submul_1.asm
│ ├── p4/
│ │ ├── add_n.asm
│ │ ├── addmul_1.asm
│ │ ├── copyd.asm
│ │ ├── copyi.asm
│ │ ├── divexact_1.asm
│ │ ├── divexact_by3c.asm
│ │ ├── hamdist.asm
│ │ ├── lshift.asm
│ │ ├── mmx/
│ │ │ ├── hamdist.asm
│ │ │ ├── lshift.asm
│ │ │ ├── popcount.asm
│ │ │ └── rshift.asm
│ │ ├── mod_34lsub1.asm
│ │ ├── modexact_1c_odd.asm
│ │ ├── mul_1.asm
│ │ ├── mul_basecase.asm
│ │ ├── popcount.asm
│ │ ├── rshift.asm
│ │ ├── sqr_basecase.asm
│ │ ├── sse2/
│ │ │ ├── add_n.asm
│ │ │ ├── addmul_1.asm
│ │ │ ├── divexact_1.asm
│ │ │ ├── divexact_by3c.asm
│ │ │ ├── mod_34lsub1.asm
│ │ │ ├── modexact_1c_odd.asm
│ │ │ ├── mul_1.asm
│ │ │ ├── mul_basecase.asm
│ │ │ ├── sqr_basecase.asm
│ │ │ ├── sub_n.asm
│ │ │ └── submul_1.asm
│ │ ├── sub_n.asm
│ │ └── submul_1.asm
│ ├── p6/
│ │ ├── addmul_1.asm
│ │ ├── copyd.asm
│ │ ├── divexact_1.asm
│ │ ├── divexact_by3c.asm
│ │ ├── mmx/
│ │ │ ├── divrem_1.asm
│ │ │ ├── hamdist.asm
│ │ │ ├── lshift.asm
│ │ │ ├── popcount.asm
│ │ │ └── rshift.asm
│ │ ├── mod_1.asm
│ │ ├── modexact_1c_odd.asm
│ │ ├── p3mmx/
│ │ │ ├── hamdist.asm
│ │ │ └── popcount.asm
│ │ ├── sqr_basecase.asm
│ │ └── submul_1.asm
│ ├── pentium4/
│ │ ├── copyd.asm
│ │ ├── copyi.asm
│ │ ├── mmx/
│ │ │ ├── hamdist.asm
│ │ │ ├── lshift.asm
│ │ │ ├── popcount.asm
│ │ │ └── rshift.asm
│ │ └── sse2/
│ │ ├── add_n.asm
│ │ ├── addmul_1.asm
│ │ ├── divexact_1.asm
│ │ ├── divexact_by3c.asm
│ │ ├── mod_34lsub1.asm
│ │ ├── modexact_1c_odd.asm
│ │ ├── mul_1.asm
│ │ ├── mul_basecase.asm
│ │ ├── sqr_basecase.asm
│ │ ├── sub_n.asm
│ │ └── submul_1.asm
│ ├── rshift.asm
│ ├── sub_n.asm
│ ├── submul_1.asm
│ ├── udiv_qrnnd.asm
│ ├── umul_ppmm.asm
│ └── x86i.inc
├── mpq/
│ ├── Makefile.am
│ ├── abs.c
│ ├── aors.c
│ ├── canonicalize.c
│ ├── clear.c
│ ├── clears.c
│ ├── cmp.c
│ ├── cmp_si.c
│ ├── cmp_ui.c
│ ├── div.c
│ ├── equal.c
│ ├── get_d.c
│ ├── get_den.c
│ ├── get_num.c
│ ├── get_str.c
│ ├── init.c
│ ├── inits.c
│ ├── inp_str.c
│ ├── inv.c
│ ├── md_2exp.c
│ ├── mul.c
│ ├── neg.c
│ ├── out_str.c
│ ├── set.c
│ ├── set_d.c
│ ├── set_den.c
│ ├── set_f.c
│ ├── set_num.c
│ ├── set_si.c
│ ├── set_str.c
│ ├── set_ui.c
│ ├── set_z.c
│ └── swap.c
├── mpz/
│ ├── 2fac_ui.c
│ ├── Makefile.am
│ ├── abs.c
│ ├── add.c
│ ├── add_ui.c
│ ├── and.c
│ ├── aors.h
│ ├── aors_ui.h
│ ├── aorsmul.c
│ ├── aorsmul_i.c
│ ├── array_init.c
│ ├── bin_ui.c
│ ├── bin_uiui.c
│ ├── cdiv_q.c
│ ├── cdiv_q_ui.c
│ ├── cdiv_qr.c
│ ├── cdiv_qr_ui.c
│ ├── cdiv_r.c
│ ├── cdiv_r_ui.c
│ ├── cdiv_ui.c
│ ├── cfdiv_q_2exp.c
│ ├── cfdiv_r_2exp.c
│ ├── clear.c
│ ├── clears.c
│ ├── clrbit.c
│ ├── cmp.c
│ ├── cmp_d.c
│ ├── cmp_si.c
│ ├── cmp_ui.c
│ ├── cmpabs.c
│ ├── cmpabs_d.c
│ ├── cmpabs_ui.c
│ ├── com.c
│ ├── combit.c
│ ├── cong.c
│ ├── cong_2exp.c
│ ├── cong_ui.c
│ ├── dive_ui.c
│ ├── divegcd.c
│ ├── divexact.c
│ ├── divis.c
│ ├── divis_2exp.c
│ ├── divis_ui.c
│ ├── dump.c
│ ├── export.c
│ ├── fac_ui.c
│ ├── fdiv_q.c
│ ├── fdiv_q_ui.c
│ ├── fdiv_qr.c
│ ├── fdiv_qr_ui.c
│ ├── fdiv_r.c
│ ├── fdiv_r_ui.c
│ ├── fdiv_ui.c
│ ├── fib2_ui.c
│ ├── fib_ui.c
│ ├── fits_s.h
│ ├── fits_si.c
│ ├── fits_sint.c
│ ├── fits_slong.c
│ ├── fits_sshort.c
│ ├── fits_ui.c
│ ├── fits_uint.c
│ ├── fits_ulong.c
│ ├── fits_ushort.c
│ ├── gcd.c
│ ├── gcd_ui.c
│ ├── gcdext.c
│ ├── get_d.c
│ ├── get_d_2exp.c
│ ├── get_si.c
│ ├── get_str.c
│ ├── get_sx.c
│ ├── get_ui.c
│ ├── get_ux.c
│ ├── getlimbn.c
│ ├── hamdist.c
│ ├── import.c
│ ├── init.c
│ ├── init2.c
│ ├── inits.c
│ ├── inp_raw.c
│ ├── inp_str.c
│ ├── invert.c
│ ├── ior.c
│ ├── iset.c
│ ├── iset_d.c
│ ├── iset_si.c
│ ├── iset_str.c
│ ├── iset_sx.c
│ ├── iset_ui.c
│ ├── iset_ux.c
│ ├── jacobi.c
│ ├── kronsz.c
│ ├── kronuz.c
│ ├── kronzs.c
│ ├── kronzu.c
│ ├── lcm.c
│ ├── lcm_ui.c
│ ├── likely_prime_p.c
│ ├── limbs_finish.c
│ ├── limbs_modify.c
│ ├── limbs_read.c
│ ├── limbs_write.c
│ ├── lucnum2_ui.c
│ ├── lucnum_ui.c
│ ├── mfac_uiui.c
│ ├── miller_rabin.c
│ ├── millerrabin.c
│ ├── mod.c
│ ├── mul.c
│ ├── mul_2exp.c
│ ├── mul_i.h
│ ├── mul_si.c
│ ├── mul_ui.c
│ ├── n_pow_ui.c
│ ├── neg.c
│ ├── next_prime_candidate.c
│ ├── nextprime.c
│ ├── nthroot.c
│ ├── oddfac_1.c
│ ├── out_raw.c
│ ├── out_str.c
│ ├── perfpow.c
│ ├── perfsqr.c
│ ├── popcount.c
│ ├── pow_ui.c
│ ├── powm.c
│ ├── powm_ui.c
│ ├── pprime_p.c
│ ├── primorial_ui.c
│ ├── probable_prime_p.c
│ ├── prodlimbs.c
│ ├── realloc.c
│ ├── realloc2.c
│ ├── remove.c
│ ├── roinit_n.c
│ ├── root.c
│ ├── rootrem.c
│ ├── rrandomb.c
│ ├── scan0.c
│ ├── scan1.c
│ ├── set.c
│ ├── set_d.c
│ ├── set_f.c
│ ├── set_q.c
│ ├── set_si.c
│ ├── set_str.c
│ ├── set_sx.c
│ ├── set_ui.c
│ ├── set_ux.c
│ ├── setbit.c
│ ├── size.c
│ ├── sizeinbase.c
│ ├── sqrt.c
│ ├── sqrtrem.c
│ ├── sub.c
│ ├── sub_ui.c
│ ├── swap.c
│ ├── tdiv_q.c
│ ├── tdiv_q_2exp.c
│ ├── tdiv_q_ui.c
│ ├── tdiv_qr.c
│ ├── tdiv_qr_ui.c
│ ├── tdiv_r.c
│ ├── tdiv_r_2exp.c
│ ├── tdiv_r_ui.c
│ ├── tdiv_ui.c
│ ├── trial_division.c
│ ├── tstbit.c
│ ├── ui_pow_ui.c
│ ├── ui_sub.c
│ ├── urandomb.c
│ ├── urandomm.c
│ └── xor.c
├── nextprime.c
├── primesieve.c
├── printf/
│ ├── Makefile.am
│ ├── asprintf.c
│ ├── asprntffuns.c
│ ├── doprnt.c
│ ├── doprntf.c
│ ├── doprnti.c
│ ├── fprintf.c
│ ├── obprintf.c
│ ├── obprntffuns.c
│ ├── obvprintf.c
│ ├── printf.c
│ ├── printffuns.c
│ ├── repl-vsnprintf.c
│ ├── snprintf.c
│ ├── snprntffuns.c
│ ├── sprintf.c
│ ├── sprintffuns.c
│ ├── vasprintf.c
│ ├── vfprintf.c
│ ├── vprintf.c
│ ├── vsnprintf.c
│ └── vsprintf.c
├── randbui.c
├── randclr.c
├── randdef.c
├── randiset.c
├── randlc2s.c
├── randlc2x.c
├── randmt.c
├── randmt.h
├── randmts.c
├── randmui.c
├── rands.c
├── randsd.c
├── randsdui.c
├── scanf/
│ ├── Makefile.am
│ ├── doscan.c
│ ├── fscanf.c
│ ├── fscanffuns.c
│ ├── scanf.c
│ ├── sscanf.c
│ ├── sscanffuns.c
│ ├── vfscanf.c
│ ├── vscanf.c
│ └── vsscanf.c
├── strip_fPIC.sh
├── tal-debug.c
├── tal-notreent.c
├── tal-reent.c
├── tests/
│ ├── Makefile.am
│ ├── cxx/
│ │ ├── Makefile.am
│ │ ├── clocale.c
│ │ ├── t-assign.cc
│ │ ├── t-binary.cc
│ │ ├── t-cast.cc
│ │ ├── t-constr.cc
│ │ ├── t-headers.cc
│ │ ├── t-istream.cc
│ │ ├── t-locale.cc
│ │ ├── t-misc.cc
│ │ ├── t-ops.cc
│ │ ├── t-ostream.cc
│ │ ├── t-prec.cc
│ │ ├── t-rand.cc
│ │ ├── t-ternary.cc
│ │ └── t-unary.cc
│ ├── devel/
│ │ ├── Makefile.am
│ │ ├── README
│ │ ├── addmul_N.c
│ │ ├── anymul_1.c
│ │ ├── aors_n.c
│ │ ├── copy.c
│ │ ├── divmod_1.c
│ │ ├── logops_n.c
│ │ ├── mul_N.c
│ │ ├── shift.c
│ │ └── try.c
│ ├── fft/
│ │ ├── Makefile.am
│ │ ├── t-adjust.c
│ │ ├── t-adjust_sqrt2.c
│ │ ├── t-butterfly.c
│ │ ├── t-butterfly_lshB.c
│ │ ├── t-butterfly_rshB.c
│ │ ├── t-butterfly_sqrt2.c
│ │ ├── t-butterfly_twiddle.c
│ │ ├── t-div_2expmod_2expp1.c
│ │ ├── t-fft_ifft_mfa_trunc_sqrt2.c
│ │ ├── t-fft_ifft_negacyclic.c
│ │ ├── t-fft_ifft_radix2.c
│ │ ├── t-fft_ifft_trunc.c
│ │ ├── t-fft_ifft_trunc_sqrt2.c
│ │ ├── t-mul_2expmod_2expp1.c
│ │ ├── t-mul_fft_main.c
│ │ ├── t-mul_mfa_trunc_sqrt2.c
│ │ ├── t-mul_trunc_sqrt2.c
│ │ ├── t-mulmod_2expp1.c
│ │ ├── t-normmod_2expp1.c
│ │ └── t-split_combine_bits.c
│ ├── memory.c
│ ├── misc/
│ │ ├── Makefile.am
│ │ ├── t-locale.c
│ │ ├── t-printf.c
│ │ └── t-scanf.c
│ ├── misc.c
│ ├── mpf/
│ │ ├── Makefile.am
│ │ ├── reuse.c
│ │ ├── t-add.c
│ │ ├── t-cmp_d.c
│ │ ├── t-cmp_si.c
│ │ ├── t-conv.c
│ │ ├── t-div.c
│ │ ├── t-dm2exp.c
│ │ ├── t-eq.c
│ │ ├── t-fits.c
│ │ ├── t-get_d.c
│ │ ├── t-get_d_2exp.c
│ │ ├── t-get_si.c
│ │ ├── t-get_ui.c
│ │ ├── t-gsprec.c
│ │ ├── t-inp_str.c
│ │ ├── t-int_p.c
│ │ ├── t-mul_ui.c
│ │ ├── t-muldiv.c
│ │ ├── t-set.c
│ │ ├── t-set_q.c
│ │ ├── t-set_si.c
│ │ ├── t-set_ui.c
│ │ ├── t-sqrt.c
│ │ ├── t-sqrt_ui.c
│ │ ├── t-sub.c
│ │ ├── t-trunc.c
│ │ └── t-ui_div.c
│ ├── mpn/
│ │ ├── Makefile.am
│ │ ├── t-addadd_n.c
│ │ ├── t-addsub_n.c
│ │ ├── t-aors_1.c
│ │ ├── t-asmtype.c
│ │ ├── t-dc_bdiv_q.c
│ │ ├── t-dc_bdiv_q_n.c
│ │ ├── t-dc_bdiv_qr.c
│ │ ├── t-dc_bdiv_qr_n.c
│ │ ├── t-dc_div_q.c
│ │ ├── t-dc_div_qr.c
│ │ ├── t-dc_div_qr_n.c
│ │ ├── t-dc_divappr_q.c
│ │ ├── t-divebyff.c
│ │ ├── t-divebyfobm1.c
│ │ ├── t-divrem_1.c
│ │ ├── t-fat.c
│ │ ├── t-gcdext.c
│ │ ├── t-get_d.c
│ │ ├── t-hgcd.c
│ │ ├── t-instrument.c
│ │ ├── t-inv_div_q.c
│ │ ├── t-inv_div_qr.c
│ │ ├── t-inv_div_qr_n.c
│ │ ├── t-inv_divappr_q.c
│ │ ├── t-inv_divappr_q_n.c
│ │ ├── t-invert.c
│ │ ├── t-iord_u.c
│ │ ├── t-logic.c
│ │ ├── t-lorrshift1.c
│ │ ├── t-matrix22.c
│ │ ├── t-mp_bases.c
│ │ ├── t-mullow_basecase.c
│ │ ├── t-mullowhigh.c
│ │ ├── t-mulmid.c
│ │ ├── t-mulmod_2expm1.c
│ │ ├── t-mulmod_2expp1.c
│ │ ├── t-neg.c
│ │ ├── t-perfsqr.c
│ │ ├── t-redc_1.c
│ │ ├── t-sb_bdiv_q.c
│ │ ├── t-sb_bdiv_qr.c
│ │ ├── t-sb_div_q.c
│ │ ├── t-sb_div_qr.c
│ │ ├── t-sb_divappr_q.c
│ │ ├── t-scan.c
│ │ ├── t-sizeinbase.c
│ │ ├── t-subadd_n.c
│ │ ├── t-tdiv_q.c
│ │ └── t-tdiv_qr.c
│ ├── mpq/
│ │ ├── Makefile.am
│ │ ├── t-aors.c
│ │ ├── t-cmp.c
│ │ ├── t-cmp_si.c
│ │ ├── t-cmp_ui.c
│ │ ├── t-cmp_z.c
│ │ ├── t-equal.c
│ │ ├── t-get_d.c
│ │ ├── t-get_str.c
│ │ ├── t-inp_str.c
│ │ ├── t-md_2exp.c
│ │ ├── t-set_f.c
│ │ └── t-set_str.c
│ ├── mpz/
│ │ ├── Makefile.am
│ │ ├── bit.c
│ │ ├── convert.c
│ │ ├── dive.c
│ │ ├── dive_ui.c
│ │ ├── io.c
│ │ ├── logic.c
│ │ ├── reuse.c
│ │ ├── t-addsub.c
│ │ ├── t-aorsmul.c
│ │ ├── t-bin.c
│ │ ├── t-cdiv_ui.c
│ │ ├── t-cmp.c
│ │ ├── t-cmp_d.c
│ │ ├── t-cmp_si.c
│ │ ├── t-cong.c
│ │ ├── t-cong_2exp.c
│ │ ├── t-div_2exp.c
│ │ ├── t-divis.c
│ │ ├── t-divis_2exp.c
│ │ ├── t-export.c
│ │ ├── t-fac_ui.c
│ │ ├── t-fdiv.c
│ │ ├── t-fdiv_ui.c
│ │ ├── t-fib_ui.c
│ │ ├── t-fits.c
│ │ ├── t-gcd.c
│ │ ├── t-gcd_ui.c
│ │ ├── t-get_d.c
│ │ ├── t-get_d_2exp.c
│ │ ├── t-get_si.c
│ │ ├── t-get_sx.c
│ │ ├── t-get_ux.c
│ │ ├── t-hamdist.c
│ │ ├── t-import.c
│ │ ├── t-inp_str.c
│ │ ├── t-io_raw.c
│ │ ├── t-jac.c
│ │ ├── t-lcm.c
│ │ ├── t-likely_prime_p.c
│ │ ├── t-limbs.c
│ │ ├── t-lucnum_ui.c
│ │ ├── t-mfac_uiui.c
│ │ ├── t-mul.c
│ │ ├── t-mul_i.c
│ │ ├── t-next_prime_candidate.c
│ │ ├── t-oddeven.c
│ │ ├── t-perfpow.c
│ │ ├── t-perfsqr.c
│ │ ├── t-popcount.c
│ │ ├── t-pow.c
│ │ ├── t-powm.c
│ │ ├── t-powm_ui.c
│ │ ├── t-pprime_p.c
│ │ ├── t-primorial_ui.c
│ │ ├── t-root.c
│ │ ├── t-scan.c
│ │ ├── t-set_d.c
│ │ ├── t-set_f.c
│ │ ├── t-set_si.c
│ │ ├── t-set_str.c
│ │ ├── t-set_sx.c
│ │ ├── t-set_ux.c
│ │ ├── t-sizeinbase.c
│ │ ├── t-sqrtrem.c
│ │ ├── t-tdiv.c
│ │ ├── t-tdiv_ui.c
│ │ └── t-trial_division.c
│ ├── rand/
│ │ ├── Makefile.am
│ │ ├── findlc.c
│ │ ├── gen.c
│ │ ├── gmpstat.h
│ │ ├── spect.c
│ │ ├── stat.c
│ │ ├── statlib.c
│ │ ├── t-iset.c
│ │ ├── t-lc2exp.c
│ │ ├── t-mt.c
│ │ ├── t-rand.c
│ │ ├── t-urbui.c
│ │ ├── t-urmui.c
│ │ ├── t-urndmm.c
│ │ └── zdiv_round.c
│ ├── refmpf.c
│ ├── refmpn.c
│ ├── refmpq.c
│ ├── refmpz.c
│ ├── spinner.c
│ ├── t-bswap.c
│ ├── t-constants.c
│ ├── t-count_zeros.c
│ ├── t-gmpmax.c
│ ├── t-hightomask.c
│ ├── t-modlinv.c
│ ├── t-parity.c
│ ├── t-popc.c
│ ├── t-sub.c
│ ├── tests.h
│ ├── trace.c
│ ├── x86_64call.as
│ ├── x86_64check.c
│ ├── x86call.asm
│ └── x86check.c
├── tune/
│ ├── Makefile.am
│ ├── README
│ ├── aligntest
│ ├── alpha.asm
│ ├── benchmpn
│ ├── common.c
│ ├── divrem1div.c
│ ├── divrem1inv.c
│ ├── divrem2div.c
│ ├── divrem2inv.c
│ ├── fac_ui_large.c
│ ├── fac_ui_small.c
│ ├── freq.c
│ ├── gcdext_double.c
│ ├── gcdext_single.c
│ ├── gcdextod.c
│ ├── gcdextos.c
│ ├── hgcd_appr_lehmer.c
│ ├── hgcd_lehmer.c
│ ├── hgcd_reduce_1.c
│ ├── hgcd_reduce_2.c
│ ├── hppa.asm
│ ├── hppa2.asm
│ ├── hppa2w.asm
│ ├── ia64.asm
│ ├── jacbase1.c
│ ├── jacbase2.c
│ ├── jacbase3.c
│ ├── jacbase4.c
│ ├── many.pl
│ ├── mod_1_div.c
│ ├── mod_1_inv.c
│ ├── modlinv.c
│ ├── noop.c
│ ├── pentium.asm
│ ├── powerpc.asm
│ ├── powerpc64.asm
│ ├── powm_mod.c
│ ├── powm_redc.c
│ ├── preinv_divrem_1.c
│ ├── set_strb.c
│ ├── set_strp.c
│ ├── set_strs.c
│ ├── sparcv9.asm
│ ├── speed-ext.c
│ ├── speed.c
│ ├── speed.h
│ ├── time.c
│ ├── tuneup.c
│ └── x86_64.as
├── version.c
├── yasm_mac.inc.fat
├── yasm_mac.inc.nofat
├── yasm_macwin.inc.fat
├── yasm_macwin.inc.nofat
└── ylwrap
================================================
FILE CONTENTS
================================================
================================================
FILE: .appveyor_msys_build.sh
================================================
export PATH=/c/msys64/mingw$ABI/bin:/c/projects/mpir/bin/:$PATH
cd /c/projects/mpir
echo && echo build: ./autogen.sh
./autogen.sh
echo && echo build: ./configure ABI=$ABI $LIB
./configure ABI=$ABI $LIB
echo && echo build: make
make
# should work but falsely requires texlive ?!?
#echo && echo build: DISTCHECK_CONFIGURE_FLAGS="ABI=$ABI $LIB" make distcheck
#DISTCHECK_CONFIGURE_FLAGS="ABI=$ABI $LIB" make distcheck
echo && echo build: make check
make check && make -C tests testsuite-all.log
echo && echo build: make dist
make dist
================================================
FILE: .gdbinit
================================================
# Copyright 1999 Free Software Foundation, Inc.
#
# This file is part of the GNU MP Library.
#
# The GNU MP Library is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or (at your
# option) any later version.
#
# The GNU MP Library is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with the GNU MP Library; see the file COPYING.LIB. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
define pz
set __gmpz_dump ($)
end
define pq
set __gmpz_dump ($->_mp_num)
echo /
set __gmpz_dump ($->_mp_den)
end
define pf
set __gmpf_dump ($)
end
================================================
FILE: .gitattributes
================================================
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
================================================
FILE: .gitignore
================================================
#################
## Project files
#################
/build.vc/output_params.bat
/build.vc*/test-config.props
#################
## Eclipse
#################
*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath
# External tool builders
.externalToolBuilders/
# Locally stored "Eclipse launch configurations"
*.launch
# CDT-specific
.cproject
# PDT-specific
.buildpath
#################
## Visual Studio
#################
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ww]in32/
# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUNIT
*.VisualState.xml
TestResult.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
**/Properties/launchSettings.json
#*_i.c
#*_p.c
#*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# JustCode is a .NET coding add-in
.JustCode
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Typescript v1 declaration files
typings/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# JetBrains Rider
.idea/
*.sln.iml
# CodeRush
.cr/
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
############
## Windows
############
# Windows image file caches
Thumbs.db
# Folder config file
Desktop.ini
#############
## Python
#############
*.py[co]
# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
# Installer logs
pip-log.txt
# Unit test / coverage reports
.coverage
.tox
#Translations
*.mo
#Mr Developer
.mr.developer.cfg
# Mac crap
.DS_Store
############
# *nix
############
*.lo
*.o
*.a
*.la
.libs
mpn/*.c
mpn/*.as
mpn/*.asm
Makefile
mpir.h
config.h
config.m4
*.log
*.in
*.trs
config.status
libtool
stamp-h1
autom4te.cache/
yasm/YASM-VERSION-FILE
yasm/YASM-VERSION.h
yasm/autom4te.cache/
yasm/.deps/
yasm/results
yasm/config/config.guess
yasm/config/config.sub
yasm/configure.gnu
yasm/configure.lineno
yasm/libyasm-stdint.h
yasm/po/Makefile.in
yasm/po/POTFILES
yasm/stamp-h1
yasm_mac.inc
gmp.h
longlong.h
gmp-mparam.h
tune/sqr_basecase.c
autoscript
cdata
test-driver
tests/fft/t-adjust
tests/fft/t-adjust_sqrt2
tests/fft/t-butterfly
tests/fft/t-butterfly_lshB
tests/fft/t-butterfly_rshB
tests/fft/t-butterfly_sqrt2
tests/fft/t-butterfly_twiddle
tests/fft/t-div_2expmod_2expp1
tests/fft/t-fft_ifft_mfa_trunc_sqrt2
tests/fft/t-fft_ifft_negacyclic
tests/fft/t-fft_ifft_radix2
tests/fft/t-fft_ifft_trunc
tests/fft/t-fft_ifft_trunc_sqrt2
tests/fft/t-mul_2expmod_2expp1
tests/fft/t-mul_fft_main
tests/fft/t-mul_mfa_trunc_sqrt2
tests/fft/t-mul_trunc_sqrt2
tests/fft/t-mulmod_2expp1
tests/fft/t-normmod_2expp1
tests/fft/t-split_combine_bits
tests/mpn/st_fat
tests/mpn/st_instrument
tests/mpn/t-addadd_n
tests/mpn/t-addsub_n
tests/mpn/t-aors_1
tests/mpn/t-asmtype
tests/mpn/t-dc_bdiv_q
tests/mpn/t-dc_bdiv_q_n
tests/mpn/t-dc_bdiv_qr
tests/mpn/t-dc_bdiv_qr_n
tests/mpn/t-dc_div_q
tests/mpn/t-dc_div_qr
tests/mpn/t-dc_div_qr_n
tests/mpn/t-dc_divappr_q
tests/mpn/t-divebyff
tests/mpn/t-divebyfobm1
tests/mpn/t-divrem_1
tests/mpn/t-fat
tests/mpn/t-gcdext
tests/mpn/t-get_d
tests/mpn/t-hgcd
tests/mpn/t-instrument
tests/mpn/t-inv_div_q
tests/mpn/t-inv_div_qr
tests/mpn/t-inv_div_qr_n
tests/mpn/t-inv_divappr_q
tests/mpn/t-inv_divappr_q_n
tests/mpn/t-invert
tests/mpn/t-iord_u
tests/mpn/t-lorrshift1
tests/mpn/t-matrix22
tests/mpn/t-mp_bases
tests/mpn/t-mullow_basecase
tests/mpn/t-mullowhigh
tests/mpn/t-mulmid
tests/mpn/t-mulmod_2expm1
tests/mpn/t-mulmod_2expp1
tests/mpn/t-neg
tests/mpn/t-perfsqr
tests/mpn/t-redc_1
tests/mpn/t-sb_bdiv_q
tests/mpn/t-sb_bdiv_qr
tests/mpn/t-sb_div_q
tests/mpn/t-sb_div_qr
tests/mpn/t-sb_divappr_q
tests/mpn/t-scan
tests/mpn/t-sizeinbase
tests/mpn/t-subadd_n
tests/mpn/t-tdiv_q
tests/mpn/t-tdiv_qr
tests/mpn/t-logic
tests/t-bswap
tests/t-constants
tests/t-count_zeros
tests/t-gmpmax
tests/t-hightomask
tests/t-modlinv
tests/t-parity
tests/t-popc
tests/t-sub
tests/misc/t-locale
tests/misc/t-printf
tests/misc/t-scanf
tests/mpf/reuse
tests/mpf/t-add
tests/mpf/t-cmp_d
tests/mpf/t-cmp_si
tests/mpf/t-conv
tests/mpf/t-div
tests/mpf/t-dm2exp
tests/mpf/t-eq
tests/mpf/t-fits
tests/mpf/t-get_d
tests/mpf/t-get_d_2exp
tests/mpf/t-get_si
tests/mpf/t-get_ui
tests/mpf/t-gsprec
tests/mpf/t-inp_str
tests/mpf/t-int_p
tests/mpf/t-mul_ui
tests/mpf/t-muldiv
tests/mpf/t-set
tests/mpf/t-set_q
tests/mpf/t-set_si
tests/mpf/t-set_ui
tests/mpf/t-sqrt
tests/mpf/t-sqrt_ui
tests/mpf/t-sub
tests/mpf/t-trunc
tests/mpf/t-ui_div
tests/mpq/t-aors
tests/mpq/t-cmp
tests/mpq/t-cmp_si
tests/mpq/t-cmp_ui
tests/mpq/t-cmp_z
tests/mpq/t-equal
tests/mpq/t-get_d
tests/mpq/t-get_str
tests/mpq/t-inp_str
tests/mpq/t-md_2exp
tests/mpq/t-set_f
tests/mpq/t-set_str
tests/mpz/bit
tests/mpz/convert
tests/mpz/dive
tests/mpz/dive_ui
tests/mpz/io
tests/mpz/logic
tests/mpz/reuse
tests/mpz/st_hamdist
tests/mpz/st_popcount
tests/mpz/t-addsub
tests/mpz/t-aorsmul
tests/mpz/t-bin
tests/mpz/t-cdiv_ui
tests/mpz/t-cmp
tests/mpz/t-cmp_d
tests/mpz/t-cmp_si
tests/mpz/t-cong
tests/mpz/t-cong_2exp
tests/mpz/t-div_2exp
tests/mpz/t-divis
tests/mpz/t-divis_2exp
tests/mpz/t-export
tests/mpz/t-fac_ui
tests/mpz/t-fdiv
tests/mpz/t-fdiv_ui
tests/mpz/t-fib_ui
tests/mpz/t-fits
tests/mpz/t-gcd
tests/mpz/t-gcd_ui
tests/mpz/t-get_d
tests/mpz/t-get_d_2exp
tests/mpz/t-get_si
tests/mpz/t-get_sx
tests/mpz/t-get_ux
tests/mpz/t-hamdist
tests/mpz/t-import
tests/mpz/t-inp_str
tests/mpz/t-io_raw
tests/mpz/t-jac
tests/mpz/t-lcm
tests/mpz/t-likely_prime_p
tests/mpz/t-limbs
tests/mpz/t-lucnum_ui
tests/mpz/t-mfac_uiui
tests/mpz/t-mul
tests/mpz/t-mul_i
tests/mpz/t-next_prime_candidate
tests/mpz/t-oddeven
tests/mpz/t-perfpow
tests/mpz/t-perfsqr
tests/mpz/t-popcount
tests/mpz/t-pow
tests/mpz/t-powm
tests/mpz/t-powm_ui
tests/mpz/t-pprime_p
tests/mpz/t-primorial_ui
tests/mpz/t-root
tests/mpz/t-scan
tests/mpz/t-set_d
tests/mpz/t-set_f
tests/mpz/t-set_si
tests/mpz/t-set_str
tests/mpz/t-set_sx
tests/mpz/t-set_ux
tests/mpz/t-sizeinbase
tests/mpz/t-sqrtrem
tests/mpz/t-tdiv
tests/mpz/t-tdiv_ui
tests/mpz/t-trial_division
tests/rand/t-iset
tests/rand/t-lc2exp
tests/rand/t-mt
tests/rand/t-rand
tests/rand/t-urbui
tests/rand/t-urmui
tests/rand/t-urndmm
aclocal.m4
compile
configure
doc/mpir.info
doc/mpir.info-1
doc/mpir.info-2
install-sh
ltmain.sh
missing
================================================
FILE: .travis.yml
================================================
language: c
sudo: false
os:
- osx
- linux
compiler:
- gcc
- clang
addons:
apt:
packages:
- yasm
- texinfo
script:
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
brew update;
brew install yasm;
fi
# On OSX, gcc is a wrapper around clang, so use gcc from homebrew
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]] && [[ "${CC}" == "gcc" ]]; then
brew install gcc;
brew link --overwrite gcc;
export CC=gcc;
export CXX=g++;
fi
- $CC --version
- ./autogen.sh
- ./configure && make && make check
================================================
FILE: AUTHORS
================================================
Authors of GNU MP (in chronological order of initial contribution)
Torbjörn Granlund Main author
John Amanatides Original version of mpz/pprime_p.c
Paul Zimmermann mpn/generic/mul_fft.c, mpn/generic/dc_divrem_n.c,
new mpz/powm.c, improved Toom3 code.
Ken Weber mpn/generic/gcd.c mpn/generic/bdivmod.c
Bennet Yee mpz/jacobi.c mpz/legendre.c
Andreas Schwab mpn/m68k/lshift.S, mpn/m68k/rshift.S
Robert Harley mpn/generic/mul_n.c, files in mpn/arm
Linus Nordberg Random number framework, original autoconfery
Kent Boortz MacOS 9 port
Kevin Ryde Most x86 assembly, new autoconfery, and countless other
things (please see the GMP manual for complete list)
Gerardo Ballabio gmpxx.h and C++ istream input
Pedro Gimeno Mersenne Twister random generator, other random number
revisions
Jason Moxham New mpz/fac_ui.c and gen-fac_ui.c
Authors of code in MPIR (including code from recent GMP)
Brian Gladman Windows MSVC port and intel format x86_64 code
Port of tune, speed, try and benchmark code to MSVC.
Complete rewrite of benchmark code in C.
William Hart Build system modifications and intel format x86_64 code
Added mpn version of Toom 4 and Toom 7 multiplication
routines. Numerous FFT bugfixes, improvements to Toom3,
4, 7 routines, toom squaring routines. Extended GCD code,
improvements to GCD code. Fast mpn_tdiv_q code.
Gonzalo Tornaria Patches to config.guess and mpirbench and some tuning work.
Mariah Lennox Patches to mpirbench and build failure reports
Jason Worth Martin Core 2 assembly support, merge of Moller's GCD patches,
addmul code for Itanium
Michael Abshoff Build system patches and failure reports, valgrinding,
build testing
Niels Moller GCD patches, nhgcd2.c, contributions to the schoolbook
and divide and conquer division code, jacobi symbols
Jason Moxham Dramatic speed improvements for K8, K10 and Core 2
assembler code and improvements to other x86_64 assembly
code. Refactoring CPU detection code. Numerous bug and
build fixes. Improvements to speed program. Many new
assembly functions including division functions. Improved
root code, mulhi and mullo. Implementation of Peter
Montgomery's single limb remainder code.
Pierrick Gaudry AMD 64 assembly support, revised FFT code
Paul Zimmermann mpz implementation of Toom 4, FFT code, invert.c, rootrem
Alexander Kruppa revised FFT code
Torbjorn Granlund revised FFT code, schoolbook and divide and conquer
division code (reused in asymptotically fast division
code), logops, rootrem, tdiv_q, tdiv_qr, linear division
code for x86_64, itanium assembly code, divexact,
nextprime, n-choose-k, binvert, mullow_n_basecase, powlo,
redc_n, powm, powm_ui improvements
Marco Bodrato mpz implementation of Toom 7, mpn implementation of
toom 8.5, contributed to Schoolbook division code
many improved number theoretical functions factorial,
multi-factorial, primorial, n-choose-k
Robert Gerbicz fast factorial code
Marc Glisse gmpxx.h improvements
Martin Boij Miscellaneous improvements to nextprime code
David Harvey middle product and dc_divappr_q code, divide and conquer
Hensel division code and some work on basecase
T. R. Nicely primality tests used in benchmark
Jeff Gilchrist porting of T. R. Nicely's code to MPIR, testing/tuning
Peter Shrimpton BPSW primality test code for integers up to GMP_LIMB_BITS
Minh Van Nguyen Release manager for MPIR 2.1.0
Case Vanhorsen Release testing
David Cleaver Bug report
JP Flori Many build system patches, tuning values, port of GMP
mpz_powm and mpz_powm_ui to MPIR
Sisyphus (Rob) Tuning values
Leif Lionhardy Build system patches, tuning values
Julien Puydt Tuning values
Vincent Delecroix Port of mpq_cmp_z from gmp
sav-ix (Alexander) Patch for t-locale on Windows
Isuru Fernando Tuning values, numerous build patches and continuous
integration
Alex Dyachenko mpir.net for interface to .net languages
Tommy Hoffman Supplied a sed patch.
Averkhaturau Fixed a C++ compilation problem.
Marcell Keller Fixed a sign conversion bug.
Sergey Taymanov Fixed some Windows build file issues.
jengelh Reported a bug and did build test
Dima Pasechnik Build system patches, bulk changes to x86_64 assembler code
to accommodate OSX linker quirks.
================================================
FILE: COPYING
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
================================================
FILE: COPYING.LIB
================================================
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
================================================
FILE: ChangeLog
================================================
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Copyright 2009-2015 William Hart
.
This file is part of the MPIR Library.
.
The MPIR Library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or (at your
option) any later version.
.
The MPIR Library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
.
You should have received a copy of the GNU Lesser General Public License
along with the GNU MP Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
2017-03-01 mpir-devel
* MPIR version 3.0.0 released
2015-11-20 mpir-devel
* MPIR version 2.7.2 released
2015-11-13 mpir-devel
* MPIR version 2.7.1 released
2015-06-26 mpir-devel
* MPIR version 2.7.0 released
2012-10-05 mpir-devel
* MPIR version 2.6.0 released
2012-10-02 mpir-devel
* MPIR version 2.5.2 released
2012-03-11 mpir-devel
* MPIR version 2.5.1 released
2012-01-05 mpir-devel
* MPIR version 2.5.0 released
2011-06-14 mpir-devel
* MPIR version 2.4.0 released
2011-04-05 mpir-devel
* MPIR version 2.3.1 released
2011-03-04 mpir-devel
* MPIR version 2.3.0 released
2010-12-18 mpir-devel
* MPIR version 2.2.1 released
2010-12-02 mpir-devel
* MPIR version 2.2.0 released
2010-12-01 mpir-devel
* MPIR version 2.1.4 released
2010-06-25 mpir-devel
* MPIR version 2.1.1 released
2010-06-07 mpir-devel
* MPIR version 2.1.0 released
2010-04-01 mpir-devel
* MPIR version 2.0.0 released
2009-01-30 mpir-devel
* MPIR Version 1.3.1 released.
2009-01-18 mpir-devel
* MPIR Version 1.3.0 released.
2009-06-06 mpir-devel
* MPIR Version 1.2.0 released.
2009-04-15 mpir-devel
* MPIR Version 1.1.0 released.
2009-03-16 mpir-devel
* MPIR Version 1.0.0 released.
2009-01-10 mpir-devel
* MPIR Version 0.9.0 released.
2006-05-04 Torbjorn Granlund
* Version 4.2.1 released.
2006-05-03 Torbjorn Granlund
* mpn/powerpc64/vmx/popcount.asm: Conditionally zero extend n.
2006-04-27 Torbjorn Granlund
* mpz/divexact.c: Call mpz_tdiv_q for large operands.
* configure.in (powerpc-*-darwin): Remove -fast, it affects PIC.
2006-04-26 Torbjorn Granlund
* config.guess: Try to recognize Ultrasparc T1 (as ultrasparct1).
* config.sub: Handle ultrasparct1.
2006-04-25 Torbjorn Granlund
* mpn/sparc64/gmp-mparam.h: Retune, without separation of GNUC and
non-GNUC data.
2006-04-19 Torbjorn Granlund
* configure.in: Support powerpc eABI.
* mpn/powerpc32/eabi.m4: New file.
* configure.in: Support powerpc *bsd.
* mpn/powerpc64/elf.m4: New name for mpn/powerpc64/linux64.m4.
* mpn/powerpc32/elf.m4: New name for mpn/powerpc32/linux.m4.
* mpn/powerpc64/linux64.m4 (ASM_END): Quote TOC_ENTRY.
2006-04-18 Torbjorn Granlund
* configure.in (gmp_mpn_functions_optional): Add lshiftc.
(HAVE_NATIVE): Add lshiftc.
* tune/speed.h (SPEED_ROUTINE_MPN_ADDSUB_N_CALL): New macro.
* tune/common.c (speed_mpn_addsub_n): New function.
* tune/speed.c (routine): Add measuring of mpn_addsub_n.
* mpn/powerpc64/linux64.m4 (TOC_ENTRY): Define to empty.
* mpn/powerpc64/aix.m4 (TOC_ENTRY): Likewise.
* mpn/powerpc32/aix.m4 (TOC_ENTRY): Likewise.
* mpn/powerpc32/aix.m4 (EXTERN): New, copied form powerpc64/aix.m4.
* mpn/powerpc32/mode1o.asm: Use EXTERN.
* mpn/powerpc32/linux.m4 (EXTERN): Provide dummy definition.
* mpn/powerpc32/darwin.m4 (EXTERN): Likewise.
2006-04-13 Torbjorn Granlund
* tests/devel/try.c (choice_array): Add mpn_addsub_n[c].
2006-04-12 Torbjorn Granlund
* extract-dbl.c: Don't rely on undefined casts to mp_limb_signed_t.
* configure.in: Disable AC_C_RESTRICT for now.
* mpn/generic/diveby3.c: Don't use restict keyword for now.
2006-04-11 Torbjorn Granlund
* gmp-h.in (__GNU_MP_VERSION_PATCHLEVEL): Bump.
* aclocal.m4: Regenerate with patched libtool.
* mpn/asm-defs.m4 (ASM_END): Provide (empty) default.
2006-04-08 Torbjorn Granlund
* configure.in (gmp_mpn_functions_optional): Add addsub.
* Makefile.am (LIBGMP_LT_*, LIBGMPXX_LT_*, LIBMP_LT_*):
Bump version info.
* gmpxx.h: Remove missed MPFR references.
* gmp-impl.h (TMP_*, WANT_TMP_DEBUG): Don't expect marker argument;
define TMP_SALLOC and TMP_BALLOC.
2006-04-05 Torbjorn Granlund
* tal-notreent.c (__gmp_tmp_mark): Add "struct" tag for tmp_marker.
(__gmp_tmp_free): Likewise.
2006-03-26 Torbjorn Granlund
* Version 4.2 released.
* mpn/powerpc64/aix.m4 (LEA): Renamed from LDSYM.
* mpn/powerpc64/darwin.m4: Likewise.
* mpn/powerpc64/linux64.m4: Likewise.
* mpn/powerpc64/vmx/popcount.asm: Use LEA, not LDSYM.
2006-03-23 Torbjorn Granlund
* gmp-impl.h: (class gmp_allocated_string): Prefix strlen with std::.
* gmpxx.h (__GMP_DEFINE_TERNARY_EXPR2): Remove for now.
(struct __gmp_ternary_addmul2): Likewise.
(struct __gmp_ternary_submul2): Likewise.
* gmpxx.h: #include .
(struct __gmp_alloc_cstring): Prefix strlen with std::.
* mpn/x86/pentium/com_n.asm: Add TEXT and ALIGN.
* mpn/x86/pentium/copyi.asm: Likewise.
* mpn/x86/pentium/copyd.asm: Likewise.
2006-03-22 Torbjorn Granlund
* gmp-h.in: Add a "using std::FILE" for C++.
(_GMP_H_HAVE_FILE): Check also _ISO_STDIO_ISO_H.
* gmpxx.h: Remove mpfr code.
* tests/cxx: Likewise.
* gmp-impl.h (FORCE_DOUBLE): Rename a tempvar to avoid a clash with
GNU/Linux public include file.
* configure.in (powerpc64, darwin): New optional, gcc_cflags_subtype.
Grab powerpc32/darwin.m4 for ABI=mode32.
* configure.in: Use host_cpu whenever just the cpu type is needed.
2006-03-08 Torbjorn Granlund
* mpz/get_si.c: Fix a typo.
* tests/mpq/t-get_d.c (check_random): Improve random generation for
nails.
2006-02-28 Torbjorn Granlund
* tests/mpq/t-get_d.c (check_random): New function.
(main): Call check_random.
* mpq/set_d.c: Make choices based on LIMBS_PER_DOUBLE, not
BITS_PER_MP_LIMB. Make it work for LIMBS_PER_DOUBLE == 4.
Use MPZ_REALLOC.
* mpz/set_d.c: Make it work for LIMBS_PER_DOUBLE == 4.
* extract-dbl.c: Make it work for LIMBS_PER_DOUBLE > 3.
2006-02-27 Torbjorn Granlund
* mpz/cmp_d.c: Declare `i'.
* mpz/cmpabs_d.c: Likewise.
2006-02-23 Torbjorn Granlund
* mpn/powerpc32/vmx/copyd.asm: Set right VRSAVE bits.
* mpn/powerpc32/vmx/copyi.asm: Likewise.
2006-02-22 Torbjorn Granlund
* mpn/powerpc32/vmx/logops_n.asm: New file.
* mpn/powerpc32/diveby3.asm: Rewrite.
2006-02-21 Torbjorn Granlund
* mpn/powerpc32/vmx/copyi.asm: New file.
* mpn/powerpc32/vmx/copyd.asm: New file.
2006-02-17 Torbjorn Granlund
* mpn/alpha/ev6/nails/aors_n.asm (CYSH): Import proper setting from
deleted mpn_sub_n.
2006-02-16 Torbjorn Granlund
* mpn/alpha/ev6/addmul_1.asm: Correct slotting comments.
2006-02-15 Torbjorn Granlund
* tests/devel/anymul_1.c: Copy error reporting code from addmul_N.c.
* tests/devel/addmul_N.c: New file.
* tests/devel/mul_N.c: New file.
* mpn/alpha/default.m4 (PROLOGUE_cpu): Align functions at 16-byte
boundary.
* mpn/alpha/ev6/nails/aors_n.asm: New file.
* mpn/alpha/ev6/nails/add_n.asm: Remove.
* mpn/alpha/ev6/nails/sub_n.asm: Remove.
* mpn/alpha/ev6/nails/addmul_1.asm: Rewrite.
* mpn/alpha/ev6/nails/submul_1.asm: Likewise.
* mpn/alpha/ev6/nails/mul_1.asm: Likewise.
* mpn/alpha/ev6/nails/addmul_2.asm: Use L() for labels.
* mpn/alpha/ev6/nails/addmul_3.asm: Use L() for labels.
* mpn/alpha/ev6/nails/addmul_4.asm: Use L() for labels.
2006-02-13 Torbjorn Granlund
* mpn/powerpc32/diveby3.asm: Trivially reorder loop insns to save
1 c/l.
2006-02-10 Torbjorn Granlund
* mpn/powerpc64/sqr_diagonal.asm: Software pipeline.
* mpn/powerpc64/vmx/popcount.asm: Add prefetching.
2006-02-04 Torbjorn Granlund
* mpn/powerpc64/vmx/popcount.asm: Remove mpn_hamdist partial code.
Move compare for huge n so that it is always executed.
2006-02-03 Torbjorn Granlund
* mpn/powerpc32/linux.m4 (LEA): Add support for PIC.
* configure.in (powerpc): New optional, gcc_cflags_subtype.
* mpn/powerpc64/linux64.m4 (PROLOGUE_cpu): Align function start to
16-multiple.
* mpn/powerpc64/aix.m4: Likewise.
* mpn/powerpc64/darwin.m4: Likewise.
* mpn/powerpc64/copyi.asm: Align loop to 16-multiple.
* mpn/powerpc64/copyd.asm: Likewise
* configure.in (powerpc): Add vmx to relevant paths.
* mpn/powerpc64/linux64.m4 (DEF_OBJECT): Accept 2nd argument, for
alignment.
* mpn/powerpc64/aix.m4: Likewise.
* mpn/powerpc64/darwin.m4: Likewise.
* mpn/powerpc32/linux.m4 (DEF_OBJECT, END_OBJECT): New macros,
inherited from powerpc64 versions.
* mpn/powerpc32/aix.m4: Likewise.
* mpn/powerpc32/darwin.m4: Likewise.
* mpn/powerpc64/vmx/popcount.asm: New file, for ppc32 and ppc64.
* mpn/powerpc32/vmx/popcount.asm: New file, grabbing above file.
2006-01-22 Torbjorn Granlund
* configure.in: Generalize OS-dependent patterns for powerpcs.
2006-01-20 Torbjorn Granlund
* config.guess: Recognize power4 and up under linux-gnu.
* config.sub: Generalize power recognition code.
* acinclude.m4 (POWERPC64_PATTERN): Add 64-bit powerpc processors.
* configure.in: Recognize powerpc procssors masquerading as power
procssors.
2006-01-17 Torbjorn Granlund
* mpn/generic/diveby3.c: Use GMP standard parameter names. Nailify
alternative code. Use restrict for params.
* configure.in: Recognize andn_n as not needing nailification.
* tests/mpq/t-equal.c (check_various): Disable a test that gives common
factors for GMP_NUMB_BITS == 62.
2006-01-16 Torbjorn Granlund
* mpn/generic/get_str.c (mpn_sb_get_str): Fix digit count computation,
was inaccurate for nails.
2006-01-15 Torbjorn Granlund
* mpn/x86_64/mode1o.asm: Remove unneeded carry register zeroing.
2006-01-08 Torbjorn Granlund
* mpn/alpha/ev6/sqr_diagonal.asm: New file.
2006-01-06 Torbjorn Granlund
* mpn/generic/mullow_n.c (MUL_BASECASE_ALLOC): New #define.
(mpn_mullow_n): Use it.
* mpn/powerpc64/aix.m4 (EXTERN): Define to import symbol.
(LDSYM): Remove [RW] attribute.
* mpn/powerpc64/linux64.m4 (EXTERN): Dummy definition.
* mpn/powerpc64/darwin.m4 (EXTERN): Likewise.
2006-01-05 Torbjorn Granlund
* mpn/powerpc64/linux64.m4: Move toc entry generation from direct at
DEF_OBJECT to delayed via LDSYM, define ASM_END to output it.
* mpn/powerpc64/aix.m4: Likewise.
* mpn/powerpc64/darwin.m4: Define a dummy ASM_END.
2006-01-03 Torbjorn Granlund
* configure.in: Update bugs reporting address.
2006-01-02 Torbjorn Granlund
* mpn/powerpc64/linux64.m4 (CALL): New macro.
* mpn/powerpc64/aix.m4: Likewise.
* mpn/powerpc64/darwin.m4: Likewise, also define macro "DARWIN".
2005-12-18 Torbjorn Granlund
* mpf/ui_div.c: Implement workaround for GCC bug triggered on alpha.
* mpf/set_q.c: Likewise.
2005-12-16 Torbjorn Granlund
* mpn/generic/tdiv_qr.c: Remove statement with no effect.
Rename dead variable to `dummy'.
2005-12-15 Torbjorn Granlund
* demos/pexpr.c (setup_error_handler): Add a missing ";".
2005-11-27 Torbjorn Granlund
* mpn/generic/mul.c: Crudely call mpn_mul_fft_full before checking
for unbalanced operands.
* mpn/generic/mul_fft.c: Remove many scalar divisions.
(mpn_mul_fft_lcm): Simplify.
(mpn_mul_fft_decompose): Rewrite to handle arbitrarily unbalanced
operands.
2005-11-22 Torbjorn Granlund
* configure.in: Properly recognize all 32-bit Solaris releases.
2005-11-10 Torbjorn Granlund
* mpn/generic/mul_fft.c: Inline mpn_fft_mul_2exp_modF,
mpn_fft_add_modF and mpn_fft_normalize.
2005-11-02 Torbjorn Granlund
* tests/mpz/reuse.c: Increase operand size, decrease # of reps.
2005-10-31 Torbjorn Granlund
* mpz/pprime_p.c (mpz_probab_prime_p): Considerably limit trial
dividing.
* mpz/perfpow.c (mpz_perfect_power_p): Use mpz_divisible_ui_p instead
of mpz_tdiv_ui.
* mpz/divegcd.c: Correct probability number for GCD == 1.
* mpn/x86: Add cycle counts for array of x86 processors.
* mpn/x86/k7/mod_34lsub1.asm: Remove spurious mentions of ebp.
* mpn/powerpc32: Add POWER5 timings.
* mpn/powerpc32/README: Describe global reference variations.
* mpn/generic/dive_1.c: Whitespace cleanup.
* mpn/alpha/ev6/nails/addmul_1.asm: Correct comments on slotting.
* mpn/alpha/ev6/nails/addmul_2.asm: Likewise.
* mpn/alpha/ev6/nails/addmul_4.asm: Likewise.
* mpf/out_str.c: List some allocation improvement ideas.
* doc/gmp.texi: Update many URLs and email addresses.
* gmp-h.in (_GMP_H_HAVE_FILE): Check also _STDIO_H_INCLUDED.
2005-10-26 Torbjorn Granlund
* tune/tuneup.c (tune_mullow): Update param.max_size for each threshold
measurement.
* configure.in (POWERPC64_PATTERN/*-*-darwin*): Set
SPEED_CYCLECOUNTER_OBJ_mode64 and cyclecounter_size_mode64.
(POWERPC64_PATTERN/*-*-linux*): Likewise.
2005-10-03 Torbjorn Granlund
* demos/factorize.c (factor_using_division_2kp): Honor verbose flag.
(factor_using_pollard_rho): Divide out new factor before it's
clobbered. Don't stop factoring after a composite factor was found.
2005-09-17 Torbjorn Granlund
* demos/pexpr.c (fns): Add factorial keywords.
2005-08-16 Torbjorn Granlund
* tune/Makefile.am (EXTRA_DIST): Change "amd64" => "x86_64".
* mpn/Makefile.am (TARG_DIST): Change "amd64" => "x86_64".
2005-08-15 Torbjorn Granlund
* configure.in: Change "amd64" => "x86_64".
2005-06-13 Torbjorn Granlund
* mpn/generic/pre_mod_1.c: Canonicalize variable names.
* mpn/generic/divrem.c: Rate qxn test as UNLIKELY.
* tune/tuneup.c (tune_mullow): Fix all max_size fields.
* gmp-impl.h (SQR_TOOM3_THRESHOLD_LIMIT): New #define.
* tune/tuneup.c (tune_sqr): Use SQR_TOOM3_THRESHOLD_LIMIT.
(sqr_toom3_threshold): Initialize from SQR_TOOM3_THRESHOLD_LIMIT.
* mpn/generic/mul_n.c (mpn_sqr_n): Use SQR_TOOM3_THRESHOLD_LIMIT.
* gmp-impl.h (mpn_nand_n, mpn_iorn_n, mpn_nior_n, mpn_xnor_n):
Handle nails.
2005-06-12 Torbjorn Granlund
* mpn/alpha/ev6/sub_n.asm: Analogous changes as to add_n.asm last.
2005-06-11 Torbjorn Granlund
* mpn/alpha/ev6/add_n.asm: Rewrite inner loop to load later.
Add mpn_add_nc entry.
* mpn/alpha/ev6/addmul_1.asm: Remove redundant initial loads.
2005-06-07 Torbjorn Granlund
* mpn/generic/dive_1.c: Use variable h for upper umul_ppmm result.
2005-06-04 Torbjorn Granlund
* tests/devel/try.c (choice_array): Exclude mpn_preinv_mod_1 unless
USE_PREINV_MOD_1.
(choice_array): Exclude mpn_sqr_basecase if SQR_KARATSUBA_THRESHOLD
is zero.
2005-06-03 Torbjorn Granlund
* mpn/alpha/ev6/addmul_1.asm: Prefix all labels with "$".
* mpn/alpha/ev6/mul_1.asm: Likewise.
2005-06-02 Torbjorn Granlund
* tests/refmpn.c (refmpn_divmod_1c_workaround): Implement workaround
to gcc 3.4.x bug triggered on powerpc64 with 32-bit ABI.
2005-06-01 Torbjorn Granlund
* tests/devel/try.c (main): Fix a typo.
2005-05-31 Torbjorn Granlund
* mpn/alpha/ev6/addmul_1.asm: Rewrite for L1 cache, add prefetch.
2005-05-30 Torbjorn Granlund
* tests/misc.c (tests_rand_start): Mask random seed to 32 bits.
2005-05-29 Torbjorn Granlund
* mpn/powerpc64/mode32/mul_1.asm: Handle BROKEN_LONGLONG_PARAM.
* mpn/powerpc64/mode32/addmul_1.asm: Likewise.
* mpn/powerpc64/mode32/submul_1.asm: Likewise.
* mpn/powerpc32/mode1o.asm: Rewrite to actually work.
* mpn/powerpc32/aix.m4 (LEA): New macro.
(ASM_END): New macro.
* mpn/powerpc32/linux.m4: New file.
* mpn/powerpc32/darwin.m4: New file.
* configure.in: Use linux.m4 and darwin.m4.
(powerpc64-linux-gnu): Add support for mode32.
2005-05-25 Torbjorn Granlund
* mpn/generic/mullow_n.c: Remove FIXME mentioning fixed flaw.
* tests/mpz/t-cmp_d.c (check_one): Fix printf fmt string typo.
* demos/isprime.c: #include stdlib.h.
* tests/rand/t-urbui.c: Likewise.
* tests/rand/t-urmui.c: Likewise.
* tests/mpz/t-popcount.c (check_random): Remove spurious printf arg.
2005-05-24 Torbjorn Granlund
* tests/devel/try.c (param_init) [TYPE_GET_STR]: Set retval field.
(compare): Handle SIZE_GET_STR as SIZE_RETVAL.
* tests/refmpn.c (refmpn_get_str): Rewrite to make it work.
2005-05-23 Torbjorn Granlund
* longlong.h (many places): Remove lvalue casts.
* gmp-impl.h (MPF_SIGNIFICANT_DIGITS): Cast prec to avoid overflow
for > 4G digits.
* mpn/alpha/ev6/add_n.asm: Prefetch using ldl.
* mpn/alpha/ev6/sub_n.asm: Likewise.
* mpn/alpha/ev6/slot.pl (optable): Recognize negq and ldl.
2005-05-22 Torbjorn Granlund
* mpn/alpha/ev67/popcount.asm: Prefetch.
* mpn/alpha/ev67/hamdist.asm: Prefetch.
* longlong.h (add_ssaaaa) [x86]: Remove lvalue casts.
(sub_ddmmss) [x86]: Likewise.
* tests/devel/try.c (param_init) [TYPE_MPZ_JACOBI]: Add DATA_SRC1_ODD.
(param_init) [TYPE_MPZ_KRONECKER]: Clear inherited DATA_SRC1_ODD.
(param_init) [TYPE_DIVEXACT_1]: Use symbolic name DIVISOR_LIMB.
2005-05-21 Torbjorn Granlund
* tests/devel/try.c (param_init) [TYPE_MPZ_JACOBI]: Initialize divisor
field according to UDIV_NEEDS_NORMALIZATION.
* mpz/mul_i.h: Remove left-over TMP_XXXX marker arguments.
2005-05-20 Torbjorn Granlund
* mpn/x86/pentium4/sse2/addmul_1.asm (mpn_addmul_1c): Put carry in
proper register.
* mpn/generic/sqr_basecase.c (mpn_sqr_basecase, addmul_2 version):
Avoid accesses out-of-bound in MPN_SQR_DIAGONAL applicate code.
2005-05-19 Torbjorn Granlund
* mpn/alpha/diveby3.asm: Make it actually work.
* gmp-impl.h (MULLOW_BASECASE_THRESHOLD_LIMIT): New #define.
* mpn/generic/mullow_n.c: Use fixed stack allocation for the smallest
operands; use TMP_S* allocation for medium operands.
* gmp-impl.h: Remove nested TUNE_PROGRAM_BUILD test.
2005-05-18 Torbjorn Granlund
* mpn/generic/mul_n.c: Make squaring and multiplication code more
similar. Use TMP_S* functions.
* gmp-impl.h (TMP_DECL, TMP_MARK, TMP_FREE): Get rid of argument.
(TMP_SALLOC): New macro for "small" allocations.
(TMP_BALLOC): New macro for "big" allocations.
(TMP_SDECL, TMP_SMARK, TMP_SFREE): New macros for functions that use
just TMP_SALLOC.
(WANT_TMP_ALLOCA): Make default functions choose alloca or reentrant
functions, depending on size.
* *.c: Remove TMP_XXXX marker arguments.
* acinclude.m4 (WANT_TMP): Want tal-reent.lo also for alloca case.
2005-05-15 Torbjorn Granlund
* gmp-impl.h (udiv_qrnnd_preinv2): Pull an add into add_ssaaaa.
(udiv_qrnnd_preinv2gen): Likewise.
2005-05-14 Torbjorn Granlund
* longlong.h (add_ssaaaa) [x86_64]: Restrict allowed immediate
operands.
* (sub_ddmmss) [x86_64]: Likewise.
2005-05-02 Torbjorn Granlund
* acinclude.m4 (GMP_HPC_HPPA_2_0): Make gmp_tmp_v1 sed pattern handle
version numbers like B.11.X.32509-32512.GP.
* mpn/m68k/aors_n.asm: Correct MULFUNC_PROLOGUE.
* mpf/inp_str.c: Use plain int for mpf_set_str return value (works
around gcc 4 bug).
* acinclude.m4 (GMP_ASM_POWERPC_PIC_ALWAYS): Handle darwin's assembly
syntax.
(long long reliability test 1): New GMP_PROG_CC_WORKS_PART test.
(long long reliability test 2): New GMP_PROG_CC_WORKS_PART test.
* configure.in: Add mode64 support for darwin. Use darwin.m4.
Add cflags_opt flags for mode32 darwin.
* mpn/asm-defs.m4 (PIC_ALWAYS): Define PIC just iff PIC_ALWAYS = "yes".
* mpn/powerpc64/darwin.m4: New file.
* mpn/powerpc64/linux64.m4: Remove TOCREF, add LDSYM.
Rework DEF_OBJECT to need just one argument.
* mpn/powerpc64/aix.m4: Likewise.
2005-05-01 Torbjorn Granlund
* mpn/generic/popham.c: Compute final summation differently for 64-bit.
* tests/mpz/t-popcount.c (check_random): New function.
(main): Call it.
2005-04-09 Torbjorn Granlund
* mpn/powerpc64/copyi.asm: If HAVE_ABI_mode32, ignore upper 32 bits of
mp_size_t argument.
* mpn/powerpc64/copyd.asm: Likewise.
* mpn/powerpc64/sqr_diagonal.asm: Likewise.
* mpn/powerpc64/lshift.asm: Likewise.
* mpn/powerpc64/rshift.asm: Likewise.
2005-04-08 Torbjorn Granlund
* mpn/generic/rootrem.c: Allocate PP_ALLOC limbs also for qp.
2005-04-07 Torbjorn Granlund
* mpn/powerpc32/add_n.asm: Add nc entry point.
* mpn/powerpc32/sub_n.asm: Likewise.
* mpn/alpha/add_n.asm: Add correct cycle/limb numbers.
* mpn/alpha/sub_n.asm: Likewise.
* mpn/alpha/ev5/add_n.asm: Likewise.
* mpn/alpha/ev5/sub_n.asm: Likewise.
2005-03-31 Torbjorn Granlund
* mpn/x86/k7/gmp-mparam.h: Fix typo in last change.
2005-03-19 Torbjorn Granlund
* mpn/alpha/gmp-mparam.h: Update.
* mpn/alpha/ev5/gmp-mparam.h: Update.
* mpn/alpha/ev6/gmp-mparam.h: Update.
* mpn/x86/p6/mmx/gmp-mparam.h: Update.
* mpn/x86/pentium4/sse2/gmp-mparam.h: Update.
* mpn/x86/k7/gmp-mparam.h: Update.
* tests/mpz/t-gcd.c (main): Honor command line reps argument.
* tune/speed.h (SPEED_ROUTINE_MPN_GCD_CALL): Simplify and correct code
for generating test operands.
2005-01-13 Torbjorn Granlund
* gmp-impl.h (MPN_SIZEINBASE): Count bits in type size_t.
(MPN_SIZEINBASE_16): Likewise.
2004-12-17 Torbjorn Granlund
* tune/speed.c (run_gnuplot): Use lines, not linespoints.
Output a reset gnuplot command initially.
2004-12-04 Torbjorn Granlund
* mpn/generic/random2.c (gmp_rrandomb): Rework again.
* mpz/rrandomb.c (gmp_rrandomb): Likewise.
2004-11-24 Torbjorn Granlund
* mpn/alpha/diveby3.asm: Use correct prefetch instruction.
2004-11-19 Torbjorn Granlund
* mpn/alpha/diveby3.asm: Add ",gp" glue in PROLOGUE.
Add r31 dummy operand to `br' instruction.
2004-11-17 Torbjorn Granlund
* configure.in: Invoke AC_C_RESTRICT.
2004-11-16 Torbjorn Granlund
* mpn/alpha/diveby3.asm: New file.
2004-11-10 Torbjorn Granlund
* mpn/generic/popham.c: Add comment.
2004-11-05 Torbjorn Granlund
* config.guess: Strip any PPC string in /proc/cpuinfo.
Recognize 970 in that code.
2004-10-25 Torbjorn Granlund
* mpn/powerpc64/README: Update POWER5/PPC970 pipeline information.
* mpn/generic/mul_basecase.c (MAX_LEFT): Add comment.
* doc/gmp.texi: Consistently use "x86" denotation.
(Assembler SIMD Instructions): Mention SSE2 usage.
* demos/pexpr.c (main): Handle "negative" base in mpz_sizeinbase call.
2004-10-16 Torbjorn Granlund
* configure.in: Support icc under x86.
(ia64-*-linux*): Pass -no-gcc to icc.
2004-10-15 Torbjorn Granlund
* longlong.h (ia64 umul_ppmm): Add version for icc.
* configure.in: Support icc under ia64-*-linux*.
* acinclude.m4: New "compiler works" test for icc 8.1 bug.
(GMP_PROG_CC_IS_GNU): Don't let Intel's icc fool us it is GCC.
2004-10-14 Torbjorn Granlund
* acinclude.m4 (GMP_ASM_W32): Try also "data4".
* longlong.h: Exclude masquerading __INTEL_COMPILER from ia64 asm.
* gmp-impl.h: Likewise.
2004-10-12 Torbjorn Granlund
* tests/devel/try.c: Handle mpn_mul_2 like mpn_addmul_2.
* tune/speed.c (routine): Make R parameter optional for mpn_mul_2.
2004-10-11 Torbjorn Granlund
* mpn/sparc64/addmul_1.asm: Update a comment.
* tests/devel/aors_n.c: #include tests.h.
* tests/devel/anymul_1.c: Likewise.
* tests/devel/shift.c: Likewise.
* tests/devel/copy.c: Likewise.
* tests/devel/aors_n.c: Handle also mpn_addlsh1_n, mpn_sublsh1_n,
mpn_rsh1add_n, and mpn_rsh1sub_n.
* tests/devel/Makefile.am (EXTRA_PROGRAMS): Updates for yesterday's
file removals and additions.
2004-10-10 Torbjorn Granlund
* tests/devel/copy.c: Handle both MPN_COPY_INCR and MPN_COPY_DECR.
* tests/devel/logops_n.c: New file, handle all logical operations.
* tests/devel/anymul_1.c: New file, handle mpn_mul_1, mpn_addmul_1, and
mpn_submul_1
* tests/devel/mul_1.c: Remove.
* tests/devel/addmul_1.c: Remove.
* tests/devel/submul_1.c: Remove.
* tests/devel/shift.c: New file, handle mpn_lshift and mpn_rshift.
* tests/devel/lshift.c: Remove.
* tests/devel/rshift.c: Remove.
* tests/devel/aors_n.c: New file, handle mpn_add_n and mpn_sub_n.
* tests/devel/add_n.c: Remove.
* tests/devel/sub_n.c: Remove.
2004-10-09 Torbjorn Granlund
* mpn/powerpc64/linux64.m4: Define DEF_OBJECT, END_OBJECT, and TOCREF.
* mpn/powerpc64/aix.m4: Likewise.
2004-10-08 Torbjorn Granlund
* mpn/powerpc64/copyi.asm: New file.
* mpn/powerpc64/copyd.asm: New file.
* gmp-h.in: Remove PPC MPN_COPY variants.
* gmp-impl.h: Likewise.
2004-10-07 Torbjorn Granlund
* configfsf.guess: Patch HP-UX code to accomodate HP compiler's new
inability to read from stdin.
* mpn/powerpc64/mode64/addsub_n.asm: Remove accidentally added file.
2004-09-29 Torbjorn Granlund
* gmp-impl.h (x86 ULONG_PARITY): Work around GCC change of "q" register
flag.
2004-09-28 Paul Zimmermann
* mpn/generic/mul_fft.c (mpn_mul_fft): Fix a bug in the choice of the
recursive fft parameters.
2004-09-20 Torbjorn Granlund
* tests/misc.c (tests_rand_start): Default to strtoul for re-seeding.
* tests/mpz/t-mul.c (ref_mpn_mul): Fudge tmp allocation for toom3.
2004-09-19 Torbjorn Granlund
* tests/misc.c (tests_rand_start): Shift tv_usec for better seeding.
2004-09-18 Torbjorn Granlund
* tests/misc.c (tests_rand_start): Invoke fflush after printing seed.
* tests/mpz/t-mul.c (main): Check environment for GMP_CHECK_FFT, run
extra FFT tests if set.
(ref_mpn_mul): Use library code for kara and toom, but skewded so that
we never use the same algorithm that we're testing.
(mul_kara): Delete.
(debug_mp): Print just one line of large numbers.
(ref_mpn_mul): Rework usage of tp temporary space.
2004-09-11 Torbjorn Granlund
* mpn/generic/sqr_basecase.c: In variant for HAVE_NATIVE_mpn_addmul_2,
accumulate carry also for when HAVE_NATIVE_mpn_addlsh1_n.
2004-08-29 Torbjorn Granlund
* tests/mpz/t-sizeinbase.c: Disable mpz_fake_bits and check_sample.
2004-06-17 Kevin Ryde
* doc/gmp.texi: Use @. when sentence ends with a capital, for good
spacing in tex.
(Language Bindings): Add gmp-d, reported by Ben Hinkle. Update SWI
Prolog URL, reported by Jan Wielemaker.
2004-06-09 Torbjorn Granlund
* configure.in: Handle --enable-fat. Use that to enable x86 fat
builds, remove magic meaning of i386-*-*.
2004-06-03 Kevin Ryde
* gmp-impl.h (memset): Use a local char* pointer, in case parameter is
something else (eg. tune/common.c). Reported by Emmanuel Thomé.
2004-06-01 Kevin Ryde
* config.guess (i?86-*-*): Avoid "Illegal instruction" message which
goes to stdout on 80386 freebsd4.9.
2004-05-23 Torbjorn Granlund
* mpn/generic/gcdext.c (gcdext_1_odd): Use masking to avoid jumps.
2004-05-22 Torbjorn Granlund
* mpn/x86/pentium4/sse2/addmul_1.asm: Add Prescott cycle numbers.
* mpn/powerpc32/lshift.asm: Add more cycle numbers.
* mpn/powerpc32/rshift.asm: Likewise.
2004-05-21 Torbjorn Granlund
* gmp-impl.h (mpn_mullow_n, mpn_mullow_basecase): Declare.
* tune/Makefile.am: Compile gcdext.c.
* gmp-impl.h (GET_STR_THRESHOLD_LIMIT): Lower outrageous value to 150.
2004-05-21 Niels Möller
* tune/speed.h (SPEED_ROUTINE_MPN_GCD_CALL): Ensure first operand is
not smaller than 2nd operand.
2004-05-17 Kevin Ryde
* gmp-h.in (mpz_get_ui): Use #if instead of plain if, and for nails
use ?: same as normal case, to avoid warnings from Borland C++ 6.0.
Reported by delta trinity.
2004-05-15 Kevin Ryde
* tune/time.c (getrusage_backwards_p): New function
(speed_time_init): Use it to exclude broken netbsd1.4.1 getrusage.
* configure.in (m68*-*-netbsd1.4*): Remove code pretending getrusage
doesn't exist.
* tune/README (NetBSD 1.4.1 m68k): Update notes.
* configure.in (mips*-*-* ABI=n32): Remove gcc_n32_ldflags and
cc_n32_ldflags, libtool knows to put the linker in n32 mode.
2004-05-15 Torbjorn Granlund
* config.guess (powerpc*-*-*): Add more processor types to mfpvr code.
* configure.in: Generalize powerpc subtype matching code.
* mpz/fac_ui.c: Misc cleanups, spelling corrections.
2004-05-14 Kevin Ryde
* mpf/sub.c: When one operand cancels high limbs of the other, strip
high zeros on the balance before truncating to destination precision.
Truncating first loses accuracy and can lead to a result 0 despite
operands being not equal. Reported by John Abbott.
Also, ensure exponent is zero when result is zero, for instance if
operands are exactly equal.
* tests/mpf/t-sub.c (check_data): New function, exercising these.
2004-05-12 Kevin Ryde
* configure.in (AC_PROG_RANLIB): New macro, supposedly required by
automake, though it doesn't complain.
* demos/expr/Makefile.am (ARFLAGS): Add a default setting, to
workaround an automake bug.
2004-05-10 Kevin Ryde
* */Makefile.in, install-sh, aclocal.m4: Update to automake 1.8.4.
* doc/gmp.texi (Demonstration Programs): Add a remark about expression
evaluation in the main gmp library.
* demos/expr/exprfa.c (mpf_expr_a): Correction to mpX_init, use
mpf_init2 to follow requested precision.
* demos/expr/exprza.c, demos/expr/exprqa.c: Use wrappers for mpX_init,
to make parameters match.
* demos/expr/run-expr.c: Don't use getopt, to avoid needing configury
for optarg declaration. Remove TRY macro, rename foo and bar to var_a
and var_b, for clarity.
* demos/expr/expr-impl.h: Don't use expr-config.h.
* configure.in (demos/expr/expr-config.h): Remove.
* demos/expr/expr-config.in: Remove file.
2004-05-08 Kevin Ryde
* doc/configuration (Configure): Update for current automake not
copying acinclude.m4 into aclocal.m4.
* configure.in, Makefile.am, doc/gmp.texi, doc/configuration,
tests/cxx/Makefile.am, demos/expr/Makefile.am, demos/expr/README,
demos/expr/expr.c, demos/expr/expr.h, demos/expr/expr-config-h.in,
demos/expr/expr-impl.h, demos/expr/run-expr.c, demos/expr/t-expr.c:
MPFR now published separately, remove various bits.
* mpfr/*, tests/cxx/t-headfr.cc, demos/expr/exprfr.c,
demos/expr/exprfra.c: Remove.
2004-05-07 Kevin Ryde
* tests/cxx/Makefile.am (TESTS_ENVIRONMENT): Amend c++ shared library
path hack, on k62-unknown-dragonfly1.0 /usr/bin/make runs its commands
"set -e", so we need an "|| true" in case there's nothing to copy (for
instance in a static build).
2004-05-06 Kevin Ryde
* mpn/alpha/mode1o.c: Remove, in favour of ...
* mpn/alpha/mode1o.asm: New file.
* mpn/alpha/alpha-defs.m4 (bwx_available_p): New macro.
* tune/amd64.asm: Save rbx in r10 rather than on the stack.
* configure.in (x86_64-*-*): Try also "-march=k8 -mno-sse2", in case
we're in ABI=32 on an old OS not supporting xmm regs.
(GMP_GCC_PENTIUM4_SSE2, GMP_OS_X86_XMM): Run these tests under
-march=k8 too, and not under ABI=64.
* doc/gmp.texi (Converting Integers): For mpz_get_d, note truncation
and overflows. For mpz_get_d_2exp note truncation, note result if
OP==0, and cross reference libc frexp.
(Rational Conversions): For mpq_get_d, note truncation and overflows.
(Converting Floats): For mpf_get_d, note truncation and overflows.
For mpf_get_d_2exp, note truncation, note result if OP==0.
(Assembler Code Organisation): Note nails subdirectories.
Clarification of get_d_2exp OP==0 reported by Sylvain Pion.
2004-05-05 Torbjorn Granlund
* mpn/generic/mullow_n.c, mpn/generic/mullow_basecase.c: New files
(mainly by Niels Möller).
* configure.in, mpn/Makefile.am: Add them.
* gmp-impl.h (MULLOW_BASECASE_THRESHOLD, MULLOW_DC_THRESHOLD,
MULLOW_MUL_N_THRESHOLD): Override for TUNE_PROGRAM_BUILD.
* tune/Makefile.am: Compile mullow_n.c.
* tune/common.c (speed_mpn_mullow_n, speed_mpn_mullow_basecase):
New functions.
* tune/speed.c (routine): Add entries for mpn_mullow_n and
mpn_mullow_basecase.
* tune/speed.h (SPEED_ROUTINE_MPN_MULLOW_N_CALL,
SPEED_ROUTINE_MPN_MULLOW_BASECASE): New #defines.
* tune/tuneup.c (tune_mullow): New function.
* gmp-impl.h (invert_limb): Compute branch-freely.
2004-05-02 Kevin Ryde
* mpn/amd64/mode1o.asm: Use movabsq to support large model non-PIC.
Use 32-bit insns to save code bytes, and to save a couple of cycles on
the initial setup multiplies.
2004-05-01 Kevin Ryde
* doc/gmp.texi (References): Update gcc online docs url to
gcc.gnu.org.
* configure.in (mips*-*-irix[6789]*): Correction to m4 quoting of this
pattern. (Believe the mips64*-*-* part also used picks up all current
irix6 tuples anyway.) Reported by Rainer Orth.
2004-04-30 Kevin Ryde
* acinclude.m4 (GMP_PROG_CC_X86_GOT_EAX_EMITTED,
GMP_ASM_X86_GOT_EAX_OK): New macros.
(GMP_PROG_CC_WORKS): Use them to detect an old gas bug tickled by
recent gcc. Reported by David Newman.
* doc/gmp.texi (Reentrancy): Note also gmp_randinit_default as an
alternative to gmp_randinit.
2004-04-29 Torbjorn Granlund
* configfsf.guess: Update to 2004-03-12.
* configfsf.sub: Likewise.
2004-04-27 Torbjorn Granlund
* mpz/rrandomb.c (gmp_rrandomb): Rework to avoid extra limb allocation
and to generate even numbers.
* mpn/generic/random2.c (gmp_rrandomb): Likewise.
2004-04-25 Kevin Ryde
* gmp-impl.h (FORCE_DOUBLE): Don't use an asm with a match constraint
on a memory output, apparently not supported and provokes a warning
from gcc 3.4.
2004-04-24 Kevin Ryde
* longlong.h (count_leading_zeros_gcc_clz,
count_trailing_zeros_gcc_ctz): New macros.
(count_leading_zeros, count_trailing_zeros) [x86]: Use them on gcc
3.4.
* configure.in (x86-*-* gcc_cflags_cpu): Give a -mtune at the start of
each option list, for use by gcc 3.4 to avoid deprecation warnings
about -mcpu.
* mpz/aorsmul.c, mpz/aorsmul_i.c, mpz/cfdiv_q_2exp.c,
mpz/cfdiv_r_2exp.c, mpq/aors.c, mpf/ceilfloor.c: Give REGPARM_ATTR()
on function definition too, as demanded by gcc 3.4.
2004-04-22 Kevin Ryde
* tests/rand/t-lc2exp.c (check_bigc1): New test.
* doc/fdl.texi: Tweak @appendixsubsec -> @appendixsec to match our
preference for this in an @appendix, and because texi2pdf doesn't
support @appendixsubsec directly within an @appendix.
2004-04-20 Kevin Ryde
* doc/texinfo.tex: Update to 2004-04-07.08 from texinfo 4.7.
* doc/gmp.texi, mpfr/mpfr.texi (@copying): Don't put a line break in
@ref within @copying, recent texinfo.tex doesn't like that.
* demos/perl/GMP.xs (static_functable): Treat cygwin the same as mingw
DLLs.
* */Makefile.in, install-sh: Update to automake 1.8.3.
* ltmain.sh, aclocal.m4, configure: Update to libtool 1.5.6.
* gmp-impl.h (LIMB_HIGHBIT_TO_MASK): Use a compile-time constant
expression, rather than a configure test.
* acinclude.m4, configure.in (GMP_C_RIGHT_SHIFT): Remove, no longer
needed.
* tests/t-hightomask.c: New file.
* tests/Makefile.am (check_PROGRAMS): Add it.
* macos/configure (parse_top_configure): Look for PACKAGE_NAME and
PACKAGE_VERSION now used by autoconf.
(what_objects): Only demand 9 object files, as for instance occurs in
the scanf directory.
(asm files): Transform labels L(foo) -> Lfoo. Take func name from
PROLOGUE to support empty "EPILOGUE()". Recognise and subsitute
register name "define()"s.
* macos/Makefile.in (CmnObjs): Add tal-notreent.o.
2004-04-19 Torbjorn Granlund
* tune/speed.h (SPEED_ROUTINE_MPN_ROOTREM): New #define.
(speed_mpn_rootrem): Declare.
* tune/common.c (speed_mpn_rootrem): New function.
* tune/speed.c (routine): Add entry for mpn_rootrem.
2004-04-16 Kevin Ryde
* doc/fdl.texi: Update from FSF, just fixing a couple of typos.
* macos/configure, macos/Makefile.in: Add printf and scanf directories.
* tests/mpz/t-gcd.c (check_data): New function, exercising K6
gcd_finda bug.
2004-04-14 Kevin Ryde
* doc/gmp.texi (Reentrancy, Random State Initialization): Note
gmp_randinit use of gmp_errno is not thread safe. Reported by Vincent
Lefèvre.
* doc/gmp.texi (Random State Initialization): Add index entries for
gmp_errno and constants.
* mpn/m68k/README: Update _SHORT_LIMB -> __GMP_SHORT_LIMB.
* configure.in (--enable-mpbsd): Typo Berkley -> Berkeley in help msg.
2004-04-12 Kevin Ryde
* demos/perl/GMP.xs (static_functable): New macro, use it for all
function tables, to support mingw DLL builds.
* demos/perl/INSTALL (NOTES FOR PARTICULAR SYSTEMS): Remove note on
DLLs, should be ok now.
* demos/perl/sample.pl: Print the module and library versions in use.
* demos/perl/GMP.pm, Makefile.PL (VERSION): Set to '2.00'.
* demos/perl/GMP.pm (COPYRIGHT): New in the doc section.
* Makefile.am: Note 4.1.3 libtool versioning info, and REVISION policy.
* tal-debug.c: Add for abort.
2004-04-07 Torbjorn Granlund
* tests/refmpf.c (refmpf_add_ulp): Adjust exponent when needed.
* mpn/generic/random2.c: Rewrite (clone mpz/rrandomb.c).
2004-04-07 Kevin Ryde
* mpn/x86/k6/gcd_finda.asm: Correction jbe -> jb in initial setups.
Zero flag is wrong here, it relects only the high limb of the compare,
leading to n1>=n2 not satisfied and wrong results. cp[1]==0x7FFFFFFF
with cp[0]>=0x80000001 provokes this.
* doc/gmp.texi (BSD Compatible Functions): Note "pow" name clash under
the pow function description too.
(Language Bindings): Add XEmacs (betas at this stage). Reported by
Jerry James.
* tests/refmpn.c (refmpn_mod2): Correction to ASSERTs, r==a is allowed.
* gen-psqr.c (generate_mod): Cast mpz_invert_ui_2exp args, for K&R.
* gen-bases.c, gen-fib.c, gen-psqr.c: For mpz_out_str, use stdout
instead of 0, in case a K&R treats int and FILE* params differently.
2004-04-04 Kevin Ryde
* gmp-impl.h (BSWAP_LIMB) [amd64]: New macro.
(FORCE_DOUBLE): Use this for amd64 too.
* tests/amd64check.c, tests/amd64call.asm: New files, derived in part
from x86check.c and x86call.asm.
* tests/Makefile.am (EXTRA_libtests_la_SOURCES): Add them.
* configure.in (x86_64-*-* ABI=64): Use them.
2004-04-03 Kevin Ryde
* mpn/amd64/mode1o.asm: New file.
* mpn/amd64/amd64-defs.m4 (ASSERT): New macro.
* mpn/x86/k7/mmx/divrem_1.asm, mpn/x86/pentium4/sse2/divrem_1.asm: Add
note on how "dr" part of algorithm is handled.
* mpn/x86/k7/dive_1.asm, mpn/x86/k7/mod_34lsub1.asm,
mpn/x86/k7/mode1o.asm: Note Hammer (32-bit mode) speeds.
2004-03-31 Kevin Ryde
* doc/gmp.texi (Language Bindings): Add GOO, MLGMP and Numerix.
* mpf/mul_2exp.c, mpf/div_2exp.c: Rate u==0 as UNLIKELY.
2004-03-27 Torbjorn Granlund
* mpn/generic/divrem_1.c: Fix typo.
* mpn/generic/sqr_basecase.c: Fix typo.
2004-03-20 Kevin Ryde
* longlong.h (power, powerpc): Add comments on how we select this code.
* gmp-h.in (mpz_get_ui): Use ?: instead of mask style, gcc treats the
two identically but ?: is a bit clearer.
* insert-dbl.c: Remove file, no longer used, scaling is now integrated
in mpn_get_d.
* Makefile.am (libgmp_la_SOURCES): Remove insert-dbl.c.
* gmp-impl.h (__gmp_scale2): Remove prototype.
2004-03-17 Kevin Ryde
* mpn/x86/fat/fat.c (__gmpn_cpuvec_init, fake_cpuid_table): Add x86_64.
* mpq/get_d.c: Use mpn_tdiv_qr, demand den>0 per canonical form.
2004-03-16 Torbjorn Granlund
* mpn/generic/sqr_basecase.c: Add versions using mpn_addmul_2 and
mpn_addmul_2s.
2004-03-14 Kevin Ryde
* mpf/mul_ui.c: Incorporate carry from low limbs, for exactness.
* tests/mpf/t-mul_ui.c: New file.
* tests/mpf/Makefile.am (check_PROGRAMS): Add it.
* mpf/div.c: Use mpn_tdiv_qr. Use just one TMP_ALLOC. Use full
divisor, since truncating can lose accuracy.
* tests/mpf/t-div.c: New file.
* tests/mpf/Makefile.am (check_PROGRAMS): Add it.
* tests/mpf/t-set_q.c, tests/mpf/t-ui_div.c (check_various): Amend
bogus 99/4 test.
* tests/mpf/t-ui_div.c (check_rand): Exercise r==v overlap.
* tests/refmpf.c, tests/tests.h (refmpf_set_overlap): New function.
* mpf/cmp_si.c [nails]: Correction, cast vval in exp comparisons, for
when vval=-0x800..00 and limb==longlong.
* mpf/cmp_si.c [nails]: Correction, return usign instead of 1 when
uexp==2 but value bigger than an mp_limb_t.
* tests/mpf/t-cmp_si.c (check_data): Add test cases.
* tests/trace.c (mpf_trace): Use ABS(mp_trace_base) to allow for
negative bases used for upper case hex in integer traces.
2004-03-12 Torbjorn Granlund
* mpn/generic/sb_divrem_mn.c: Correct header comment.
2004-03-11 Kevin Ryde
* aclocal.m4, configure, ltmain.sh: Downgrade to libtool 1.5, version
1.5.2 doesn't remove .libs/*.a files when rebuilding, which is bad for
development when changing contents or with duplicate named files like
we have.
Revert this, ie restore AR_FLAGS=cq:
* acinclude.m4 (GMP_PROG_AR): Remove AR_FLAGS=cq, libtool 1.5.2 now
does this itself on detecting duplicate object filenames in piecewise
linking mode.
* randbui.c, randmui.c [longlong+nails]: Correction to conditionals
for second limb.
* mpz/aors_ui.h, mpz/cdiv_q_ui.c, mpz/cdiv_qr_ui.c, mpz/cdiv_r_ui.c,
mpz/cdiv_ui.c, mpz/fdiv_q_ui.c, mpz/fdiv_qr_ui.c, mpz/fdiv_r_ui.c,
mpz/fdiv_ui.c, mpz/gcd_ui.c, mpz/iset_ui.c, mpz/lcm_ui.c,
mpz/set_ui.c, mpz/tdiv_q_ui.c, mpz/tdiv_qr_ui.c, mpz/tdiv_r_ui.c,
mpz/tdiv_ui.c, mpz/ui_sub.c, mpf/div_ui.c, mpf/mul_ui.c
[longlong+nails]: Amend #if to avoid warnings about shift amount.
2004-03-07 Kevin Ryde
* mpf/reldiff.c: Use rprec+ysize limbs for d, to ensure accurate
result. Inline mpf_abs(d,d) and mpf_cmp_ui(x,0), and rate the latter
UNLIKELY.
* mpf/ui_div.c: Use mpn_tdiv_qr. Use just one TMP_ALLOC. Use full
divisor, since truncating can lose accuracy.
* tests/mpf/t-ui_div.c: New file.
* tests/mpf/Makefile.am (check_PROGRAMS): Add it.
* mpf/set_q.c: Expand TMP_ALLOC_LIMBS_2, to make conditional clearer
and avoid 1 limb alloc when not wanted.
* gmp-impl.h (WANT_TMP_DEBUG): Define to 0 if not defined.
(TMP_ALLOC_LIMBS_2): Use "if" within macro rather than "#if", for less
preprocessor conditionals.
* mpf/mul_2exp.c, mpf/div_2exp.c: Add some comments.
* tests/refmpn.c (refmpn_sb_divrem_mn, refmpn_tdiv_qr): Nailify.
2004-03-04 Kevin Ryde
* gen-psqr.c (print): Add CNST_LIMB in PERFSQR_MOD_TEST, for benefit
of K&R.
* tests/mpn/t-perfsqr.c (PERFSQR_MOD_1): Use CNST_LIMB for K&R.
* doc/configuration (Configure): Remove mkinstalldirs, no longer used.
* acinclude.m4 (GMP_PROG_AR): Remove AR_FLAGS=cq, libtool 1.5.2 now
does this itself on detecting duplicate object filenames in piecewise
linking mode.
* configure.in (hppa2.0*-*-*): Test sizeof(long) == 4 or 8 to verify
ABI=2.0n versus ABI=2.0w. In particular this lets CC=cc_bundled
correctly fall back to ABI=2.0n (we don't automatically add CC=+DD64
to that compiler, currently).
* doc/gmp.texi (Reentrancy): Note C++ mpf_class constructors using
global default precision.
(Random State Miscellaneous): Describe gmp_urandomb_ui as giving N
bits.
(C++ Interface Floats): Describe operator= copying the value, not the
precision, and what this can mean about copy constructor versus
default constructor plus assignment.
* mpf/set_q.c: Use mpn_tdiv_qr rather than mpn_divrem, so no shifting.
Don't truncate the divisor, it can make the result inaccurate.
* tests/mpf/t-set_q.c: New file.
* tests/mpf/Makefile.am (check_PROGRAMS): Add it.
* mpf/set.c: Use MPN_COPY_INCR, in case r==u and ABSIZ(u) > PREC(r)+1.
No actual bug here, because MPN_COPY has thusfar been an alias for
MPN_COPY_INCR, only an ASSERT failure.
* tests/mpf/t-set.c: New file.
* tests/mpf/Makefile.am (check_PROGRAMS): Add it.
* mpf/set.c, mpf/iset.c: Do MPN_COPY last, for possible tail call.
* mpf/set_d.c: Rate d==0 as UNLIKELY. Store size before extract call,
to shorten lifespan of "negative".
* mpf/init.c, mpf/init2.c, mpf/iset_d.c, mpf/iset_si.c,
mpf/iset_str.c, mpf/iset_ui.c: Store prec before alloc call, for one
less live quantity across that call.
* mpf/init.c, mpf/init2.c, mpf/iset_str.c: Store size and exp before
alloc call, to overlap with other operations.
* tests/refmpf.c, tests/tests.h (refmpf_fill, refmpf_normalize,
refmpf_validate, refmpf_validate_division): New functions.
* tests/refmpn.c, tests/tests.h (refmpn_copy_extend,
refmpn_lshift_or_copy_any, refmpn_rshift_or_copy_any): New functions.
* tal-debug.c: Add for strcmp.
* tests/cxx/t-istream.cc (check_mpz, check_mpq, check_mpf): Use size_t
for loop index, to quieten g++ warning.
2004-03-01 Torbjorn Granlund
With Karl Hasselström:
* mpn/generic/dc_divrem_n.c (mpn_dc_div_2_by_1): New function, with
meat from old mpn_dc_divrem_n. Accept scratch parameter. Rewrite to
avoid a recursive call.
(mpn_dc_div_3_by_2): New function, with meat from old
mpn_dc_div_3_halves_by_2. Accept scratch parameter.
(mpn_dc_divrem_n): Now just allocate scratch space and call new
mpn_dc_div_2_by_1.
2004-02-29 Kevin Ryde
* longlong.h (count_leading_zeros) [alpha gcc]: New version, inlining
mpn/alpha/cntlz.asm cmpbge technique.
* aclocal.m4, configure, install-sh, missing, ltmain.sh,
*/Makefile.in: Update to automake 1.8.2 and libtool 1.5.2.
* doc/gmp.texi (C++ Interface Integers): Note / and % rounding follows
C99 / and %.
(Exact Remainder): Index entries for divisibility testing algorithm.
* tune/time.c (speed_endtime): Return 0.0 for negative time measured.
Revise usage comments for clarity.
* tune/common.c (speed_measure): Recognise speed_endtime 0.0 for
failed measurement.
* tests/mpn/t-get_d.c (check_rand): Correction to nhigh_mask setup.
2004-02-27 Torbjorn Granlund
* tune/tuneup.c (tune_dc, tune_set_str): Up param.step_factor.
* tests/mpz/t-gcd.c: Decrease # of tests to 50.
2004-02-27 Kevin Ryde
* tests/devel/try.c: Add a comment that this is not for Cray systems.
* mpf/set_q.c: Don't support den(q)<0, demand canonical form in the
usual way.
2004-02-24 Torbjorn Granlund
From Kevin:
* mpn/generic/mul_fft.c (mpn_fft_add_modF): Loop until normalization
criterion met.
2004-02-22 Kevin Ryde
* acinclude.m4 (GMP_PROG_CC_WORKS, GMP_OS_X86_XMM, GMP_PROG_CXX_WORKS):
Remove files that might look like compiler output, so our "||"
alternatives are not fooled.
* acinclude.m4 (GMP_PROG_CC_WORKS): Add test for lshift_com code
mis-compiled by certain IA-64 HP cc at +O3.
* gmp-impl.h (USE_LEADING_REGPARM): Disable under prof or gprof, for
the benefit of freebsd where .mcount clobbers registers. Spotted by
Torbjorn.
* configure.in (WANT_PROFILING_PROF, WANT_PROFILING_GPROF): New
AC_DEFINEs.
2004-02-21 Kevin Ryde
* configure.in (sparc64-*-*bsd*): Amend -m32 setup for ABI=32, so it's
not used in ABI=64 on the BSD systems.
2004-02-18 Niels Möller
* tests/mpz/t-gcd.c (gcdext_valid_p): New function.
(ref_mpz_gcd): Deleted function.
(one_test): Rearranged to call mpz_gcdext first, so that the
returned value can be validated.
(main): Don't use ref_mpz_gcd.
2004-02-18 Torbjorn Granlund
* gmp-impl.h (MPN_TOOM3_MAX_N): Move to !WANT_FFT section.
* tests/mpz/t-mul.c: Exclude special huge operands unless WANT_FFT.
* mpz/rrandomb.c (gmp_rrandomb): Rewrite.
* mpn/generic/mul_n.c (mpn_toom3_sqr_n): Remove write-only variable c5.
2004-02-18 Kevin Ryde
* mpf/iset_si.c, mpf/iset_ui.c, mpf/set_si.c, mpf/set_ui.c [nails]:
Always store second limb, to avoid a conditional.
* tests/mpf/t-get_ui.c: New file.
* tests/mpf/Makefile.am (check_PROGRAMS): Add it.
* tests/mpf/t-get_si.c (check_limbdata): Further tests.
* gmp-impl.h (MP_EXP_T_MAX, MP_EXP_T_MIN): New defines.
* mpf/get_ui.c, mpf/get_si.c: Remove size==0 test, it's covered by
other conditions. Attempt greater clarity by expressing conditions as
based on available data range.
* mpf/get_si.c [nails]: Correction, don't bail on exp > abs_size,
since may still have second limb above radix point available.
* mpf/get_ui.c: Nailify.
2004-02-16 Kevin Ryde
* mpz/scan0.c, mpz/scan1.c: Use count_trailing_zeros, instead of
count_leading_zeros on limb&-limb.
* mpf/sqrt.c: Use "/ 2" for exp, avoiding C undefined behaviour on
">>" of negatives. Correction to comment, exp is rounded upwards.
SIZ(r) always prec now, no need for tsize expression. Store EXP(r)
and SIZ(r) where calculated to reduce variable lifespans. Make tsize
mp_size_t not mp_exp_t, though of course those are currently the same.
* gmp-h.in (GMP_ERROR_ALLOCATE, GMP_ERROR_BAD_STRING,
GMP_ERROR_UNUSED_ERROR): Remove, never used or documented, and we
don't want to use globals for communicating error information.
* mpz/gcd_ui.c [nails]: Correction, actually return a value.
* mpn/generic/addmul_1.c, mpn/generic/submul_1.c [nails==1]: Add code.
2004-02-15 Kevin Ryde
* tests/mpz/t-jac.c (check_data): Remove unnecessary variable
"answer".
2004-02-14 Kevin Ryde
* acinclude.m4 (GMP_C_RIGHT_SHIFT): Note that it's "long"s which we're
concerned about.
* mpn/generic/mul_n.c: Add some remarks about toom3 high zero
stripping.
* mpn/generic/scan0.c, mpn/generic/scan1.c: Remove design issue
remarks. What to do about going outside `up' space is a problem, but
anything to address it would be an incompatible change.
2004-02-11 Kevin Ryde
* longlong.h (power, powerpc): Use HAVE_HOST_CPU_FAMILY_power and
HAVE_HOST_CPU_FAMILY_powerpc rather than various cpp defines.
* gmp-impl.h: Add remarks about limits.h and Cray etc.
* dumbmp.c (mpz_mul): Set ALLOC(r) for new data block used. Reported
by Jason Moxham.
* mpn/pa32/README, mpn/pa64/README (REFERENCES): New sections.
2004-02-10 Torbjorn Granlund
* tests/mpz/t-gcd.c: Decrease # of tests run.
* mpn/*/gmp-mparam.h: Add HGCD values, update TOOM values.
2004-02-01 Torbjorn Granlund
From Kevin:
* config.guess: Recognize AMD's hammer processors, return x86_64.
2004-01-24 Kevin Ryde
* tests/mpf/t-sqrt.c (check_rand1): Further diagnostic printouts.
* mpn/generic/sqrtrem.c (mpn_sqrtrem): Add ASSERT_MPN.
(mpn_dc_sqrtrem): Add casts for K&R.
* mpf/sqrt_ui.c: Nailify.
* mpf/set_z.c: Do MPN_COPY last, for possible tail call.
* doc/gmp.texi (Miscellaneous Float Functions): For mpf_random2, note
exponent is in limbs.
2004-01-22 Kevin Ryde
* mpf/sqrt.c: Change tsize calculation to get prec limbs result
always, previously got prec+1 when exp was odd.
* tests/mpf/t-sqrt.c (check_rand1): New function, code from main.
(check_rand2): New function.
* mpf/sqrt_ui.c: Change rsize calculation to get prec limbs result,
previously got prec+1.
* tests/mpf/t-sqrt_ui.c: New file.
* tests/mpf/Makefile.am (check_PROGRAMS): Add it.
* tests/refmpf.c, tests/tests.h (refmpf_add_ulp,
refmpf_set_prec_limbs): New functions.
* mpz/get_d_2exp.c, mpf/get_d_2exp.c: Remove x86+m68k force to double,
mpn_get_d now does this. Remove res==1.0 check for round upwards,
mpn_get_d now rounds towards zero. Move exp store to make mpn_get_d a
tail call.
* configure.in (x86-*-*): Use ABI=32 rather than ABI=standard.
Use gcc -m32 when available, to force mode on bi-arch amd64 gcc.
* configure.in, acinclude.m4 (x86_64-*-*): Merge into plain x86 setups
as ABI=64. Support ABI=32, using athlon code. Use gcc -mcpu=k8,
-march=k8.
(amd64-*-*): Remove pattern, config.sub only gives x86_64.
* doc/gmp.texi (ABI and ISA): Add x86_64 dual ABIs.
* mpn/amd64/README: Add reference to ABI spec.
2004-01-17 Kevin Ryde
* tune/README: Remove open/mpn versions of toom3, no longer exist.
* tune/powerpc64.asm: Remove unused L(again).
* tune/time.c (mftb): Note single mftb possible for powerpc64.
* mpn/generic/mode1o.c: Use "c
* configure.in (powerpc64-*-linux*): Try gcc64. Try -m64 with
"cflags_maybe" to get it used in all probing. Add sizeof-long-8 test
to check the mode is right if -m64 is not applicable.
2004-01-15 Kevin Ryde
* configure.in (--with-readline=detect): Check for readline/readline.h
and readline/history.h. Report result of detection.
2004-01-12 Niels Möller
* tests/tests.h: Added refmpn_free_limbs prototype.
* tests/refmpn.c (refmpn_free_limbs): New function.
2004-01-11 Kevin Ryde
* mpn/alpha/ev6/slot.pl: New file, derived in part from
mpn/x86/k6/cross.pl.
* mpn/alpha/alpha-defs.m4 (ASSERT): New macro.
* mpn/asm-defs.m4 (m4_ifdef): New macro, avoiding OSF 4.0 m4 bug.
(m4_assert_defined): Use it.
* mpn/alpha/default.m4, mpn/alpha/unicos.m4 (LDGP): New macro.
* mpn/alpha/ev67/gcd_1.asm: Use it to re-establish gp after jsr.
* configure.in, demos/calc/Makefile.am: Use -lcurses or -lncurses with
readline, when available.
* longlong.h (sub_ddmmss) [generic]: Use alal, since the former can be done without waiting for __x,
helping superscalar chips, in particular alpha ev5 and ev6.
* longlong.h (sub_ddmmss) [ia64]: New macro.
* tests/t-sub.c: New file.
* tests/Makefile.am (check_PROGRAMS): Add it.
* tests/refmpn.c, tests/tests.h (refmpn_sub_ddmmss): New function.
2004-01-09 Kevin Ryde
* mpn/x86/p6/mod_34lsub1.asm: New file, derived in part from
mpn/x86/mod_34lsub1.asm.
* configure.in (IA64_PATTERN): Use -mtune on gcc 3.4.
2004-01-07 Kevin Ryde
* gmp-h.in, mp-h.in (__GMP_SHORT_LIMB): Renamed from _SHORT_LIMB, to
keep in our namespace. (Not actually used anywhere currently.)
Reported by Patrick Pelissier.
* mp-h.in: Use "! defined (__GMP_WITHIN_CONFIGURE)" in the same style
as gmp-h.in (though mp-h.in is not actually used during configure).
* mp-h.in (__GMP_DECLSPEC_EXPORT, __GMP_DECLSPEC_IMPORT) [__GNUC__]:
Use __dllexport__ and __dllimport__ to keep out of application
namespace. Same previously done in gmp-h.in.
2004-01-06 Kevin Ryde
* configfsf.sub, configfsf.guess: Update to 2004-01-05.
* configure.in (amd64-*-* | x86_64-*-*): Update comments on what
configfsf.sub does.
2004-01-04 Kevin Ryde
* mpn/alpha/README (REFERENCES): Add tru64 assembly manuals.
(ASSEMBLY RULES): Note what gcc says about !literal! etc.
2004-01-03 Kevin Ryde
* mpn/alpha/ev67/gcd_1.asm: New file.
* mpn/x86/pentium4/sse2/rsh1add_n.asm: New file, derived in part from
mpn/x86/pentium4/sse2/addlsh1_n.asm.
* mpn/x86/p6/p3mmx/popham.asm: Note measured speeds.
* mpn/x86/pentium4/sse2/addlsh1_n.asm (PARAM_CARRY): Remove macro, not
used, no such parameter.
* mpn/generic/gcd.c: Use for NULL.
* doc/gmp.texi (Single Limb Division): Correction to tex expression
for (1/2)x1. And minor wording tweaks elsewhere.
* gmp-impl.h (mpn_rsh1add_n, mpn_rsh1sub_n): Correction to comments
about how carries returned.
* longlong.h (umul_ppmm) [generic]: Add comments about squaring
(dropped from tasks list)
2003-12-31 Kevin Ryde
* demos/perl/GMP.xs (scan0, scan1): Return ~0 for not-found.
* demos/perl/GMP.pm: Describe this, remove the note about ULONG_MAX
being the same as ~0 (which is not true in old perl).
* demos/perl/test.pl: Update tests.
* demos/perl/typemap (gmp_UV): New type.
* demos/perl/test.pl (fits_slong_p): Comment out uv_max test, it won't
necessarily exceed a long.
* demos/perl/GMP.pm: Add a remark about get_str to the bugs section.
* mpn/generic/sqrtrem.c, mpz/fac_ui.c, tests/mpf/reuse.c: Add casts
for K&R.
* tests/mpf/t-muldiv.c: Make ulimb, vlimb into ulongs, which is how
they're used, for the benefit of K&R calling.
* doc/gmp.texi (Square Root Algorithm): Add a summary of the algorithm.
And add further index entries in various places.
* mpz/lucnum_ui.c, mpz/lucnum2_ui.c: Use mpn_addlsh1_n when available.
* gmp-impl.h, mpn/generic/mul_n.c (mpn_addlsh1_n, mpn_sublsh1_n,
mpn_rsh1add_n, mpn_rsh1sub_n): Move descriptions to gmp-impl.h with
the prototypes, for ease of locating.
2003-12-29 Torbjorn Granlund
* tests/mpz/t-gcd.c: Rewrite, based on suggestions by Kevin.
* mpn/sparc64/README: Remove mpn_Xmul_2, done.
Add blurb about L1 cache conflicts.
2003-12-29 Kevin Ryde
* mpn/generic/mul_fft.c, mpz/root.c, mpq/cmp_ui.c: Add casts for K&R.
2003-12-27 Kevin Ryde
* tests/mpz/t-mul.c (mul_kara, mul_basecase): Use __GMP_PROTO.
* Makefile.am (AUTOMAKE_OPTIONS): Restore this, giving no directory on
ansi2knr to avoid a circular build rule.
* configure.in (AM_INIT_AUTOMAKE): Note options also in Makefile.am.
* configure.in (cflags_maybe): Don't loop adding cflags_maybe if the
user has set CFLAGS.
2003-12-23 Kevin Ryde
* configure.in (*sparc*-*-*): Test sizeof(long)==4 or 8 for ABIs, to
get the right mode when the user sets the CFLAGS.
(testlist): Introduce "any__testlist" to apply to all compilers.
* demos/perl/typemap (MPZ_ASSUME, MPQ_ASSUME, MPF_ASSUME): Remove
output rules, these are only meant for inputs.
(MPZ_MUTATE): Remove, not used since changes for magic.
* demos/perl/GMP.xs (mpz_class_hv, mpq_class_hv, mpf_class_hv): New
variables, initialized in BOOT.
* demos/perl/GMP.xs, demos/perl/typemap: Use them and explicit
sv_bless, to save a gv_stashpv for every new object.
2003-12-22 Kevin Ryde
* mpn/alpha/mode1o.c, mpn/alpha/dive_1.c: Moved from ev5/mode1o.c and
ev5/dive_1.c, these are good for ev4, and would like them in a generic
alpha build.
2003-12-21 Kevin Ryde
* doc/gmp.texi (Integer Logic and Bit Fiddling): Say "bitwise" in
mpz_and, mpz_ior and mpz_xor, to avoid any confusion with what C means
by "logical". Reported by Rüdiger Schütz.
* gmp-h.in (_GMP_H_HAVE_FILE): Note why defined(EOF) is not good.
2003-12-20 Kevin Ryde
* tune/speed.h (SPEED_TMP_ALLOC_LIMBS): Correction to last change,
don't want "- 1" on the TMP_ALLOC_LIMBS.
* demos/expr/expr.h: Test #ifdef MPFR_VERSION_MAJOR for when mpfr.h is
included, not GMP_RNDZ which is now an enum.
* demos/expr/exprfra.c (e_mpfr_ulong_p): Use mpfr_integer_p and
mpfr_fits_ulong_p.
(e_mpfr_get_ui_fits): Use mpfr_get_ui.
* mpfr/*: Update to mpfr cvs head 2003-12-20.
* configure, config.in: Update to autoconf 2.59.
* */Makefile.in, configure, aclocal.m4, ansi2knr.c, install-sh,
doc/mdate-sh: Update to automake 1.8.
* mkinstalldirs: Remove, not required by automake 1.8.
* doc/gmp.texi (Build Options): HTML is a usual target in automake 1.8.
* configure.in (AC_PREREQ): Require autoconf 2.59.
(AM_INIT_AUTOMAKE): Require automake 1.8.
(AC_C_INLINE): Use rather than GMP_C_INLINE, now has #ifndef
__cplusplus we want.
(gettimeofday): Use AC_CHECK_FUNCS rather than our workaround code,
autoconf now ok.
* acinclude.m4 (GMP_C_INLINE): Remove.
(GMP_H_EXTERN_INLINE): Use AC_C_INLINE.
(GMP_PROG_AR): Comment on automake $ARFLAGS.
2003-12-19 Torbjorn Granlund
* tests/mpf/t-get_d.c: Print message before aborting.
* mpn/generic/get_d.c: Make ONE_LIMB case actually work for nails.
2003-12-18 Torbjorn Granlund
* mpz/get_d.c: Don't include longlong.h.
* tests/mpz/t-mul.c (ref_mpn_mul): Handle un == vn specially, to avoid
a dummy r/w outside of allocated area.
2003-12-18 Kevin Ryde
* mpn/alpha/unicos.m4 (ALIGN): Add comments on what GCC does.
* configure.in (fat setups), acinclude.m4 (GMP_INIT): Obscure
include() from automake 1.8 aclocal.
* acinclude.m4: Quote names in AC_DEFUN, for automake 1.8 aclocal.
2003-12-13 Kevin Ryde
* mpq/get_d.c: Amend comments per mpn_get_d change.
(limb2dbl): Remove, no longer used.
* gmp-impl.h (DIVREM_1_NORM_THRESHOLD etc) [nails]: Correction to
comments, MP_SIZE_T_MAX means preinv never.
* gmp-impl.h (DIVEXACT_1_THRESHOLD, MODEXACT_1_ODD_THRESHOLD) [nails]:
Remove overrides, divexact_1 and modexact_1 have been nailified.
* mpz/inp_str.c (mpz_inp_str_nowhite): Use ASSERT_ALWAYS for EOF value
requirement.
* tests/refmpn.c (refmpn_rsh1add_n, refmpn_rsh1sub_n): Parens around
GMP_NUMB_BITS - 1 with ">>", to quieten gcc -Wall.
* tests/t-constants.c (main), tests/t-count_zeros.c (check_clz),
tests/t-modlinv.c (one), tests/mpz/t-jac.c (try_si_zi),
tests/mpq/t-get_d.c (check_onebit): : Correction to printfs.
* tests/mpn/t-fat.c: Add for memcpy.
* tests/mpz/t-scan.c (check_ref): Remove unused variable "isigned".
* tests/mpq/t-get_d.c (check_onebit): Remove unused variable "limit".
* tests/mpf/t-set_si.c, tests/mpf/t-set_ui.c (check_data): Braces for
initializers.
* tests/devel/try.c (mpn_divexact_by3_fun, mpn_modexact_1_odd_fun):
Correction to return values.
* doc/gmp.texi (Miscellaneous Integer Functions): Note mpz_sizeinbase
can be used to locate the most significant bit. Reword a bit for
clarity.
2003-12-11 Torbjorn Granlund
* gmp-impl.h: Change asm => __asm__, tabify.
* mpz/get_d_2exp.c: Likewise.
* mpf/get_d_2exp.c: Likewise.
* tests/cxx/t-ops.cc: #if .. #endif out tests that cause ambiguities.
2003-12-10 Torbjorn Granlund
* tests/mpz/t-gcd.c: Generate operands with sizes as a geometric
progression, to allow for larger operands and less varying timing.
2003-12-10 Kevin Ryde
* demos/perl/test.pl: Should be $] for perl version in old perl.
* configure.in (sparc64-*-*): Single block of gcc configs for all
systems, on unknown systems try both ABI 32 and 64.
* configure.in (LIBGMP_LDFLAGS, LIBGMPXX_LDFLAGS): New AC_SUBSTs with
options to generate .def files with windows DLLs.
* Makefile.am (libgmp_la_LDFLAGS, libgmpxx_la_LDFLAGS): Use them.
* mpn/generic/gcd.c: Use ABOVE_THRESHOLD / BELOW_THRESHOLD, to follow
convention and cooperate with tune/tuneup.c.
* tune/common.c, tune/speed.c, tune/speed.h, tune/speed-ext.c,
tune/tuneup.c (SPEED_TMP_ALLOC_LIMBS): Take variable as parameter
rather than returning a value, avoids alloca in a function call.
* tune/common.c, tune/speed.h (speed_tmp_alloc_adjust): Remove, now
inline in SPEED_TMP_ALLOC_LIMBS, and using ptr-NULL for alignment
extraction.
* gmpxx.h (__gmp_binary_equal, __gmp_binary_not_equal,
__gmp_binary_less, __gmp_binary_less_equal, __gmp_binary_greater,
__gmp_binary_greater_equal, __gmp_cmp_function): Use mpfr_cmp_si and
mpfr_cmp_d.
* tests/cxx/t-ops.cc: Exercise this.
* demos/perl/Makefile.PL: Don't install sample.pl and test2.pl.
* demos/perl/GMP.xs (use_sv): Prefer PV over IV or NV to avoid any
rounding.
* demos/perl/test.pl: Exercise this.
* demos/perl/GMP/Mpf.pm (overload_string): Corrections to $# usage.
* demos/perl/test.pl: Exercise this.
2003-12-08 Kevin Ryde
* demos/perl/GMP.pm: Correction to canonicalize example.
* demos/perl/GMP.xs: New type check scheme, support magic scalars,
support UV when available. Remove some unused local variables.
(coerce_long): Check range of double.
(get_d_2exp): Remove stray printf.
* demos/perl/test.pl: Exercise magic, rearrange to make it clearer
what's being tested.
2003-12-07 Kevin Ryde
* tune/tuneup.c (mul_toom3_threshold): Use MUL_TOOM3_THRESHOLD_LIMIT,
for the benefit of ASSERT in mpn_mul_n.
* tune/tuneup.c (tune_mul): Correction to toom3 param.min_size, should
use MPN_TOOM3_MUL_N_MINSIZE.
* tune/speed.c (check_align_option): Correction to printf format.
* tune/freq.c (freq_sysctl_hw_model): Remove unused "i" variable.
* scanf/doscan.c: Correction to a couple of trace printfs.
Add for strtol.
* tests/misc/t-scanf.c (test_sscanf_eof_ok): New function.
(check_misc): Use it to suppress tests broken by libc.
And should be EOF rather than -1 in various places.
2003-12-06 Torbjorn Granlund
* mpn/generic/get_str.c (mpn_get_str, POW2_P case):
Don't append extra '\0' byte.
2003-12-05 Niels Möller
* tune/speed.h (mpn_gcd_accel): Added prototype.
2003-12-05 Torbjorn Granlund
* randmt.c (__gmp_mt_recalc_buffer): Put parens around "&" expressions
inside "!=".
* mpf/get_str.c: Remove unused variable "fracn".
2003-12-03 Kevin Ryde
* configure.in, Makefile.am (LIBGMP_LDFLAGS, LIBGMPXX_LDFLAGS): New
AC_SUBSTs, use them to create .def files with Windows DLLs.
* doc/gmp.texi (Notes for Particular Systems): Update notes on mingw
DLL with MS C.
* mpz/export.c: Allow NULL for countp.
* doc/gmp.texi (Integer Import and Export): Describe this.
Suggested by Jack Lloyd.
* mpn/x86/p6/aors_n.asm: New file, grabbing the K7 code.
Superiority of this reported by Patrick Pelissier.
2003-11-30 Kevin Ryde
* mpn/alpha/ev67/popcount.asm, mpn/alpha/ev67/hamdist.asm: New files.
* mpn/alpha/ev67: New directory.
* configure.in (alphaev67, alphaev68, alphaev7*): Use it.
* doc/gmp.texi (GMPrefu, GMPpxrefu): Change back to plain ref and
pxref, remove macros.
(GMPreftopu, GMPpxreftopu): Remove URL parameter, rename to GMPreftop
and GMPpxreftop.
(Debugging): Remove debauch, seems to have disappeared.
(Language Bindings): Corrections to URLs for CLN, Omni F77, Pike.
2003-11-29 Kevin Ryde
* demos/perl/GMP/Mpf.pm (overload_string): Use $OFMT to avoid warnings
about $#.
* demos/perl/GMP.xs (fits_slong_p): Use LONG_MAX+1 to avoid possible
rounding of 0x7F..FF in a double on 64-bit systems.
* configure.in (ppc601-*-*): Remove this case, it never matched
anything, the name adopted is powerpc601.
(powerpc601-*-*): Use gcc -mcpu=601, xlc -qarch=601.
* configure.in: Introduce ${cc}_cflags_maybe, used if they work.
(*sparc*-*-*) [ABI=32]: Add gcc_cflags_maybe=-m32 to force that mode.
* doc/gmp.texi (Introduction to GMP): Add AMD64 to optimizations list.
(Build Options): Add cpu types alphaev7 and amd64. Update texinfo
html cross reference.
2003-11-28 Niels Möller
* mpn/generic/gcd.c (MPN_LEQ_P): Copied macro definition (needed
for compilation with --enable-assert).
2003-11-27 Niels Möller
* tests/mpz/t-gcd.c (gcd_values): Moved definition, so that we
don't need to forward declare the array.
2003-11-26 Torbjorn Granlund
* tests/mpz/t-gcd.c: Generate random operands up to 32767 bits;
decrease # of test to 1000.
(gcd_values): Remove oversize test case.
2003-11-26 Niels Möller
* tests/mpz/t-gcd.c (main): Added some tests with non-random
input.
2003-11-25 Niels Möller
* gmp-impl.h (MPN_LEQ_P, MPN_EXTRACT_LIMB): New macros.
2003-11-25 Kevin Ryde
* doc/gmp.texi (Language Bindings): Add Axiom.
2003-11-22 Kevin Ryde
* mpn/alpha/README: More notes on assembler syntax variations.
* mpn/alpha/alpha-defs.m4, mpn/alpha/unicos.m4 (unop): Should be ldq_u
not bis, and move to alpha-defs.m4 since it can be happily used
everywhere.
* mpn/alpha/alpha-defs.m4, mpn/alpha/default.m4, mpn/alpha/unicos.m4
(bigend): Move to alpha-defs.m4 and base it on HAVE_LIMB_BIG_ENDIAN or
HAVE_LIMB_LITTLE_ENDIAN, so as not to hard code system endianness.
* mpn/alpha/alpha-defs.m4: New file.
* configure.in (alpha*-*-*): Use it.
2003-11-21 Kevin Ryde
* mpfr/*: Update to mpfr-2-0-2-branch 2003-11-21.
* mpn/alpha/ev5/com_n.asm: Change "not" to "ornot r31", since "not"
isn't recognised by on Cray Unicos. Add missing "gp" to PROLOGUE.
* mpn/alpha/README: Add a note on "not".
2003-11-19 Torbjorn Granlund
* mpn/alpha/aorslsh1_n.asm: Slightly rework feed-in code, avoiding
spurious reads beyond operand limits.
* mpn/alpha/ev5/com_n.asm: Add ASM_START/ASM_END.
* mpn/generic/mul_fft.c (mpn_fft_zero_p): Remove unused function.
(mpn_lshift_com): Make static, nailify properly.
2003-11-19 Kevin Ryde
* mpn/generic/diveby3.c: Use a "q" variable to make it clearer what
the code is doing.
* mpn/powerpc32/750/lshift.asm, mpn/powerpc32/750/rshift.asm: New
files.
* mpn/alpha/ev5/com_n.asm: New file.
* doc/gmp.texi (Assembler Functional Units, Assembler Writing Guide):
New sections by Torbjorn, tweaked by me.
2003-11-17 Torbjorn Granlund
* mpn/powerpc32: Add power4/powerpc970 cycle counts.
Use cmpwi instead of cmpi to placate darwin.
2003-11-15 Kevin Ryde
* config.guess: Add comments on MacOS "machine" command.
* tests/devel/try.c (main): Use gmp_randinit_default explicitly on
__gmp_rands, since RANDS doesn't allow seeding.
* doc/gmp.texi (Assigning Integers): Remove notes on possible change
to disallow whitespace, this would be an incompatible change and
really can't be made.
(Toom 3-Way Multiplication): Updates for Paul's new code.
* mpn/generic/mul_n.c (toom3_interpolate, mpn_toom3_mul_n): Put
if/else braces around whole of #if code, for readability.
* tests/refmpn.c (refmpn_addlsh1_n, refmpn_sublsh1_n,
refmpn_rsh1add_n, refmpn_rsh1sub_n): Add ASSERTs for operand overlaps
etc.
* mpfr/*: Update to mpfr-2-0-2-branch 2003-11-15.
2003-11-14 Torbjorn Granlund
* mpn/alpha/aorslsh1_n.asm: Use Cray-friendly syntax for "br".
2003-11-13 Torbjorn Granlund
* mpn/alpha/aorslsh1_n.asm: New file.
2003-11-12 Kevin Ryde
* acinclude.m4 (GMP_PROG_CC_WORKS): Add case provoking AIX power2
assembler, test code by Torbjorn.
* configure.in (power*-*-*): Add a comment about -mcpu=rios2 fallback.
* tune/speed.c (main): Use gmp_randinit_default explicitly on
__gmp_rands, since RANDS doesn't allow seeding.
* mpfr/*: Update to mpfr-2-0-2-branch 2003-11-12.
* gmp-impl.h, randmt.h (__gmp_randinit_mt_noseed): Move prototype to
gmp-impl.h, for use by RANDS.
* mpn/Makeasm.am (.s, .S, .asm): Quote $< in test -f, per automake.
(.obj): Use test -f and $(CYGPATH_W) as per automake.
2003-11-11 Kevin Ryde