├── deps ├── emsdk │ ├── llvm-tags-32bit.txt │ ├── emcmdprompt.bat │ ├── emsdk_env.bat │ ├── emsdk_env.ps1 │ ├── test.bat │ ├── test.sh │ ├── docker │ │ ├── test_dockerimage.sh │ │ ├── Makefile │ │ └── entrypoint │ ├── emsdk_env.fish │ ├── .flake8 │ ├── .gitignore │ ├── emsdk │ ├── emsdk_env.sh │ ├── emsdk_env.csh │ └── legacy-binaryen-tags.txt ├── gnucobol-2.2 │ ├── config.cache │ ├── po │ │ ├── stamp-po │ │ ├── LINGUAS │ │ ├── de.gmo │ │ ├── es.gmo │ │ ├── it.gmo │ │ ├── ja.gmo │ │ ├── ja.po │ │ ├── nl.gmo │ │ ├── pt.gmo │ │ ├── en@quot.gmo │ │ ├── en@boldquot.gmo │ │ ├── quot.sed │ │ ├── boldquot.sed │ │ ├── remove-potcdate.sin │ │ ├── POTFILES.in │ │ ├── POTFILES │ │ ├── insert-header.sin │ │ └── update_linguas.sh │ ├── config │ │ └── runtime_empty.cfg │ ├── stamp-h1 │ ├── lib │ │ ├── .deps │ │ │ └── dummymac.Po │ │ ├── dummymac.c │ │ ├── ChangeLog │ │ └── Makefile.am │ ├── ChangeLog │ ├── a.out.wasm │ ├── cobc │ │ └── ChangeLog │ ├── doc │ │ ├── ChangeLog │ │ ├── stamp-vti │ │ └── version.texi │ ├── libcob │ │ └── ChangeLog │ ├── tests │ │ ├── ChangeLog │ │ ├── package.m4 │ │ └── cobol85 │ │ │ ├── RW.txt │ │ │ ├── OB.txt │ │ │ ├── SG.txt │ │ │ ├── summarynoix.txt │ │ │ ├── DBNOIX.txt │ │ │ ├── DB.txt │ │ │ ├── SM.txt │ │ │ └── summary.txt │ ├── tarstamp.h │ ├── AUTHORS │ ├── extras │ │ └── README │ ├── m4 │ │ ├── ltversion.m4 │ │ └── codeset.m4 │ ├── copy │ │ ├── Makefile.am │ │ └── sqlca.cpy │ └── libcob.h ├── gmp.js │ ├── mpn │ │ ├── add.c │ │ ├── cmp.c │ │ ├── com.c │ │ ├── dump.c │ │ ├── gcd.c │ │ ├── hgcd.c │ │ ├── mul.c │ │ ├── neg.c │ │ ├── powm.c │ │ ├── sqr.c │ │ ├── sub.c │ │ ├── zero.c │ │ ├── add_1.c │ │ ├── add_n.c │ │ ├── and_n.c │ │ ├── bdiv_q.c │ │ ├── copyd.c │ │ ├── copyi.c │ │ ├── div_q.c │ │ ├── dive_1.c │ │ ├── divis.c │ │ ├── divrem.c │ │ ├── gcd_1.c │ │ ├── gcdext.c │ │ ├── get_d.c │ │ ├── hamdist.c │ │ ├── hgcd2.c │ │ ├── invert.c │ │ ├── ior_n.c │ │ ├── lshift.c │ │ ├── mod_1.c │ │ ├── mode1o.c │ │ ├── mul_1.c │ │ ├── mul_n.c │ │ ├── pow_1.c │ │ ├── powlo.c │ │ ├── random.c │ │ ├── redc_1.c │ │ ├── redc_2.c │ │ ├── redc_n.c │ │ ├── remove.c │ │ ├── rshift.c │ │ ├── scan0.c │ │ ├── scan1.c │ │ ├── sub_1.c │ │ ├── sub_n.c │ │ ├── xor_n.c │ │ ├── addmul_1.c │ │ ├── andn_n.c │ │ ├── bdiv_q_1.c │ │ ├── bdiv_qr.c │ │ ├── binvert.c │ │ ├── diveby3.c │ │ ├── divexact.c │ │ ├── divrem_1.c │ │ ├── divrem_2.c │ │ ├── fib2_ui.c │ │ ├── gcdext_1.c │ │ ├── get_str.c │ │ ├── iorn_n.c │ │ ├── jacbase.c │ │ ├── lshiftc.c │ │ ├── mod_1_1.c │ │ ├── mod_1_2.c │ │ ├── mod_1_3.c │ │ ├── mod_1_4.c │ │ ├── mu_bdiv_q.c │ │ ├── mu_div_q.c │ │ ├── mu_div_qr.c │ │ ├── mul_fft.c │ │ ├── mullo_n.c │ │ ├── nand_n.c │ │ ├── nior_n.c │ │ ├── perfpow.c │ │ ├── perfsqr.c │ │ ├── popcount.c │ │ ├── powm_sec.c │ │ ├── pre_mod_1.c │ │ ├── random2.c │ │ ├── rootrem.c │ │ ├── set_str.c │ │ ├── sqrtrem.c │ │ ├── subcnd_n.c │ │ ├── submul_1.c │ │ ├── tdiv_qr.c │ │ ├── toom2_sqr.c │ │ ├── toom3_sqr.c │ │ ├── toom4_sqr.c │ │ ├── toom6_sqr.c │ │ ├── toom8_sqr.c │ │ ├── trialdiv.c │ │ ├── xnor_n.c │ │ ├── bdiv_dbm1c.c │ │ ├── dcpi1_div_q.c │ │ ├── gcd_lehmer.c │ │ ├── invertappr.c │ │ ├── mod_34lsub1.c │ │ ├── mu_bdiv_qr.c │ │ ├── mulmod_bnm1.c │ │ ├── redc_1_sec.c │ │ ├── sbpi1_div_q.c │ │ ├── sqrmod_bnm1.c │ │ ├── toom22_mul.c │ │ ├── toom32_mul.c │ │ ├── toom33_mul.c │ │ ├── toom42_mul.c │ │ ├── toom43_mul.c │ │ ├── toom44_mul.c │ │ ├── toom52_mul.c │ │ ├── toom53_mul.c │ │ ├── toom62_mul.c │ │ ├── toom63_mul.c │ │ ├── toom6h_mul.c │ │ ├── toom8h_mul.c │ │ ├── dcpi1_bdiv_q.c │ │ ├── dcpi1_bdiv_qr.c │ │ ├── dcpi1_div_qr.c │ │ ├── gcdext_lehmer.c │ │ ├── matrix22_mul.c │ │ ├── mu_divappr_q.c │ │ ├── mul_basecase.c │ │ ├── mullo_basecase.c │ │ ├── nussbaumer_mul.c │ │ ├── pre_divrem_1.c │ │ ├── sbpi1_bdiv_q.c │ │ ├── sbpi1_bdiv_qr.c │ │ ├── sbpi1_div_qr.c │ │ ├── sqr_basecase.c │ │ ├── toom_eval_pm1.c │ │ ├── toom_eval_pm2.c │ │ ├── dcpi1_divappr_q.c │ │ ├── gcd_subdiv_step.c │ │ ├── sbpi1_divappr_q.c │ │ ├── toom_eval_pm2exp.c │ │ ├── gcdext_subdiv_step.c │ │ ├── toom_eval_dgr3_pm1.c │ │ ├── toom_eval_dgr3_pm2.c │ │ ├── toom_eval_pm2rexp.c │ │ ├── toom_couple_handling.c │ │ ├── toom_interpolate_5pts.c │ │ ├── toom_interpolate_6pts.c │ │ ├── toom_interpolate_7pts.c │ │ ├── toom_interpolate_8pts.c │ │ ├── toom_interpolate_12pts.c │ │ ├── toom_interpolate_16pts.c │ │ ├── generic │ │ │ ├── gcd.c │ │ │ ├── gcdext_1.c │ │ │ ├── mulmod_bnm1.c │ │ │ ├── sbpi1_div_q.c │ │ │ ├── sqrmod_bnm1.c │ │ │ ├── toom32_mul.c │ │ │ ├── dcpi1_bdiv_q.c │ │ │ ├── dcpi1_bdiv_qr.c │ │ │ ├── matrix22_mul.c │ │ │ ├── sbpi1_bdiv_q.c │ │ │ ├── sbpi1_bdiv_qr.c │ │ │ ├── sbpi1_div_qr.c │ │ │ ├── toom_eval_pm1.c │ │ │ ├── toom_eval_pm2.c │ │ │ ├── sbpi1_divappr_q.c │ │ │ ├── toom_eval_pm2exp.c │ │ │ ├── toom_eval_dgr3_pm1.c │ │ │ ├── toom_eval_dgr3_pm2.c │ │ │ ├── toom_interpolate_7pts.c │ │ │ ├── add.c │ │ │ ├── neg.c │ │ │ ├── add_1.c │ │ │ ├── sub.c │ │ │ ├── sub_1.c │ │ │ ├── cmp.c │ │ │ ├── gmp-mparam.h │ │ │ ├── zero.c │ │ │ ├── copyd.c │ │ │ ├── copyi.c │ │ │ └── com.c │ │ ├── x86 │ │ │ ├── invert_limb.asm │ │ │ ├── fat │ │ │ │ ├── gcd_1.c │ │ │ │ ├── mod_1.c │ │ │ │ ├── mode1o.c │ │ │ │ └── diveby3.c │ │ │ ├── p6 │ │ │ │ ├── sse2 │ │ │ │ │ ├── submul_1.asm │ │ │ │ │ ├── mod_1_4.asm │ │ │ │ │ ├── mul_basecase.asm │ │ │ │ │ ├── sqr_basecase.asm │ │ │ │ │ ├── popcount.asm │ │ │ │ │ ├── addmul_1.asm │ │ │ │ │ └── mul_1.asm │ │ │ │ └── mmx │ │ │ │ │ ├── lshift.asm │ │ │ │ │ └── rshift.asm │ │ │ └── pentium4 │ │ │ │ └── mmx │ │ │ │ ├── lshift.asm │ │ │ │ └── rshift.asm │ │ ├── x86_64 │ │ │ ├── invert_limb.asm │ │ │ ├── fat │ │ │ │ ├── gcd_1.c │ │ │ │ ├── mod_1.c │ │ │ │ ├── mode1o.c │ │ │ │ └── diveby3.c │ │ │ ├── core2 │ │ │ │ └── popcount.asm │ │ │ ├── pentium4 │ │ │ │ └── popcount.asm │ │ │ └── darwin.m4 │ │ ├── i960 │ │ │ └── README │ │ ├── sparc32 │ │ │ ├── v9 │ │ │ │ └── README │ │ │ └── v8 │ │ │ │ └── umul.asm │ │ ├── z8000 │ │ │ └── gmp-mparam.h │ │ ├── a29k │ │ │ ├── umul.s │ │ │ └── udiv.s │ │ ├── power │ │ │ ├── sdiv.asm │ │ │ └── umul.asm │ │ ├── s390 │ │ │ └── README │ │ ├── cray │ │ │ ├── popcount.c │ │ │ └── hamdist.c │ │ ├── mips64 │ │ │ └── umul.asm │ │ ├── powerpc32 │ │ │ └── vmx │ │ │ │ └── popcount.asm │ │ └── mips32 │ │ │ └── umul.asm │ ├── gmp-mparam.h │ ├── stamp-h1 │ ├── AUTHORS │ ├── gen-fib │ ├── gen-psqr │ ├── ChangeLog │ ├── a.out.wasm │ ├── gen-bases │ ├── gen-fac_ui │ ├── gmp-impl.h │ ├── doc │ │ ├── gmp.info-1 │ │ ├── gmp.info-2 │ │ ├── tasks.html │ │ ├── projects.html │ │ ├── stamp-vti │ │ ├── version.texi │ │ └── Makefile.am │ ├── gen-trialdivtab │ ├── mpz │ │ ├── divexact.c │ │ ├── nextprime.c │ │ ├── fac_ui.h │ │ ├── add.c │ │ ├── sub.c │ │ ├── add_ui.c │ │ ├── sub_ui.c │ │ ├── fits_uint.c │ │ ├── fits_ulong.c │ │ ├── fits_ushort.c │ │ ├── mul_si.c │ │ ├── mul_ui.c │ │ ├── getlimbn.c │ │ ├── set_q.c │ │ ├── get_ui.c │ │ ├── size.c │ │ ├── fits_sint.c │ │ ├── fits_slong.c │ │ ├── fits_sshort.c │ │ ├── perfsqr.c │ │ ├── popcount.c │ │ ├── clear.c │ │ ├── perfpow.c │ │ ├── random.c │ │ ├── get_d.c │ │ ├── divis.c │ │ └── iset_d.c │ ├── tune │ │ ├── sqr_basecase.c │ │ ├── powm_mod.c │ │ ├── jacbase1.c │ │ ├── jacbase2.c │ │ ├── jacbase3.c │ │ ├── pre_divrem_1.c │ │ ├── gcdext_double.c │ │ ├── gcdext_single.c │ │ ├── gcdextod.c │ │ ├── divrem2inv.c │ │ ├── gcdextos.c │ │ ├── divrem2div.c │ │ └── powm_redc.c │ ├── emscripten.sh │ ├── libmp.sym │ ├── fib_table.h │ ├── tests │ │ ├── mpn │ │ │ ├── t-toom43.c │ │ │ ├── t-toom32.c │ │ │ ├── t-toom42.c │ │ │ ├── t-toom52.c │ │ │ ├── t-toom53.c │ │ │ ├── t-toom62.c │ │ │ ├── t-toom63.c │ │ │ ├── t-toom22.c │ │ │ ├── t-toom6h.c │ │ │ ├── t-toom33.c │ │ │ ├── t-toom44.c │ │ │ └── t-toom8h.c │ │ └── cxx │ │ │ └── t-headers.cc │ ├── mp_bases.h │ ├── config.m4 │ ├── demos │ │ └── calc │ │ │ ├── calc-config.h │ │ │ └── calc-config-h.in │ ├── mp_bpl.c │ ├── cxx │ │ ├── dummy.cc │ │ └── Makefile.am │ ├── mpf │ │ ├── fits_uint.c │ │ ├── fits_ushort.c │ │ ├── fits_ulong.c │ │ ├── fits_sint.c │ │ ├── fits_slong.c │ │ ├── fits_sshort.c │ │ ├── get_prc.c │ │ ├── get_dfl_prec.c │ │ ├── size.c │ │ ├── clear.c │ │ ├── set_dfl_prec.c │ │ └── set_prc_raw.c │ ├── version.c │ ├── README.markdown │ ├── randdef.c │ ├── randclr.c │ ├── mpbsd │ │ ├── mfree.c │ │ └── rpow.c │ ├── randiset.c │ ├── randsd.c │ ├── scanf │ │ └── Makefile.am │ └── mpq │ │ └── clear.c └── 01-call.c.patch ├── .gitignore ├── example ├── README.md └── index.html ├── .github └── workflows │ └── semgrep.yml ├── cobweb.sh ├── Dockerfile ├── Makefile └── LICENSE_MIT /deps/emsdk/llvm-tags-32bit.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/config.cache: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/add.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/add.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/cmp.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/cmp.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/com.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/com.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/dump.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/dump.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/gcd.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/gcd.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/hgcd.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/hgcd.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mul.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mul.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/neg.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/neg.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/powm.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/powm.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/sqr.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/sqr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/sub.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/sub.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/zero.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/zero.c -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/stamp-po: -------------------------------------------------------------------------------- 1 | timestamp 2 | -------------------------------------------------------------------------------- /deps/gmp.js/gmp-mparam.h: -------------------------------------------------------------------------------- 1 | mpn/generic/gmp-mparam.h -------------------------------------------------------------------------------- /deps/gmp.js/mpn/add_1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/add_1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/add_n.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/add_n.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/and_n.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/logops_n.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/bdiv_q.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/bdiv_q.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/copyd.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/copyd.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/copyi.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/copyi.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/div_q.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/div_q.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/dive_1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/dive_1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/divis.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/divis.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/divrem.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/divrem.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/gcd_1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/gcd_1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/gcdext.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/gcdext.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/get_d.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/get_d.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/hamdist.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/popham.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/hgcd2.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/hgcd2.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/invert.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/invert.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/ior_n.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/logops_n.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/lshift.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/lshift.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mod_1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mod_1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mode1o.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mode1o.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mul_1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mul_1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mul_n.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mul_n.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/pow_1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/pow_1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/powlo.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/powlo.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/random.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/random.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/redc_1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/redc_1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/redc_2.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/redc_2.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/redc_n.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/redc_n.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/remove.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/remove.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/rshift.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/rshift.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/scan0.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/scan0.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/scan1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/scan1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/sub_1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/sub_1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/sub_n.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/sub_n.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/xor_n.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/logops_n.c -------------------------------------------------------------------------------- /deps/gmp.js/stamp-h1: -------------------------------------------------------------------------------- 1 | timestamp for config.h 2 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/config/runtime_empty.cfg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /deps/emsdk/emcmdprompt.bat: -------------------------------------------------------------------------------- 1 | @cmd /k call emsdk_env.bat -------------------------------------------------------------------------------- /deps/gmp.js/mpn/addmul_1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/addmul_1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/andn_n.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/logops_n.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/bdiv_q_1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/bdiv_q_1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/bdiv_qr.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/bdiv_qr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/binvert.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/binvert.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/diveby3.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/diveby3.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/divexact.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/divexact.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/divrem_1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/divrem_1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/divrem_2.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/divrem_2.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/fib2_ui.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/fib2_ui.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/gcdext_1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/gcdext_1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/get_str.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/get_str.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/iorn_n.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/logops_n.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/jacbase.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/jacbase.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/lshiftc.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/lshiftc.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mod_1_1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mod_1_1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mod_1_2.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mod_1_2.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mod_1_3.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mod_1_3.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mod_1_4.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mod_1_4.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mu_bdiv_q.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mu_bdiv_q.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mu_div_q.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mu_div_q.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mu_div_qr.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mu_div_qr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mul_fft.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mul_fft.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mullo_n.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mullo_n.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/nand_n.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/logops_n.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/nior_n.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/logops_n.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/perfpow.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/perfpow.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/perfsqr.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/perfsqr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/popcount.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/popham.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/powm_sec.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/powm_sec.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/pre_mod_1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/pre_mod_1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/random2.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/random2.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/rootrem.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/rootrem.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/set_str.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/set_str.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/sqrtrem.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/sqrtrem.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/subcnd_n.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/subcnd_n.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/submul_1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/submul_1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/tdiv_qr.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/tdiv_qr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom2_sqr.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom2_sqr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom3_sqr.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom3_sqr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom4_sqr.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom4_sqr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom6_sqr.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom6_sqr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom8_sqr.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom8_sqr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/trialdiv.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/trialdiv.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/xnor_n.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/logops_n.c -------------------------------------------------------------------------------- /deps/gnucobol-2.2/stamp-h1: -------------------------------------------------------------------------------- 1 | timestamp for config.h 2 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/bdiv_dbm1c.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/bdiv_dbm1c.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/dcpi1_div_q.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/dcpi1_div_q.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/gcd_lehmer.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/gcd_lehmer.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/invertappr.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/invertappr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mod_34lsub1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mod_34lsub1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mu_bdiv_qr.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mu_bdiv_qr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mulmod_bnm1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mulmod_bnm1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/redc_1_sec.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/redc_1_sec.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/sbpi1_div_q.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/sbpi1_div_q.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/sqrmod_bnm1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/sqrmod_bnm1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom22_mul.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom22_mul.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom32_mul.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom32_mul.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom33_mul.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom33_mul.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom42_mul.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom42_mul.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom43_mul.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom43_mul.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom44_mul.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom44_mul.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom52_mul.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom52_mul.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom53_mul.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom53_mul.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom62_mul.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom62_mul.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom63_mul.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom63_mul.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom6h_mul.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom6h_mul.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom8h_mul.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom8h_mul.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/dcpi1_bdiv_q.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/dcpi1_bdiv_q.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/dcpi1_bdiv_qr.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/dcpi1_bdiv_qr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/dcpi1_div_qr.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/dcpi1_div_qr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/gcdext_lehmer.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/gcdext_lehmer.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/matrix22_mul.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/matrix22_mul.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mu_divappr_q.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mu_divappr_q.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mul_basecase.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mul_basecase.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mullo_basecase.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/mullo_basecase.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/nussbaumer_mul.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/nussbaumer_mul.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/pre_divrem_1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/pre_divrem_1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/sbpi1_bdiv_q.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/sbpi1_bdiv_q.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/sbpi1_bdiv_qr.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/sbpi1_bdiv_qr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/sbpi1_div_qr.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/sbpi1_div_qr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/sqr_basecase.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/sqr_basecase.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom_eval_pm1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom_eval_pm1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom_eval_pm2.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom_eval_pm2.c -------------------------------------------------------------------------------- /deps/emsdk/emsdk_env.bat: -------------------------------------------------------------------------------- 1 | @call "%~dp0emsdk" construct_env %* 2 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/dcpi1_divappr_q.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/dcpi1_divappr_q.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/gcd_subdiv_step.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/gcd_subdiv_step.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/sbpi1_divappr_q.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/sbpi1_divappr_q.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom_eval_pm2exp.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom_eval_pm2exp.c -------------------------------------------------------------------------------- /deps/gnucobol-2.2/lib/.deps/dummymac.Po: -------------------------------------------------------------------------------- 1 | dummymac.o: dummymac.c 2 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/gcdext_subdiv_step.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/gcdext_subdiv_step.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom_eval_dgr3_pm1.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom_eval_dgr3_pm1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom_eval_dgr3_pm2.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom_eval_dgr3_pm2.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom_eval_pm2rexp.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom_eval_pm2rexp.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom_couple_handling.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom_couple_handling.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom_interpolate_5pts.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom_interpolate_5pts.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom_interpolate_6pts.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom_interpolate_6pts.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom_interpolate_7pts.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom_interpolate_7pts.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom_interpolate_8pts.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom_interpolate_8pts.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom_interpolate_12pts.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom_interpolate_12pts.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/toom_interpolate_16pts.c: -------------------------------------------------------------------------------- 1 | ../mpn/generic/toom_interpolate_16pts.c -------------------------------------------------------------------------------- /deps/gmp.js/AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/AUTHORS -------------------------------------------------------------------------------- /deps/gmp.js/gen-fib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/gen-fib -------------------------------------------------------------------------------- /deps/gmp.js/gen-psqr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/gen-psqr -------------------------------------------------------------------------------- /deps/gmp.js/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/ChangeLog -------------------------------------------------------------------------------- /deps/gmp.js/a.out.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/a.out.wasm -------------------------------------------------------------------------------- /deps/gmp.js/gen-bases: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/gen-bases -------------------------------------------------------------------------------- /deps/gmp.js/gen-fac_ui: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/gen-fac_ui -------------------------------------------------------------------------------- /deps/gmp.js/gmp-impl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/gmp-impl.h -------------------------------------------------------------------------------- /deps/gnucobol-2.2/lib/dummymac.c: -------------------------------------------------------------------------------- 1 | void dummymacfix(void); 2 | void 3 | dummymacfix () 4 | { 5 | } 6 | -------------------------------------------------------------------------------- /deps/gmp.js/doc/gmp.info-1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/doc/gmp.info-1 -------------------------------------------------------------------------------- /deps/gmp.js/doc/gmp.info-2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/doc/gmp.info-2 -------------------------------------------------------------------------------- /deps/gmp.js/doc/tasks.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/doc/tasks.html -------------------------------------------------------------------------------- /deps/gmp.js/gen-trialdivtab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/gen-trialdivtab -------------------------------------------------------------------------------- /deps/gmp.js/mpz/divexact.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpz/divexact.c -------------------------------------------------------------------------------- /deps/gmp.js/mpz/nextprime.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpz/nextprime.c -------------------------------------------------------------------------------- /deps/gnucobol-2.2/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gnucobol-2.2/ChangeLog -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/LINGUAS: -------------------------------------------------------------------------------- 1 | # List of available languages. 2 | en@boldquot en@quot de es it ja nl pt 3 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/de.gmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gnucobol-2.2/po/de.gmo -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/es.gmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gnucobol-2.2/po/es.gmo -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/it.gmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gnucobol-2.2/po/it.gmo -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/ja.gmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gnucobol-2.2/po/ja.gmo -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/ja.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gnucobol-2.2/po/ja.po -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/nl.gmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gnucobol-2.2/po/nl.gmo -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/pt.gmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gnucobol-2.2/po/pt.gmo -------------------------------------------------------------------------------- /deps/gmp.js/doc/projects.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/doc/projects.html -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/gcd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/gcd.c -------------------------------------------------------------------------------- /deps/gnucobol-2.2/a.out.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gnucobol-2.2/a.out.wasm -------------------------------------------------------------------------------- /deps/gnucobol-2.2/cobc/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gnucobol-2.2/cobc/ChangeLog -------------------------------------------------------------------------------- /deps/gnucobol-2.2/doc/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gnucobol-2.2/doc/ChangeLog -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/en@quot.gmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gnucobol-2.2/po/en@quot.gmo -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/gcdext_1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/gcdext_1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86/invert_limb.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/x86/invert_limb.asm -------------------------------------------------------------------------------- /deps/gnucobol-2.2/libcob/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gnucobol-2.2/libcob/ChangeLog -------------------------------------------------------------------------------- /deps/gnucobol-2.2/tests/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gnucobol-2.2/tests/ChangeLog -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/mulmod_bnm1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/mulmod_bnm1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/sbpi1_div_q.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/sbpi1_div_q.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/sqrmod_bnm1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/sqrmod_bnm1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/toom32_mul.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/toom32_mul.c -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/en@boldquot.gmo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gnucobol-2.2/po/en@boldquot.gmo -------------------------------------------------------------------------------- /deps/gmp.js/doc/stamp-vti: -------------------------------------------------------------------------------- 1 | @set UPDATED 8 May 2011 2 | @set UPDATED-MONTH May 2011 3 | @set EDITION 5.0.2 4 | @set VERSION 5.0.2 5 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/dcpi1_bdiv_q.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/dcpi1_bdiv_q.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/dcpi1_bdiv_qr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/dcpi1_bdiv_qr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/matrix22_mul.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/matrix22_mul.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/sbpi1_bdiv_q.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/sbpi1_bdiv_q.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/sbpi1_bdiv_qr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/sbpi1_bdiv_qr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/sbpi1_div_qr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/sbpi1_div_qr.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/toom_eval_pm1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/toom_eval_pm1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/toom_eval_pm2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/toom_eval_pm2.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86_64/invert_limb.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/x86_64/invert_limb.asm -------------------------------------------------------------------------------- /deps/emsdk/emsdk_env.ps1: -------------------------------------------------------------------------------- 1 | $ScriptDirectory = Split-Path -parent $PSCommandPath 2 | & "$ScriptDirectory/emsdk.ps1" construct_env $args 3 | -------------------------------------------------------------------------------- /deps/gmp.js/doc/version.texi: -------------------------------------------------------------------------------- 1 | @set UPDATED 8 May 2011 2 | @set UPDATED-MONTH May 2011 3 | @set EDITION 5.0.2 4 | @set VERSION 5.0.2 5 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/sbpi1_divappr_q.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/sbpi1_divappr_q.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/toom_eval_pm2exp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/toom_eval_pm2exp.c -------------------------------------------------------------------------------- /deps/gmp.js/tune/sqr_basecase.c: -------------------------------------------------------------------------------- 1 | #define TUNE_PROGRAM_BUILD 1 2 | #define TUNE_PROGRAM_BUILD_SQR 1 3 | #include "mpn/sqr_basecase.c" 4 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/toom_eval_dgr3_pm1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/toom_eval_dgr3_pm1.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/toom_eval_dgr3_pm2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/toom_eval_dgr3_pm2.c -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/toom_interpolate_7pts.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudflare/cobweb/HEAD/deps/gmp.js/mpn/generic/toom_interpolate_7pts.c -------------------------------------------------------------------------------- /deps/gnucobol-2.2/doc/stamp-vti: -------------------------------------------------------------------------------- 1 | @set UPDATED 6 September 2017 2 | @set UPDATED-MONTH September 2017 3 | @set EDITION 2.2 4 | @set VERSION 2.2 5 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/doc/version.texi: -------------------------------------------------------------------------------- 1 | @set UPDATED 6 September 2017 2 | @set UPDATED-MONTH September 2017 3 | @set EDITION 2.2 4 | @set VERSION 2.2 5 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/tarstamp.h: -------------------------------------------------------------------------------- 1 | #define COB_TAR_DATE "Sep 06 2017 18:45:29 UTC" 2 | #define COB_NUM_TAR_DATE 20170906 3 | #define COB_NUM_TAR_TIME 184529 4 | -------------------------------------------------------------------------------- /deps/gmp.js/emscripten.sh: -------------------------------------------------------------------------------- 1 | echo "bitcode ==> javascript" 2 | ~/Dev/emscripten/emcc -O2 test.c .libs/libgmp.a -o complete.js -s ASM_JS=1 -g --llvm-lto 1 3 | 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | *.i 3 | deps/gnucobol-2.2/config.log 4 | deps/gnucobol-2.2/bin/.deps/ 5 | deps/gnucobol-2.2/cobc/.deps/ 6 | deps/gmp.js/config.log 7 | deps/gmp.js/.libs/ 8 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/quot.sed: -------------------------------------------------------------------------------- 1 | s/"\([^"]*\)"/“\1”/g 2 | s/`\([^`']*\)'/‘\1’/g 3 | s/ '\([^`']*\)' / ‘\1’ /g 4 | s/ '\([^`']*\)'$/ ‘\1’/g 5 | s/^'\([^`']*\)' /‘\1’ /g 6 | s/“”/""/g 7 | -------------------------------------------------------------------------------- /deps/gmp.js/libmp.sym: -------------------------------------------------------------------------------- 1 | itom 2 | xtom 3 | move 4 | madd 5 | msub 6 | mult 7 | mdiv 8 | sdiv 9 | msqrt 10 | pow 11 | rpow 12 | gcd 13 | mcmp 14 | min 15 | mout 16 | mtox 17 | mfree 18 | __gmp_set_memory_functions 19 | -------------------------------------------------------------------------------- /deps/gmp.js/fib_table.h: -------------------------------------------------------------------------------- 1 | /* This file generated by gen-fib.c - DO NOT EDIT. */ 2 | 3 | #if GMP_NUMB_BITS != 32 4 | Error, error, this data is for 32 bits 5 | #endif 6 | 7 | #define FIB_TABLE_LIMIT 47 8 | #define FIB_TABLE_LUCNUM_LIMIT 46 9 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/boldquot.sed: -------------------------------------------------------------------------------- 1 | s/"\([^"]*\)"/“\1”/g 2 | s/`\([^`']*\)'/‘\1’/g 3 | s/ '\([^`']*\)' / ‘\1’ /g 4 | s/ '\([^`']*\)'$/ ‘\1’/g 5 | s/^'\([^`']*\)' /‘\1’ /g 6 | s/“”/""/g 7 | s/“/“/g 8 | s/”/”/g 9 | s/‘/‘/g 10 | s/’/’/g 11 | -------------------------------------------------------------------------------- /deps/gmp.js/tests/mpn/t-toom43.c: -------------------------------------------------------------------------------- 1 | #define mpn_toomMN_mul mpn_toom43_mul 2 | #define mpn_toomMN_mul_itch mpn_toom43_mul_itch 3 | 4 | #define MIN_AN 25 5 | #define MIN_BN(an) (1 + 2*(((an)+3) >> 2)) 6 | #define MAX_BN(an) ((an)-3) 7 | 8 | #include "toom-shared.h" 9 | -------------------------------------------------------------------------------- /deps/gmp.js/tests/mpn/t-toom32.c: -------------------------------------------------------------------------------- 1 | #define mpn_toomMN_mul mpn_toom32_mul 2 | #define mpn_toomMN_mul_itch mpn_toom32_mul_itch 3 | 4 | #define MIN_AN 6 5 | #define MIN_BN(an) (((an) + 8) / (size_t) 3) 6 | #define MAX_BN(an) ((an) - 2) 7 | 8 | #include "toom-shared.h" 9 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/i960/README: -------------------------------------------------------------------------------- 1 | This directory contains mpn functions for Intel i960 processors. 2 | 3 | RELEVANT OPTIMIZATION ISSUES 4 | 5 | The code in this directory is not well optimized. 6 | 7 | STATUS 8 | 9 | The code in this directory has not been tested. 10 | -------------------------------------------------------------------------------- /deps/gmp.js/tests/mpn/t-toom42.c: -------------------------------------------------------------------------------- 1 | #define mpn_toomMN_mul mpn_toom42_mul 2 | #define mpn_toomMN_mul_itch mpn_toom42_mul_itch 3 | 4 | #define MIN_AN 10 5 | #define MIN_BN(an) (((an) + 7) >> 2) 6 | #define MAX_BN(an) ((2*(an)-5) / (size_t) 3) 7 | 8 | #include "toom-shared.h" 9 | -------------------------------------------------------------------------------- /deps/gmp.js/tests/mpn/t-toom52.c: -------------------------------------------------------------------------------- 1 | #define mpn_toomMN_mul mpn_toom52_mul 2 | #define mpn_toomMN_mul_itch mpn_toom52_mul_itch 3 | 4 | #define MIN_AN 32 5 | #define MIN_BN(an) (((an) + 9) / (size_t) 5) 6 | #define MAX_BN(an) (((an) - 3) >> 1) 7 | 8 | #include "toom-shared.h" 9 | -------------------------------------------------------------------------------- /deps/emsdk/test.bat: -------------------------------------------------------------------------------- 1 | :: equivilent of test.sh as windows bat file 2 | set PATH=%PATH%;%PYTHON_BIN% 3 | @CALL emsdk install latest 4 | @CALL emsdk activate latest 5 | @CALL emsdk_env.bat --build=Release 6 | @CALL python -c "import sys; print(sys.executable)" 7 | @CALL emcc.bat -v 8 | -------------------------------------------------------------------------------- /deps/gmp.js/tests/mpn/t-toom53.c: -------------------------------------------------------------------------------- 1 | #define mpn_toomMN_mul mpn_toom53_mul 2 | #define mpn_toomMN_mul_itch mpn_toom53_mul_itch 3 | 4 | #define MIN_AN 17 5 | #define MIN_BN(an) (1 + 2*(((an) + 4) / (size_t) 5)) 6 | #define MAX_BN(an) ((3*(an) - 11) >> 2) 7 | 8 | #include "toom-shared.h" 9 | -------------------------------------------------------------------------------- /deps/gmp.js/tests/mpn/t-toom62.c: -------------------------------------------------------------------------------- 1 | #define mpn_toomMN_mul mpn_toom62_mul 2 | #define mpn_toomMN_mul_itch mpn_toom62_mul_itch 3 | 4 | #define MIN_AN 31 5 | #define MIN_BN(an) (((an) + 11) / (size_t) 6) 6 | #define MAX_BN(an) ((2*(an) - 7) / (size_t) 5) 7 | 8 | #include "toom-shared.h" 9 | -------------------------------------------------------------------------------- /deps/emsdk/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "test the standard workflow (as close as possible to how a user would do it, in the shell)" 4 | 5 | set -x 6 | set -e 7 | 8 | ./emsdk install latest 9 | ./emsdk activate latest 10 | source ./emsdk_env.sh --build=Release 11 | emcc -v 12 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/sparc32/v9/README: -------------------------------------------------------------------------------- 1 | Code for SPARC processors implementing version 9 of the SPARC architecture. 2 | This code is for systems that doesn't preserve the full 64-bit contents of 3 | integer register at context switch. For other systems (such as Solaris 7 or 4 | later) use the code in ../../sparc64. 5 | -------------------------------------------------------------------------------- /deps/gmp.js/tests/mpn/t-toom63.c: -------------------------------------------------------------------------------- 1 | #define mpn_toomMN_mul mpn_toom63_mul 2 | #define mpn_toomMN_mul_itch mpn_toom63_mul_itch 3 | 4 | #define MIN_AN 49 5 | #define MIN_BN(an) (2*(((an) + 23) / (size_t) 6)) /* 2/6 */ 6 | #define MAX_BN(an) ((3*(an) - 23) / (size_t) 5) /* 3/5 */ 7 | 8 | #include "toom-shared.h" 9 | -------------------------------------------------------------------------------- /deps/gmp.js/tests/mpn/t-toom22.c: -------------------------------------------------------------------------------- 1 | #define mpn_toomMN_mul mpn_toom22_mul 2 | #define mpn_toomMN_mul_itch mpn_toom22_mul_itch 3 | #define MIN_AN 2 4 | 5 | #define MIN_BN(an) \ 6 | ((an) >= 2*MUL_TOOM22_THRESHOLD \ 7 | ? (an) + 2 - MUL_TOOM22_THRESHOLD \ 8 | : ((an)+1)/2 + 1) 9 | 10 | #include "toom-shared.h" 11 | -------------------------------------------------------------------------------- /deps/gmp.js/tests/mpn/t-toom6h.c: -------------------------------------------------------------------------------- 1 | #define mpn_toomMN_mul mpn_toom6h_mul 2 | #define mpn_toomMN_mul_itch mpn_toom6h_mul_itch 3 | 4 | /* Smaller sizes not supported; may lead to recursive calls to 5 | toom22_mul, toom33_mul, or toom44_mul with invalid input size. */ 6 | #define MIN_AN MUL_TOOM6H_THRESHOLD 7 | #define MIN_BN(an) (MAX ((an*3)>>3, 42) ) 8 | 9 | #include "toom-shared.h" 10 | -------------------------------------------------------------------------------- /deps/emsdk/docker/test_dockerimage.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -ex 3 | 4 | which asm2wasm 5 | which llvm-ar 6 | which emsdk 7 | node --version 8 | npm --version 9 | python3 --version 10 | pip3 --version 11 | python --version 12 | pip --version 13 | em++ --version 14 | emcc --version 15 | java -version 16 | cmake --version 17 | 18 | # cleanup after test 19 | find ${EMSDK} -name "*.pyc" -exec rm {} \; 20 | -------------------------------------------------------------------------------- /deps/gmp.js/tests/mpn/t-toom33.c: -------------------------------------------------------------------------------- 1 | #define mpn_toomMN_mul mpn_toom33_mul 2 | #define mpn_toomMN_mul_itch mpn_toom33_mul_itch 3 | 4 | /* Smaller sizes not supported; may lead to recursive calls to 5 | toom22_mul with invalid input size. */ 6 | #define MIN_AN MUL_TOOM33_THRESHOLD 7 | #define MIN_BN(an) (1 + 2*(((an)+2)/(size_t) 3)) 8 | 9 | #define COUNT 1000 10 | 11 | #include "toom-shared.h" 12 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/tests/package.m4: -------------------------------------------------------------------------------- 1 | # Signature of the current package. 2 | m4_define([AT_PACKAGE_NAME], [GnuCOBOL]) 3 | m4_define([AT_PACKAGE_TARNAME], [gnucobol]) 4 | m4_define([AT_PACKAGE_VERSION], [2.2]) 5 | m4_define([AT_PACKAGE_STRING], [GnuCOBOL 2.2]) 6 | m4_define([AT_PACKAGE_BUGREPORT], [bug-gnucobol@gnu.org]) 7 | m4_define([AT_PACKAGE_URL], [https://www.gnu.org/software/gnucobol/]) 8 | -------------------------------------------------------------------------------- /deps/01-call.c.patch: -------------------------------------------------------------------------------- 1 | --- libcob/call.c 2017-09-06 19:37:28.000000000 +0100 2 | +++ gnucobol-2.2/libcob/call.c 2020-04-12 15:41:55.712659699 +0100 3 | @@ -1455,7 +1455,8 @@ 4 | lt_dlinit (); 5 | 6 | #ifndef COB_BORKED_DLOPEN 7 | - mainhandle = lt_dlopen (NULL); 8 | + /* mainhandle = lt_dlopen (NULL); */ 9 | + mainhandle = NULL; 10 | #endif 11 | 12 | if (cobsetptr->cob_preload_str != NULL) { 13 | -------------------------------------------------------------------------------- /deps/gmp.js/tests/mpn/t-toom44.c: -------------------------------------------------------------------------------- 1 | #define mpn_toomMN_mul mpn_toom44_mul 2 | #define mpn_toomMN_mul_itch mpn_toom44_mul_itch 3 | 4 | /* Smaller sizes not supported; may lead to recursive calls to 5 | toom22_mul or toom33_mul with invalid input size. */ 6 | #define MIN_AN MUL_TOOM44_THRESHOLD 7 | #define MIN_BN(an) (1 + 3*(((an)+3)>>2)) 8 | 9 | #define COUNT 1000 10 | 11 | #include "toom-shared.h" 12 | -------------------------------------------------------------------------------- /deps/gmp.js/mp_bases.h: -------------------------------------------------------------------------------- 1 | /* This file generated by gen-bases.c - DO NOT EDIT. */ 2 | 3 | #if GMP_NUMB_BITS != 32 4 | Error, error, this data is for 32 bits 5 | #endif 6 | 7 | /* mp_bases[10] data, as literal values */ 8 | #define MP_BASES_CHARS_PER_LIMB_10 9 9 | #define MP_BASES_BIG_BASE_10 CNST_LIMB(0x3b9aca00) 10 | #define MP_BASES_BIG_BASE_INVERTED_10 CNST_LIMB(0x12e0be82) 11 | #define MP_BASES_NORMALIZATION_STEPS_10 2 12 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | # Example 2 | 3 | ## Usage 4 | 5 | In the parent directory, run the following commands. 6 | 7 | Compile: 8 | ```sh 9 | EM_OUT=example/out.js ./cobweb.sh example/hello.cob 10 | ``` 11 | 12 | In the `example` directory, serve the content statically. The web server should 13 | support WebAssembly. For instance `http-server`: 14 | ```sh 15 | http-server . 16 | ``` 17 | 18 | and go to [127.0.0.1:8080](http://127.0.0.1:8080). 19 | -------------------------------------------------------------------------------- /deps/emsdk/emsdk_env.fish: -------------------------------------------------------------------------------- 1 | #In your Fish configuration, add this line: 2 | #alias emsdk_setup ". /path/to/emsdk/emsdk_env.fish" 3 | #Now, when you want to use the SDK, run this alias first to set up 4 | #your environment. 5 | 6 | set -l script (status -f) 7 | set -l dir (dirname $script) 8 | 9 | pushd $dir > /dev/null 10 | 11 | ./emsdk construct_env 12 | . ./emsdk_set_env.sh 13 | 14 | set -e -l script 15 | set -e -l dir 16 | 17 | popd > /dev/null 18 | -------------------------------------------------------------------------------- /deps/emsdk/.flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | ignore = 3 | E111, # Indentation is not a multiple of four 4 | E114, # Indentation is not a multiple of four (comment) 5 | E501, # Line too long 6 | E121, # Continuation line under-indented for hanging indent 7 | E722 # bare excepts 8 | exclude = 9 | ./gnu 10 | ./upstream 11 | ./fastcomp 12 | ./fastcomp-clang 13 | ./releases 14 | ./clang 15 | ./emscripten 16 | ./binaryen 17 | ./git 18 | ./node 19 | ./python 20 | ./temp 21 | ./zips 22 | ./crunch 23 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/remove-potcdate.sin: -------------------------------------------------------------------------------- 1 | # Sed script that remove the POT-Creation-Date line in the header entry 2 | # from a POT file. 3 | # 4 | # The distinction between the first and the following occurrences of the 5 | # pattern is achieved by looking at the hold space. 6 | /^"POT-Creation-Date: .*"$/{ 7 | x 8 | # Test if the hold space is empty. 9 | s/P/P/ 10 | ta 11 | # Yes it was empty. First occurrence. Remove the line. 12 | g 13 | d 14 | bb 15 | :a 16 | # The hold space was nonempty. Following occurrences. Do nothing. 17 | x 18 | :b 19 | } 20 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/AUTHORS: -------------------------------------------------------------------------------- 1 | * Keisuke Nishida wrote 2 | cobc/*, libcob/*, libcob.h, libcob.conf, cob-config.in, 3 | and po/ja.po. 4 | 5 | * lib/getopt1.c, lib/getopt.h, lib/getopt1.c were extracted 6 | from the GNU C Library 2.3.2. Distributed under GNU LGPL. 7 | 8 | * lib/gettext.h was extracted from the GNU gettext 0.11.2. 9 | Distributed under GNU LGPL. 10 | 11 | * libcob/byteswap.h (included in libcob/common.h later on) 12 | was extracted from GLIB 2.2.2 and modified by Keisuke Nishida 13 | and Roger While. Distributed under GNU LGPL. 14 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/POTFILES.in: -------------------------------------------------------------------------------- 1 | # List of source files containing translatable strings. 2 | 3 | # cobc 4 | cobc/cobc.c 5 | cobc/codegen.c 6 | cobc/codeoptim.c 7 | cobc/config.c 8 | cobc/error.c 9 | cobc/field.c 10 | cobc/flag.def 11 | cobc/parser.c 12 | cobc/pplex.c 13 | cobc/ppparse.c 14 | cobc/reserved.c 15 | cobc/scanner.c 16 | cobc/tree.c 17 | cobc/typeck.c 18 | cobc/warning.def 19 | 20 | # libcob 21 | libcob/call.c 22 | libcob/cobgetopt.c 23 | libcob/common.c 24 | libcob/fileio.c 25 | libcob/move.c 26 | libcob/screenio.c 27 | libcob/termio.c 28 | 29 | # bin 30 | bin/cobcrun.c 31 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/extras/README: -------------------------------------------------------------------------------- 1 | Entries MUST be L/GPL. That's Lesser General Public License and/or 2 | General Public Licence. 3 | 4 | Authors MUST be willing to hand copyright over to the FSF. 5 | That's the Free Software Foundation, Inc.. 6 | 7 | COBOL source modules MUST compile warning/error free with both 8 | 1) -std=default -W -fixed 9 | 2) -std=default -W -free 10 | 11 | Ideally they SHOULD compile error-free with any of 12 | the non-strict -std options, too. 13 | 14 | Further these COBOL modules MUST execute correctly however 15 | they have been compiled (-std=default / non-strict options). 16 | -------------------------------------------------------------------------------- /deps/emsdk/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | __pycache__ 3 | 4 | # Support for --embedded configs 5 | /.emscripten 6 | /.emscripten_cache 7 | /.emscripten_cache__last_clear 8 | /.emscripten_sanity 9 | 10 | # Auto-generated by `active` 11 | /emsdk_set_env.bat 12 | /emsdk_set_env.sh 13 | 14 | # Tags files that get generated at runtime 15 | /emscripten-releases-tot.txt 16 | 17 | # File that get download/extracted by emsdk itself 18 | /gnu 19 | /upstream 20 | /fastcomp 21 | /llvm 22 | /releases 23 | /clang 24 | /emscripten 25 | /git 26 | /node 27 | /python 28 | /temp 29 | /zips 30 | /crunch 31 | /java 32 | /mingw 33 | /spidermonkey 34 | /binaryen 35 | -------------------------------------------------------------------------------- /deps/emsdk/emsdk: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright 2019 The Emscripten Authors. All rights reserved. 3 | # Emscripten is available under two separate licenses, the MIT license and the 4 | # University of Illinois/NCSA Open Source License. Both these licenses can be 5 | # found in the LICENSE file. 6 | 7 | # Wrapper script that runs emsdk.py 8 | 9 | base_dir=$(dirname "$0") 10 | 11 | # Look for python3 first. This is especially important on macOS (See: 12 | # https://github.com/emscripten-core/emsdk/pull/273) 13 | python=$(which python3 2> /dev/null) 14 | if [ $? != 0 ]; then 15 | python=python 16 | fi 17 | 18 | exec "$python" "$0.py" "$@" 19 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/tests/cobol85/RW.txt: -------------------------------------------------------------------------------- 1 | Filename total pass fail deleted inspect 2 | -------- ----- ---- ---- ------- ------- 3 | RW101A.CBL 8 8 0 0 0 OK 4 | RW102A.CBL 4 4 0 0 0 OK 5 | RW103A.CBL 14 14 0 0 0 OK 6 | RW104A.CBL 14 14 0 0 0 OK 7 | RW301M.CBL 1 1 0 0 0 OK 8 | RW302M.CBL 1 1 0 0 0 OK 9 | -------- ----- ---- ---- ------- ------- 10 | Total 42 42 0 0 0 11 | 12 | Number of programs: 6 13 | Successfully executed: 6 14 | Compile error: 0 15 | Execute error: 0 16 | -------------------------------------------------------------------------------- /deps/emsdk/docker/Makefile: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env make 2 | 3 | # Emscripten version to build: Should match the version that has been already released. 4 | # i.e.: 1.38.45, 1.38.45-upstream 5 | version = 6 | alias = 7 | 8 | .TEST: 9 | ifndef version 10 | $(error argument 'version' is not set. Please call `make version=SOME_VERSION ...`) 11 | endif 12 | 13 | build: .TEST 14 | docker build --build-arg=EMSCRIPTEN_VERSION=${version} --tag emscripten/emsdk:${version} . 15 | 16 | push: .TEST 17 | docker push emscripten/emsdk:${version} 18 | ifdef alias 19 | docker tag emscripten/emsdk:${version} emscripten/emsdk:${alias} 20 | docker push emscripten/emsdk:${alias} 21 | endif 22 | -------------------------------------------------------------------------------- /deps/gmp.js/tests/mpn/t-toom8h.c: -------------------------------------------------------------------------------- 1 | #define mpn_toomMN_mul mpn_toom8h_mul 2 | #define mpn_toomMN_mul_itch mpn_toom8h_mul_itch 3 | 4 | /* Smaller sizes not supported; may lead to recursive calls to 5 | toom{22,33,44,6h}_mul with invalid input size. */ 6 | #define MIN_AN MUL_TOOM8H_THRESHOLD 7 | 8 | #if GMP_NUMB_BITS <= 10*3 9 | #define MIN_BN(an) (MAX ((an*6)/10, 86) ) 10 | #else 11 | #if GMP_NUMB_BITS <= 11*3 12 | #define MIN_BN(an) (MAX ((an*5)/11, 86) ) 13 | #else 14 | #if GMP_NUMB_BITS <= 12*3 15 | #define MIN_BN(an) (MAX ((an*4)/12, 86) ) 16 | #else 17 | #define MIN_BN(an) (MAX ((an*4)/13, 86) ) 18 | #endif 19 | #endif 20 | #endif 21 | 22 | #include "toom-shared.h" 23 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/POTFILES: -------------------------------------------------------------------------------- 1 | ../cobc/cobc.c \ 2 | ../cobc/codegen.c \ 3 | ../cobc/codeoptim.c \ 4 | ../cobc/config.c \ 5 | ../cobc/error.c \ 6 | ../cobc/field.c \ 7 | ../cobc/flag.def \ 8 | ../cobc/parser.c \ 9 | ../cobc/pplex.c \ 10 | ../cobc/ppparse.c \ 11 | ../cobc/reserved.c \ 12 | ../cobc/scanner.c \ 13 | ../cobc/tree.c \ 14 | ../cobc/typeck.c \ 15 | ../cobc/warning.def \ 16 | ../libcob/call.c \ 17 | ../libcob/cobgetopt.c \ 18 | ../libcob/common.c \ 19 | ../libcob/fileio.c \ 20 | ../libcob/move.c \ 21 | ../libcob/screenio.c \ 22 | ../libcob/termio.c \ 23 | ../bin/cobcrun.c 24 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/tests/cobol85/OB.txt: -------------------------------------------------------------------------------- 1 | Filename total pass fail deleted inspect 2 | -------- ----- ---- ---- ------- ------- 3 | OBIC1A.CBL 1 1 0 0 0 OK 4 | OBNC1M.CBL 6 6 0 0 0 OK 5 | OBNC2M.CBL 16 16 0 0 0 OK 6 | OBSQ1A.CBL 6 6 0 0 0 OK 7 | OBSQ3A.CBL 1 1 0 0 0 OK 8 | OBSQ4A.SUB 4 4 0 0 0 OK 9 | OBSQ5A.SUB 5 5 0 0 0 OK 10 | -------- ----- ---- ---- ------- ------- 11 | Total 39 39 0 0 0 12 | 13 | Number of programs: 7 14 | Successfully executed: 7 15 | Compile error: 0 16 | Execute error: 0 17 | -------------------------------------------------------------------------------- /.github/workflows/semgrep.yml: -------------------------------------------------------------------------------- 1 | on: 2 | pull_request: {} 3 | workflow_dispatch: {} 4 | push: 5 | branches: 6 | - main 7 | - master 8 | schedule: 9 | - cron: '0 0 * * *' 10 | name: Semgrep config 11 | jobs: 12 | semgrep: 13 | name: semgrep/ci 14 | runs-on: ubuntu-latest 15 | env: 16 | SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} 17 | SEMGREP_URL: https://cloudflare.semgrep.dev 18 | SEMGREP_APP_URL: https://cloudflare.semgrep.dev 19 | SEMGREP_VERSION_CHECK_URL: https://cloudflare.semgrep.dev/api/check-version 20 | container: 21 | image: semgrep/semgrep 22 | steps: 23 | - uses: actions/checkout@v4 24 | - run: semgrep ci 25 | -------------------------------------------------------------------------------- /deps/emsdk/emsdk_env.sh: -------------------------------------------------------------------------------- 1 | # This script is sourced by the user and uses 2 | # their shell. Try not to use bashisms. 3 | 4 | # Do not execute this script without sourcing, 5 | # because it won't have any effect then. 6 | # That is, always run this script with 7 | # 8 | # . ./emsdk_env.sh 9 | # or 10 | # source ./emsdk_env.sh 11 | # 12 | # instead of just plainly running with 13 | # 14 | # ./emsdk_env.sh 15 | # 16 | # which won't have any effect. 17 | SRC="$BASH_SOURCE" 18 | if [ "$SRC" = "" ]; then 19 | SRC="$0" 20 | fi 21 | CURDIR="$(pwd)" 22 | cd "$(dirname "$SRC")" 23 | unset SRC 24 | 25 | tmpfile=`mktemp` || exit 1 26 | ./emsdk construct_env $tmpfile 27 | . $tmpfile 28 | rm -f $tmpfile 29 | 30 | cd "$CURDIR" 31 | -------------------------------------------------------------------------------- /deps/gmp.js/config.m4: -------------------------------------------------------------------------------- 1 | dnl config.m4. Generated automatically by configure. 2 | changequote(<,>) 3 | ifdef(<__CONFIG_M4_INCLUDED__>,,< 4 | define(,<`../.'>) 5 | define(,0) 6 | define(,<`no'>) 7 | define(,<4>) 8 | define(,32) 9 | define(,0) 10 | define(,eval(GMP_LIMB_BITS-GMP_NAIL_BITS)) 11 | >) 12 | changequote(`,') 13 | ifdef(`__CONFIG_M4_INCLUDED__',,` 14 | include(CONFIG_TOP_SRCDIR`/mpn/asm-defs.m4') 15 | define_not_for_expansion(`HAVE_HOST_CPU_none') 16 | define_not_for_expansion(`HAVE_LIMB_LITTLE_ENDIAN') 17 | define_not_for_expansion(`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN') 18 | ') 19 | define(`__CONFIG_M4_INCLUDED__') 20 | -------------------------------------------------------------------------------- /cobweb.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | source ./deps/emsdk/emsdk_env.sh > /dev/null 6 | 7 | cobc -C -Wall -o /tmp/out.c -g -x -static -free $1 8 | 9 | EM_ARGS=${EM_ARGS:-""} 10 | EM_OUT=${EM_OUT:-"out.js"} 11 | 12 | emcc ./cobweb.c \ 13 | -I./dist/include -L./dist/lib \ 14 | -lgmp -lcob \ 15 | -fno-rtti -fno-exceptions \ 16 | -flto \ 17 | --ignore-dynamic-linking \ 18 | -s EXPORTED_FUNCTIONS="['_get_string', '_entry']" \ 19 | -s EXTRA_EXPORTED_RUNTIME_METHODS="['ccall', 'cwrap']" \ 20 | -s EXIT_RUNTIME=1 \ 21 | -s EXPORT_ES6=1 \ 22 | -s INVOKE_RUN=0 \ 23 | -s MODULARIZE=1 \ 24 | -s DEAD_FUNCTIONS="['_main']" \ 25 | -s STRICT=1 \ 26 | $EM_ARGS \ 27 | -o $EM_OUT 28 | -------------------------------------------------------------------------------- /example/index.html: -------------------------------------------------------------------------------- 1 | 2 | Emscripten + npm example 3 | Open the console to see the output from the wasm module. 4 | 34 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/insert-header.sin: -------------------------------------------------------------------------------- 1 | # Sed script that inserts the file called HEADER before the header entry. 2 | # 3 | # At each occurrence of a line starting with "msgid ", we execute the following 4 | # commands. At the first occurrence, insert the file. At the following 5 | # occurrences, do nothing. The distinction between the first and the following 6 | # occurrences is achieved by looking at the hold space. 7 | /^msgid /{ 8 | x 9 | # Test if the hold space is empty. 10 | s/m/m/ 11 | ta 12 | # Yes it was empty. First occurrence. Read the file. 13 | r HEADER 14 | # Output the file's contents by reading the next line. But don't lose the 15 | # current line while doing this. 16 | g 17 | N 18 | bb 19 | :a 20 | # The hold space was nonempty. Following occurrences. Do nothing. 21 | x 22 | :b 23 | } 24 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/m4/ltversion.m4: -------------------------------------------------------------------------------- 1 | # ltversion.m4 -- version numbers -*- Autoconf -*- 2 | # 3 | # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. 4 | # Written by Scott James Remnant, 2004 5 | # 6 | # This file is free software; the Free Software Foundation gives 7 | # unlimited permission to copy and/or distribute it, with or without 8 | # modifications, as long as this notice is preserved. 9 | 10 | # @configure_input@ 11 | 12 | # serial 4179 ltversion.m4 13 | # This file is part of GNU Libtool 14 | 15 | m4_define([LT_PACKAGE_VERSION], [2.4.6]) 16 | m4_define([LT_PACKAGE_REVISION], [2.4.6]) 17 | 18 | AC_DEFUN([LTVERSION_VERSION], 19 | [macro_version='2.4.6' 20 | macro_revision='2.4.6' 21 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 22 | _LT_DECL(, macro_revision, 0) 23 | ]) 24 | -------------------------------------------------------------------------------- /deps/emsdk/emsdk_env.csh: -------------------------------------------------------------------------------- 1 | # This script is sourced by the user and uses 2 | # their shell. Try not to use tcshisms. 3 | 4 | # Do not execute this script without sourcing, 5 | # because it won't have any effect then. 6 | # That is, always run this script with 7 | # 8 | # . ./emsdk_env.csh 9 | # or 10 | # source ./emsdk_env.csh 11 | # 12 | # instead of just plainly running with 13 | # 14 | # ./emsdk_env.csh 15 | # 16 | # which won't have any effect. 17 | set SRC=($_) 18 | if ("$SRC" == "") then 19 | set SRC="$0" 20 | else 21 | set SRC="$SRC[2]" 22 | endif 23 | set CURDIR=`pwd` 24 | cd `dirname "$SRC"` 25 | unset SRC 26 | 27 | setenv EMSDK_CSH 1 28 | 29 | set tmpfile=`mktemp` || exit 1 30 | ./emsdk construct_env $tmpfile 31 | source $tmpfile 32 | rm -f $tmpfile 33 | 34 | unsetenv EMSDK_CSH 35 | 36 | cd "$CURDIR" 37 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:18.04 2 | 3 | SHELL ["/bin/bash", "-c"] 4 | 5 | RUN apt-get update 6 | RUN apt-get -y install git gcc libgmp-dev make python3 python3-distutils autoconf texinfo 7 | 8 | WORKDIR /src 9 | RUN git clone https://github.com/cloudflare/cobweb.git . 10 | 11 | # install cobc for headers 12 | WORKDIR deps/gnucobol-2.2/ 13 | RUN ./configure --without-db --prefix=/usr/ 14 | RUN make 15 | RUN make install 16 | RUN make clean 17 | 18 | WORKDIR /src/deps/emsdk 19 | 20 | # enable emscripten 21 | RUN ./emsdk install latest 22 | RUN ./emsdk activate latest 23 | 24 | # source emsdk 25 | ENV PATH /src/deps/emsdk:/src/deps/emsdk/node/12.9.1_64bit/bin:/src/deps/emsdk/upstream/emscripten:$PATH 26 | ENV EMSDK /src/deps/emsdk 27 | ENV EM_CONFIG /root/.emscripten 28 | 29 | # build cobweb 30 | WORKDIR /src 31 | RUN make all 32 | 33 | ENTRYPOINT ["./cobweb.sh"] 34 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/fac_ui.h: -------------------------------------------------------------------------------- 1 | /* This file is automatically generated by gen-fac_ui.c */ 2 | 3 | #if GMP_NUMB_BITS != 32 4 | Error , error this data is for 32 GMP_NUMB_BITS only 5 | #endif 6 | #if GMP_LIMB_BITS != 32 7 | Error , error this data is for 32 GMP_LIMB_BITS only 8 | #endif 9 | /* This table is 0!,1!,2!,3!,...,n! where n! has <= GMP_NUMB_BITS bits */ 10 | #define ONE_LIMB_FACTORIAL_TABLE CNST_LIMB(0x1),CNST_LIMB(0x1),CNST_LIMB(0x2),CNST_LIMB(0x6),CNST_LIMB(0x18),CNST_LIMB(0x78),CNST_LIMB(0x2d0),CNST_LIMB(0x13b0),CNST_LIMB(0x9d80),CNST_LIMB(0x58980),CNST_LIMB(0x375f00),CNST_LIMB(0x2611500),CNST_LIMB(0x1c8cfc00) 11 | 12 | /* is 2^(GMP_LIMB_BITS+1)/exp(1) */ 13 | #define FAC2OVERE CNST_LIMB(0xbc5c254b) 14 | 15 | /* FACMULn is largest odd x such that x*(x+2)*...*(x+2(n-1))<=2^GMP_NUMB_BITS-1 */ 16 | 17 | #define FACMUL2 CNST_LIMB(0xffff) 18 | #define FACMUL3 CNST_LIMB(0x657) 19 | #define FACMUL4 CNST_LIMB(0xfd) 20 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86/fat/gcd_1.c: -------------------------------------------------------------------------------- 1 | /* Fat binary fallback mpn_gcd_1. 2 | 3 | Copyright 2003 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #include "mpn/generic/gcd_1.c" 22 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/add.c: -------------------------------------------------------------------------------- 1 | /* mpz_add -- add integers. 2 | 3 | Copyright 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #define OPERATION_add 22 | #include "aors.h" 23 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86/fat/mod_1.c: -------------------------------------------------------------------------------- 1 | /* Fat binary fallback mpn_mod_1. 2 | 3 | Copyright 2003, 2009 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #include "mpn/generic/mod_1.c" 22 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86_64/fat/gcd_1.c: -------------------------------------------------------------------------------- 1 | /* Fat binary fallback mpn_gcd_1. 2 | 3 | Copyright 2003 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #include "mpn/generic/gcd_1.c" 22 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/sub.c: -------------------------------------------------------------------------------- 1 | /* mpz_sub -- subtract integers. 2 | 3 | Copyright 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #define OPERATION_sub 22 | #include "aors.h" 23 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86_64/fat/mod_1.c: -------------------------------------------------------------------------------- 1 | /* Fat binary fallback mpn_mod_1. 2 | 3 | Copyright 2003, 2009 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #include "mpn/generic/mod_1.c" 22 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86/fat/mode1o.c: -------------------------------------------------------------------------------- 1 | /* Fat binary fallback mpn_modexact_1c_odd. 2 | 3 | Copyright 2003 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #include "mpn/generic/mode1o.c" 22 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86_64/fat/mode1o.c: -------------------------------------------------------------------------------- 1 | /* Fat binary fallback mpn_modexact_1c_odd. 2 | 3 | Copyright 2003 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #include "mpn/generic/mode1o.c" 22 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86/fat/diveby3.c: -------------------------------------------------------------------------------- 1 | /* Fat binary fallback mpn_divexact_by3c. 2 | 3 | Copyright 2003, 2009 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #include "mpn/generic/diveby3.c" 22 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86_64/fat/diveby3.c: -------------------------------------------------------------------------------- 1 | /* Fat binary fallback mpn_divexact_by3c. 2 | 3 | Copyright 2003, 2009 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #include "mpn/generic/diveby3.c" 22 | -------------------------------------------------------------------------------- /deps/gmp.js/demos/calc/calc-config.h: -------------------------------------------------------------------------------- 1 | /* Templates for calc program configuration. -*- mode:c -*- 2 | 3 | Copyright 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | This program is free software; you can redistribute it and/or modify it under 8 | the terms of the GNU General Public License as published by the Free Software 9 | Foundation; either version 3 of the License, or (at your option) any later 10 | version. 11 | 12 | This program is distributed in the hope that it will be useful, but WITHOUT ANY 13 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 14 | PARTICULAR PURPOSE. See the GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License along with 17 | this program. If not, see http://www.gnu.org/licenses/. */ 18 | 19 | 20 | /* Define if GNU readline should be used. */ 21 | #define WITH_READLINE 0 22 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/m4/codeset.m4: -------------------------------------------------------------------------------- 1 | # codeset.m4 serial 5 (gettext-0.18.2) 2 | dnl Copyright (C) 2000-2002, 2006, 2008-2014 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl From Bruno Haible. 8 | 9 | AC_DEFUN([AM_LANGINFO_CODESET], 10 | [ 11 | AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset], 12 | [AC_LINK_IFELSE( 13 | [AC_LANG_PROGRAM( 14 | [[#include ]], 15 | [[char* cs = nl_langinfo(CODESET); return !cs;]])], 16 | [am_cv_langinfo_codeset=yes], 17 | [am_cv_langinfo_codeset=no]) 18 | ]) 19 | if test $am_cv_langinfo_codeset = yes; then 20 | AC_DEFINE([HAVE_LANGINFO_CODESET], [1], 21 | [Define if you have and nl_langinfo(CODESET).]) 22 | fi 23 | ]) 24 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/add.c: -------------------------------------------------------------------------------- 1 | /* mpn_add - add mpn to mpn. 2 | 3 | Copyright 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #define __GMP_FORCE_mpn_add 1 21 | 22 | #include "gmp.h" 23 | #include "gmp-impl.h" 24 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/neg.c: -------------------------------------------------------------------------------- 1 | /* mpn_neg - negate an mpn. 2 | 3 | Copyright 2001, 2009 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #define __GMP_FORCE_mpn_neg 1 21 | 22 | #include "gmp.h" 23 | #include "gmp-impl.h" 24 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/add_ui.c: -------------------------------------------------------------------------------- 1 | /* mpz_add_ui -- Add an mpz_t and an unsigned one-word integer. 2 | 3 | Copyright 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #define OPERATION_add_ui 22 | #include "aors_ui.h" 23 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/add_1.c: -------------------------------------------------------------------------------- 1 | /* mpn_add_1 - add limb to mpn. 2 | 3 | Copyright 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #define __GMP_FORCE_mpn_add_1 1 21 | 22 | #include "gmp.h" 23 | #include "gmp-impl.h" 24 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/sub.c: -------------------------------------------------------------------------------- 1 | /* mpn_sub - subtract mpn from mpn. 2 | 3 | Copyright 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #define __GMP_FORCE_mpn_sub 1 21 | 22 | #include "gmp.h" 23 | #include "gmp-impl.h" 24 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/sub_ui.c: -------------------------------------------------------------------------------- 1 | /* mpz_sub_ui -- Subtract an mpz_t and an unsigned one-word integer. 2 | 3 | Copyright 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #define OPERATION_sub_ui 22 | #include "aors_ui.h" 23 | -------------------------------------------------------------------------------- /deps/gmp.js/demos/calc/calc-config-h.in: -------------------------------------------------------------------------------- 1 | /* Templates for calc program configuration. -*- mode:c -*- 2 | 3 | Copyright 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | This program is free software; you can redistribute it and/or modify it under 8 | the terms of the GNU General Public License as published by the Free Software 9 | Foundation; either version 3 of the License, or (at your option) any later 10 | version. 11 | 12 | This program is distributed in the hope that it will be useful, but WITHOUT ANY 13 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 14 | PARTICULAR PURPOSE. See the GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License along with 17 | this program. If not, see http://www.gnu.org/licenses/. */ 18 | 19 | 20 | /* Define if GNU readline should be used. */ 21 | #define WITH_READLINE @WITH_READLINE_01@ 22 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/sub_1.c: -------------------------------------------------------------------------------- 1 | /* mpn_sub_1 - subtract limb from mpn. 2 | 3 | Copyright 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #define __GMP_FORCE_mpn_sub_1 1 21 | 22 | #include "gmp.h" 23 | #include "gmp-impl.h" 24 | -------------------------------------------------------------------------------- /deps/gmp.js/tests/cxx/t-headers.cc: -------------------------------------------------------------------------------- 1 | /* Test that gmpxx.h compiles correctly. 2 | 3 | Copyright 2001, 2002 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmpxx.h" 21 | 22 | int 23 | main (void) 24 | { 25 | return 0; 26 | } 27 | -------------------------------------------------------------------------------- /deps/gmp.js/mp_bpl.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 1996 Free Software Foundation, Inc. 3 | 4 | This file is part of the GNU MP Library. 5 | 6 | The GNU MP Library is free software; you can redistribute it and/or modify 7 | it under the terms of the GNU Lesser General Public License as published by 8 | the Free Software Foundation; either version 3 of the License, or (at your 9 | option) any later version. 10 | 11 | The GNU MP Library is distributed in the hope that it will be useful, but 12 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 14 | License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public License 17 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 18 | 19 | #include "gmp.h" 20 | #include "gmp-impl.h" 21 | 22 | const int mp_bits_per_limb = GMP_LIMB_BITS; 23 | const int __gmp_0 = 0; 24 | int __gmp_junk; 25 | -------------------------------------------------------------------------------- /deps/gmp.js/cxx/dummy.cc: -------------------------------------------------------------------------------- 1 | /* Dummy file to make automake treat libgmpxx.la as C++. 2 | 3 | Copyright 2002 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | /* some compilers reputedly dislike completely empty files */ 22 | typedef int foo; 23 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/z8000/gmp-mparam.h: -------------------------------------------------------------------------------- 1 | /* gmp-mparam.h -- Compiler/machine parameter header file. 2 | 3 | Copyright 1991, 1993, 1994, 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #define GMP_LIMB_BITS 16 21 | #define BYTES_PER_MP_LIMB 2 22 | -------------------------------------------------------------------------------- /deps/emsdk/docker/entrypoint: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # In case when mapped user id by `docker run -u` is not created inside docker image 4 | # The `$HOME` variable points to `/` - which prevents any tool to write to, as it requires root access 5 | # In such case we set `$HOME` to `/tmp` as it should r/w for everyone 6 | 7 | if [ "$HOME" = "/" ] ; then 8 | export HOME=/tmp 9 | fi 10 | 11 | # In case of running as root, use `umask` to reduce problem of file permission on host 12 | if [ "$(id -g)" = "0" ] && [ "$(id -u)" = "0" ] ; 13 | then 14 | umask 0000 15 | fi 16 | 17 | # Export this image specific Environment variables 18 | # Those variables are important to use dedicated folder for all cache and predefined config file 19 | export EM_CONFIG=/emsdk/.emscripten 20 | export EM_CACHE=/emsdk/.data/cache 21 | export EM_PORTS=/emsdk/.data/ports 22 | 23 | # Activate Emscripten SDK 24 | . ${EMSDK}/emsdk_set_env.sh 25 | 26 | # Evaluate a command that's coming after `docker run` / `docker exec` 27 | "$@" 28 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/fits_uint.c: -------------------------------------------------------------------------------- 1 | /* mpz_fits_uint_p -- test whether z fits an unsigned int. 2 | 3 | Copyright 1997, 2000, 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #define __GMP_FORCE_mpz_fits_uint_p 1 21 | 22 | #include "gmp.h" 23 | #include "gmp-impl.h" 24 | -------------------------------------------------------------------------------- /deps/gmp.js/mpf/fits_uint.c: -------------------------------------------------------------------------------- 1 | /* mpf_fits_uint_p -- test whether an mpf fits an unsigned int. 2 | 3 | Copyright 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #define FUNCTION mpf_fits_uint_p 22 | #define MAXIMUM UINT_MAX 23 | 24 | #include "fits_u.h" 25 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/fits_ulong.c: -------------------------------------------------------------------------------- 1 | /* mpz_fits_ulong_p -- test whether z fits an unsigned long. 2 | 3 | Copyright 1997, 2000, 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #define __GMP_FORCE_mpz_fits_ulong_p 1 21 | 22 | #include "gmp.h" 23 | #include "gmp-impl.h" 24 | -------------------------------------------------------------------------------- /deps/gmp.js/version.c: -------------------------------------------------------------------------------- 1 | /* gmp_version -- version number compiled into the library. 2 | 3 | Copyright 1996, 1999, 2000, 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | const char * const gmp_version = VERSION; 24 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/copy/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile gnucobol/copy 3 | # 4 | # Copyright (C) 2008-2012 Free Software Foundation, Inc. 5 | # Written by Roger While 6 | # 7 | # This file is part of GnuCOBOL. 8 | # 9 | # The GnuCOBOL compiler is free software: you can redistribute it 10 | # and/or modify it under the terms of the GNU General Public License 11 | # as published by the Free Software Foundation, either version 3 of the 12 | # License, or (at your option) any later version. 13 | # 14 | # GnuCOBOL is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with GnuCOBOL. If not, see . 21 | 22 | copydir = @COB_COPY_DIR@ 23 | copy_DATA = screenio.cpy sqlca.cpy sqlda.cpy 24 | 25 | EXTRA_DIST = $(copy_DATA) 26 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/tests/cobol85/SG.txt: -------------------------------------------------------------------------------- 1 | Filename total pass fail deleted inspect 2 | -------- ----- ---- ---- ------- ------- 3 | SG101A.CBL 151 151 0 0 0 OK 4 | SG102A.CBL 8 8 0 0 0 OK 5 | SG103A.CBL 7 7 0 0 0 OK 6 | SG104A.CBL 9 9 0 0 0 OK 7 | SG105A.CBL 9 9 0 0 0 OK 8 | SG106A.CBL 9 9 0 0 0 OK 9 | SG201A.CBL 79 79 0 0 0 OK 10 | SG202A.CBL 5 5 0 0 0 OK 11 | SG203A.CBL 18 18 0 0 0 OK 12 | SG204A.CBL 15 15 0 0 0 OK 13 | SG302M.CBL 0 0 0 0 0 OK 14 | SG303M.CBL 0 0 0 0 0 OK 15 | SG401M.CBL 0 0 0 0 0 OK 16 | -------- ----- ---- ---- ------- ------- 17 | Total 310 310 0 0 0 18 | 19 | Number of programs: 13 20 | Successfully executed: 13 21 | Compile error: 0 22 | Execute error: 0 23 | -------------------------------------------------------------------------------- /deps/gmp.js/mpf/fits_ushort.c: -------------------------------------------------------------------------------- 1 | /* mpf_fits_ushort_p -- test whether an mpf fits an unsigned short. 2 | 3 | Copyright 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #define FUNCTION mpf_fits_ushort_p 22 | #define MAXIMUM USHRT_MAX 23 | 24 | #include "fits_u.h" 25 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/fits_ushort.c: -------------------------------------------------------------------------------- 1 | /* mpz_fits_ushort_p -- test whether z fits an unsigned short. 2 | 3 | Copyright 1997, 2000, 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #define __GMP_FORCE_mpz_fits_ushort_p 1 21 | 22 | #include "gmp.h" 23 | #include "gmp-impl.h" 24 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/mul_si.c: -------------------------------------------------------------------------------- 1 | /* mpz_mul_si (product, multiplier, small_multiplicand) -- Set PRODUCT to 2 | MULTIPLICATOR times SMALL_MULTIPLICAND. 3 | 4 | Copyright 2001 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | 22 | #define OPERATION_mul_si 23 | #include "mul_i.h" 24 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/mul_ui.c: -------------------------------------------------------------------------------- 1 | /* mpz_mul_ui (product, multiplier, small_multiplicand) -- Set PRODUCT to 2 | MULTIPLICATOR times SMALL_MULTIPLICAND. 3 | 4 | Copyright 2001 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | 22 | #define OPERATION_mul_ui 23 | #include "mul_i.h" 24 | -------------------------------------------------------------------------------- /deps/gmp.js/README.markdown: -------------------------------------------------------------------------------- 1 | gmp.js 2 | ====== 3 | 4 | gmp.js is a port of the GNU Multiple-Precision Library (GMP), a library 5 | for arbitrary precision arithmetic, to JavaScript using Emscripten. 6 | 7 | GMP website: http://gmplib.org/ 8 | 9 | 10 | Steps to build 11 | -------------- 12 | 13 | * First run configure and make natively/normally. You will need some 14 | of the generated executables. Optionally, also build ``test.c`` and see 15 | that it works (see instructions inside ``test.c``). 16 | 17 | * Run configure using something like 18 | 19 | EMCONFIGURE_JS=1 emconfigure ./configure ABI=longlong --build=none --host=none 20 | 21 | * Edit ``config.h`` and disable ``HAVE_QUAD_T``, ``HAVE_OBSTACK_VPRINTF`` 22 | 23 | * Run make using something like 24 | 25 | make -j 2 26 | 27 | * Run ``emscripten.sh`` which will build the main test file, link it, then 28 | compile to JavaScript using Emscripten 29 | 30 | * Run the code using something like 31 | 32 | node complete.js 500 33 | 34 | -------------------------------------------------------------------------------- /deps/gmp.js/mpf/fits_ulong.c: -------------------------------------------------------------------------------- 1 | /* mpf_fits_ulong_p -- test whether an mpf fits an unsigned long. 2 | 3 | Copyright 2001, 2002 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #define FUNCTION mpf_fits_ulong_p 22 | #define MAXIMUM ULONG_MAX 23 | 24 | #include "fits_u.h" 25 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/cmp.c: -------------------------------------------------------------------------------- 1 | /* mpn_cmp -- Compare two low-level natural-number integers. 2 | 3 | Copyright 1991, 1993, 1994, 1996, 2000, 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #define __GMP_FORCE_mpn_cmp 1 21 | 22 | #include "gmp.h" 23 | #include "gmp-impl.h" 24 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/getlimbn.c: -------------------------------------------------------------------------------- 1 | /* mpz_getlimbn(integer,n) -- Return the N:th limb from INTEGER. 2 | 3 | Copyright 1993, 1994, 1995, 1996, 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #define __GMP_FORCE_mpz_getlimbn 1 21 | 22 | #include "gmp.h" 23 | #include "gmp-impl.h" 24 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/set_q.c: -------------------------------------------------------------------------------- 1 | /* mpz_set_q (dest_integer, src_rational) -- Assign DEST_INTEGER from 2 | SRC_rational. 3 | 4 | Copyright 1996, 2001 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | #define __GMP_FORCE_mpz_set_q 1 22 | 23 | #include "gmp.h" 24 | #include "gmp-impl.h" 25 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/get_ui.c: -------------------------------------------------------------------------------- 1 | /* mpz_get_ui(integer) -- Return the least significant digit from INTEGER. 2 | 3 | Copyright 1991, 1993, 1994, 1995, 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #define __GMP_FORCE_mpz_get_ui 1 21 | 22 | #include "gmp.h" 23 | #include "gmp-impl.h" 24 | -------------------------------------------------------------------------------- /deps/gmp.js/mpf/fits_sint.c: -------------------------------------------------------------------------------- 1 | /* mpf_fits_sint_p -- test whether an mpf fits an int. 2 | 3 | Copyright 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #define FUNCTION mpf_fits_sint_p 22 | #define MAXIMUM INT_MAX 23 | #define MINIMUM INT_MIN 24 | 25 | #include "fits_s.h" 26 | -------------------------------------------------------------------------------- /deps/gmp.js/mpf/fits_slong.c: -------------------------------------------------------------------------------- 1 | /* mpf_fits_slong_p -- test whether an mpf fits a long. 2 | 3 | Copyright 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #define FUNCTION mpf_fits_slong_p 22 | #define MAXIMUM LONG_MAX 23 | #define MINIMUM LONG_MIN 24 | 25 | #include "fits_s.h" 26 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/lib/ChangeLog: -------------------------------------------------------------------------------- 1 | 2 | 2010-06-28 Roger While 3 | 4 | * MARK - Version 2.0 5 | * Move to GPL/LGPL 3 6 | 7 | 2007-12-27 Roger While 8 | 9 | ** Mark 1.0 RELEASE 10 | 11 | 2006-10-23 Roger While 12 | 13 | * Prototype in dummymac.c 14 | 15 | 2005-10-25 Roger While 16 | 17 | * New element dummymac.c - Needed while some versions of 18 | "ar" are not capable of generating empty archives. 19 | 20 | 2003-07-28 Keisuke Nishida 21 | 22 | * malloc.c, memcmp.c, realloc.c: Removed. 23 | 24 | 2002-08-29 Keisuke Nishida 25 | 26 | * mkstemp.c, tempname.c: Removed. 27 | 28 | 2002-08-28 Keisuke Nishida 29 | 30 | * Makefile.am: Use AC_LIBOBJ scheme. 31 | 32 | * memcmp.c, mkstemp.c, tempname.c: Extracted from fileutils-4.1.11. 33 | 34 | 2002-05-29 Keisuke Nishida 35 | 36 | * getopt.c, getopt.h, getopt1.c: Extracted from glibc-2.2.5. 37 | 38 | -------------------------------------------------------------------------------- /deps/gmp.js/mpf/fits_sshort.c: -------------------------------------------------------------------------------- 1 | /* mpf_fits_sshort_p -- test whether an mpf fits a short. 2 | 3 | Copyright 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #define FUNCTION mpf_fits_sshort_p 22 | #define MAXIMUM SHRT_MAX 23 | #define MINIMUM SHRT_MIN 24 | 25 | #include "fits_s.h" 26 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/gmp-mparam.h: -------------------------------------------------------------------------------- 1 | /* Generic C gmp-mparam.h -- Compiler/machine parameter header file. 2 | 3 | Copyright 1991, 1993, 1994, 2000 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | /* Values for GMP_LIMB_BITS etc will be determined by ./configure and put 22 | in config.h. */ 23 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/size.c: -------------------------------------------------------------------------------- 1 | /* mpz_size(x) -- return the number of lims currently used by the 2 | value of integer X. 3 | 4 | Copyright 1991, 1993, 1994, 1995, 2001 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | #define __GMP_FORCE_mpz_size 1 22 | 23 | #include "gmp.h" 24 | #include "gmp-impl.h" 25 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/fits_sint.c: -------------------------------------------------------------------------------- 1 | /* int mpz_fits_sint_p (mpz_t z) -- test whether z fits a int. 2 | 3 | Copyright 1997, 2000, 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #define FUNCTION mpz_fits_sint_p 22 | #define MAXIMUM INT_MAX 23 | #define MINIMUM INT_MIN 24 | 25 | #include "fits_s.h" 26 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/fits_slong.c: -------------------------------------------------------------------------------- 1 | /* int mpz_fits_slong_p (mpz_t z) -- test whether z fits a long. 2 | 3 | Copyright 1997, 2000, 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #define FUNCTION mpz_fits_slong_p 22 | #define MAXIMUM LONG_MAX 23 | #define MINIMUM LONG_MIN 24 | 25 | #include "fits_s.h" 26 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/a29k/umul.s: -------------------------------------------------------------------------------- 1 | ; Copyright 1999, 2000 Free Software Foundation, Inc. 2 | 3 | ; This file is part of the GNU MP Library. 4 | 5 | ; The GNU MP Library is free software; you can redistribute it and/or modify 6 | ; it under the terms of the GNU Lesser General Public License as published by 7 | ; the Free Software Foundation; either version 3 of the License, or (at your 8 | ; option) any later version. 9 | 10 | ; The GNU MP Library is distributed in the hope that it will be useful, but 11 | ; WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 12 | ; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 13 | ; License for more details. 14 | 15 | ; You should have received a copy of the GNU Lesser General Public License 16 | ; along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 17 | 18 | .sect .lit,lit 19 | .text 20 | .align 4 21 | .global ___umul_ppmm 22 | .word 0x50000 23 | ___umul_ppmm: 24 | multiplu gr116,lr3,lr4 25 | multmu gr96,lr3,lr4 26 | jmpi lr0 27 | store 0,0,gr116,lr2 28 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/fits_sshort.c: -------------------------------------------------------------------------------- 1 | /* int mpz_fits_sshort_p (mpz_t z) -- test whether z fits a short. 2 | 3 | Copyright 1997, 2000, 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | 21 | #define FUNCTION mpz_fits_sshort_p 22 | #define MAXIMUM SHRT_MAX 23 | #define MINIMUM SHRT_MIN 24 | 25 | #include "fits_s.h" 26 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/zero.c: -------------------------------------------------------------------------------- 1 | /* mpn_zero 2 | 3 | Copyright 2009 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | void 24 | mpn_zero (mp_ptr rp, mp_size_t n) 25 | { 26 | mp_size_t i; 27 | 28 | rp += n; 29 | for (i = -n; i != 0; i++) 30 | rp[i] = 0; 31 | } 32 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/perfsqr.c: -------------------------------------------------------------------------------- 1 | /* mpz_perfect_square_p(arg) -- Return non-zero if ARG is a perfect square, 2 | zero otherwise. 3 | 4 | Copyright 1991, 1993, 1994, 1996, 2000, 2001 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | #define __GMP_FORCE_mpz_perfect_square_p 1 22 | 23 | #include "gmp.h" 24 | #include "gmp-impl.h" 25 | -------------------------------------------------------------------------------- /deps/gmp.js/mpf/get_prc.c: -------------------------------------------------------------------------------- 1 | /* mpf_get_prec(x) -- Return the precision in bits of x. 2 | 3 | Copyright 1996, 2000, 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | mp_bitcnt_t 24 | mpf_get_prec (mpf_srcptr x) 25 | { 26 | return __GMPF_PREC_TO_BITS (x->_mp_prec); 27 | } 28 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/a29k/udiv.s: -------------------------------------------------------------------------------- 1 | ; Copyright 1999, 2000 Free Software Foundation, Inc. 2 | 3 | ; This file is part of the GNU MP Library. 4 | 5 | ; The GNU MP Library is free software; you can redistribute it and/or modify 6 | ; it under the terms of the GNU Lesser General Public License as published by 7 | ; the Free Software Foundation; either version 3 of the License, or (at your 8 | ; option) any later version. 9 | 10 | ; The GNU MP Library is distributed in the hope that it will be useful, but 11 | ; WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 12 | ; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 13 | ; License for more details. 14 | 15 | ; You should have received a copy of the GNU Lesser General Public License 16 | ; along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 17 | 18 | .sect .lit,lit 19 | .text 20 | .align 4 21 | .global ___udiv_qrnnd 22 | .word 0x60000 23 | ___udiv_qrnnd: 24 | mtsr q,lr3 25 | dividu gr96,lr4,lr5 26 | mfsr gr116,q 27 | jmpi lr0 28 | store 0,0,gr116,lr2 29 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/copyd.c: -------------------------------------------------------------------------------- 1 | /* mpn_copyd 2 | 3 | Copyright 2009 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | void 24 | mpn_copyd (mp_ptr rp, mp_srcptr up, mp_size_t n) 25 | { 26 | mp_size_t i; 27 | 28 | for (i = n - 1; i >= 0; i--) 29 | rp[i] = up[i]; 30 | } 31 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86/p6/sse2/submul_1.asm: -------------------------------------------------------------------------------- 1 | dnl Intel P6/SSE2 mpn_submul_1. 2 | 3 | dnl Copyright 2008 Free Software Foundation, Inc. 4 | dnl 5 | dnl This file is part of the GNU MP Library. 6 | dnl 7 | dnl The GNU MP Library is free software; you can redistribute it and/or 8 | dnl modify it under the terms of the GNU Lesser General Public License as 9 | dnl published by the Free Software Foundation; either version 3 of the 10 | dnl License, or (at your option) any later version. 11 | dnl 12 | dnl The GNU MP Library is distributed in the hope that it will be useful, 13 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | dnl Lesser General Public License for more details. 16 | dnl 17 | dnl You should have received a copy of the GNU Lesser General Public License 18 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | include(`../config.m4') 21 | 22 | 23 | MULFUNC_PROLOGUE(mpn_submul_1) 24 | include_mpn(`x86/k6/aorsmul_1.asm') 25 | -------------------------------------------------------------------------------- /deps/gmp.js/doc/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | 4 | # Copyright 2003 Free Software Foundation, Inc. 5 | # 6 | # This file is part of the GNU MP Library. 7 | # 8 | # The GNU MP Library is free software; you can redistribute it and/or modify 9 | # it under the terms of the GNU Lesser General Public License as published by 10 | # the Free Software Foundation; either version 3 of the License, or (at your 11 | # option) any later version. 12 | # 13 | # The GNU MP Library is distributed in the hope that it will be useful, but 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | # License for more details. 17 | # 18 | # You should have received a copy of the GNU Lesser General Public License 19 | # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 20 | 21 | 22 | EXTRA_DIST = configuration isa_abi_headache projects.html tasks.html 23 | 24 | info_TEXINFOS = gmp.texi 25 | gmp_TEXINFOS = fdl-1.3.texi 26 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86/p6/sse2/mod_1_4.asm: -------------------------------------------------------------------------------- 1 | dnl Intel P6/SSE2 mpn_mod_1_4. 2 | 3 | dnl Copyright 2009, 2011 Free Software Foundation, Inc. 4 | dnl 5 | dnl This file is part of the GNU MP Library. 6 | dnl 7 | dnl The GNU MP Library is free software; you can redistribute it and/or modify 8 | dnl it under the terms of the GNU Lesser General Public License as published 9 | dnl by the Free Software Foundation; either version 3 of the License, or (at 10 | dnl your option) any later version. 11 | dnl 12 | dnl The GNU MP Library is distributed in the hope that it will be useful, but 13 | dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | dnl License for more details. 16 | dnl 17 | dnl You should have received a copy of the GNU Lesser General Public License 18 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | include(`../config.m4') 21 | 22 | MULFUNC_PROLOGUE(mpn_mod_1s_4p) 23 | include_mpn(`x86/pentium4/sse2/mod_1_4.asm') 24 | -------------------------------------------------------------------------------- /deps/gmp.js/tune/powm_mod.c: -------------------------------------------------------------------------------- 1 | /* mpz/powm.c forced to use division. */ 2 | 3 | /* 4 | Copyright 2000 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | #include "gmp.h" 22 | #include "gmp-impl.h" 23 | 24 | #undef POWM_THRESHOLD 25 | #define POWM_THRESHOLD 1 26 | #define __gmpz_powm mpz_powm_mod 27 | 28 | #include "../mpz/powm.c" 29 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/lib/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile gnucobol/lib 3 | # 4 | # Copyright (C) 2003-2012, Free Software Foundation, Inc. 5 | # Written by Keisuke Nishida, Roger While, Simon Sobisch 6 | # 7 | # This file is part of GnuCOBOL. 8 | # 9 | # The GnuCOBOL compiler is free software: you can redistribute it 10 | # and/or modify it under the terms of the GNU General Public License 11 | # as published by the Free Software Foundation, either version 3 of the 12 | # License, or (at your option) any later version. 13 | # 14 | # GnuCOBOL is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with GnuCOBOL. If not, see . 21 | 22 | noinst_HEADERS = gettext.h 23 | 24 | noinst_LIBRARIES = libsupport.a 25 | libsupport_a_SOURCES = dummymac.c 26 | libsupport_a_LIBADD = @LIBOBJS@ 27 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/power/sdiv.asm: -------------------------------------------------------------------------------- 1 | dnl Copyright 1999, 2001 Free Software Foundation, Inc. 2 | 3 | dnl This file is part of the GNU MP Library. 4 | 5 | dnl The GNU MP Library is free software; you can redistribute it and/or modify 6 | dnl it under the terms of the GNU Lesser General Public License as published 7 | dnl by the Free Software Foundation; either version 3 of the License, or (at 8 | dnl your option) any later version. 9 | 10 | dnl The GNU MP Library is distributed in the hope that it will be useful, but 11 | dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 12 | dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 13 | dnl License for more details. 14 | 15 | dnl You should have received a copy of the GNU Lesser General Public License 16 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 17 | 18 | include(`../config.m4') 19 | 20 | ASM_START() 21 | PROLOGUE(mpn_sdiv_qrnnd) 22 | mtmq 5 23 | div 0,4,6 24 | mfmq 9 25 | st 9,0(3) 26 | mr 3,0 27 | br 28 | EPILOGUE(mpn_sdiv_qrnnd) 29 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/s390/README: -------------------------------------------------------------------------------- 1 | All current (2001) S/390 and z/Architecture machines are single-issue, 2 | but some newer machines have a deep pipeline. Software-pipelining is 3 | therefore beneficial. 4 | 5 | * mpn_add_n, mpn_sub_n: Use code along the lines below. Two-way unrolling 6 | would be adequate. 7 | 8 | mp_limb_t 9 | mpn_add_n (mp_ptr rp, mp_srcptr up, mp_srcptr vp, mp_size_t n) 10 | { 11 | mp_limb_t a, b, r, cy; 12 | mp_size_t i; 13 | mp_limb_t mm = -1; 14 | 15 | cy = 0; 16 | up += n; 17 | vp += n; 18 | rp += n; 19 | i = -n; 20 | do 21 | { 22 | a = up[i]; 23 | b = vp[i]; 24 | r = a + b + cy; 25 | rp[i] = r; 26 | cy = (((a & b) | ((a | b) & (r ^ mm)))) >> 31; 27 | i++; 28 | } 29 | while (i < 0); 30 | return cy; 31 | } 32 | 33 | * mpn_lshift, mpn_rshift: Use SLDL/SRDL, and two-way unrolling. 34 | 35 | * mpn_mul_1, mpn_addmul_1, mpn_submul_1: For machines with just signed 36 | multiply (MR), use two loops, similar to the corresponding VAX or 37 | POWER functions. Handle carry like for mpn_add_n. 38 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/popcount.c: -------------------------------------------------------------------------------- 1 | /* mpz_popcount(mpz_ptr op) -- Population count of OP. If the operand is 2 | negative, return ~0 (a novel representation of infinity). 3 | 4 | Copyright 1994, 1996, 2001 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | #define __GMP_FORCE_mpz_popcount 1 22 | 23 | #include "gmp.h" 24 | #include "gmp-impl.h" 25 | -------------------------------------------------------------------------------- /deps/gmp.js/randdef.c: -------------------------------------------------------------------------------- 1 | /* gmp_randinit_default -- initialize a random state with a default algorithm. 2 | 3 | Copyright 2001, 2002 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | void 24 | gmp_randinit_default (gmp_randstate_t rstate) 25 | { 26 | gmp_randinit_mt (rstate); 27 | } 28 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86_64/core2/popcount.asm: -------------------------------------------------------------------------------- 1 | dnl x86-64 mpn_popcount optimized for "Core 2". 2 | 3 | dnl Copyright 2007 Free Software Foundation, Inc. 4 | 5 | dnl This file is part of the GNU MP Library. 6 | 7 | dnl The GNU MP Library is free software; you can redistribute it and/or modify 8 | dnl it under the terms of the GNU Lesser General Public License as published 9 | dnl by the Free Software Foundation; either version 3 of the License, or (at 10 | dnl your option) any later version. 11 | 12 | dnl The GNU MP Library is distributed in the hope that it will be useful, but 13 | dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | dnl License for more details. 16 | 17 | dnl You should have received a copy of the GNU Lesser General Public License 18 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | 21 | include(`../config.m4') 22 | 23 | MULFUNC_PROLOGUE(mpn_popcount) 24 | include_mpn(`x86/pentium4/sse2/popcount.asm') 25 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86_64/pentium4/popcount.asm: -------------------------------------------------------------------------------- 1 | dnl x86-64 mpn_popcount optimized for Pentium 4. 2 | 3 | dnl Copyright 2007 Free Software Foundation, Inc. 4 | 5 | dnl This file is part of the GNU MP Library. 6 | 7 | dnl The GNU MP Library is free software; you can redistribute it and/or modify 8 | dnl it under the terms of the GNU Lesser General Public License as published 9 | dnl by the Free Software Foundation; either version 3 of the License, or (at 10 | dnl your option) any later version. 11 | 12 | dnl The GNU MP Library is distributed in the hope that it will be useful, but 13 | dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | dnl License for more details. 16 | 17 | dnl You should have received a copy of the GNU Lesser General Public License 18 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | 21 | include(`../config.m4') 22 | 23 | MULFUNC_PROLOGUE(mpn_popcount) 24 | include_mpn(`x86/pentium4/sse2/popcount.asm') 25 | -------------------------------------------------------------------------------- /deps/gmp.js/tune/jacbase1.c: -------------------------------------------------------------------------------- 1 | /* mpn/generic/jacbase.c method 1. 2 | 3 | Copyright 2002 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | #undef JACOBI_BASE_METHOD 24 | #define JACOBI_BASE_METHOD 1 25 | #define __gmpn_jacobi_base mpn_jacobi_base_1 26 | 27 | #include "mpn/generic/jacbase.c" 28 | -------------------------------------------------------------------------------- /deps/gmp.js/tune/jacbase2.c: -------------------------------------------------------------------------------- 1 | /* mpn/generic/jacbase.c method 2. 2 | 3 | Copyright 2002 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | #undef JACOBI_BASE_METHOD 24 | #define JACOBI_BASE_METHOD 2 25 | #define __gmpn_jacobi_base mpn_jacobi_base_2 26 | 27 | #include "mpn/generic/jacbase.c" 28 | -------------------------------------------------------------------------------- /deps/gmp.js/tune/jacbase3.c: -------------------------------------------------------------------------------- 1 | /* mpn/generic/jacbase.c method 3. 2 | 3 | Copyright 2002 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | #undef JACOBI_BASE_METHOD 24 | #define JACOBI_BASE_METHOD 3 25 | #define __gmpn_jacobi_base mpn_jacobi_base_3 26 | 27 | #include "mpn/generic/jacbase.c" 28 | -------------------------------------------------------------------------------- /deps/emsdk/legacy-binaryen-tags.txt: -------------------------------------------------------------------------------- 1 | 1.36.2 2 | 1.36.3 3 | 1.36.4 4 | 1.36.5 5 | 1.36.6 6 | 1.36.7 7 | 1.36.8 8 | 1.36.9 9 | 1.36.10 10 | 1.36.11 11 | 1.36.12 12 | 1.36.13 13 | 1.36.14 14 | 1.37.0 15 | 1.37.1 16 | 1.37.2 17 | 1.37.3 18 | 1.37.4 19 | 1.37.5 20 | 1.37.6 21 | 1.37.7 22 | 1.37.8 23 | 1.37.9 24 | 1.37.10 25 | 1.37.11 26 | 1.37.12 27 | 1.37.13 28 | 1.37.14 29 | 1.37.15 30 | 1.37.16 31 | 1.37.17 32 | 1.37.18 33 | 1.37.19 34 | 1.37.20 35 | 1.37.21 36 | 1.37.22 37 | 1.37.23 38 | 1.37.24 39 | 1.37.25 40 | 1.37.26 41 | 1.37.27 42 | 1.37.28 43 | 1.37.29 44 | 1.37.30 45 | 1.37.31 46 | 1.37.32 47 | 1.37.33 48 | 1.37.34 49 | 1.37.35 50 | 1.37.36 51 | 1.37.37 52 | 1.37.38 53 | 1.37.39 54 | 1.37.40 55 | 1.38.0 56 | 1.38.1 57 | 1.38.2 58 | 1.38.3 59 | 1.38.4 60 | 1.38.5 61 | 1.38.6 62 | 1.38.7 63 | 1.38.8 64 | 1.38.9 65 | 1.38.10 66 | 1.38.11 67 | 1.38.12 68 | 1.38.13 69 | 1.38.14 70 | 1.38.15 71 | 1.38.16 72 | 1.38.17 73 | 1.38.18 74 | 1.38.19 75 | 1.38.20 76 | 1.38.21 77 | 1.38.22 78 | 1.38.23 79 | 1.38.24 80 | 1.38.25 81 | 1.38.26 82 | 1.38.27 83 | 1.38.28 84 | 1.38.29 85 | 1.38.30 86 | 1.38.31 -------------------------------------------------------------------------------- /deps/gmp.js/mpf/get_dfl_prec.c: -------------------------------------------------------------------------------- 1 | /* mpf_get_default_prec -- return default precision in bits. 2 | 3 | Copyright 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | 24 | mp_bitcnt_t 25 | mpf_get_default_prec (void) 26 | { 27 | return __GMPF_PREC_TO_BITS (__gmp_default_fp_limb_precision); 28 | } 29 | -------------------------------------------------------------------------------- /deps/gmp.js/mpf/size.c: -------------------------------------------------------------------------------- 1 | /* mpf_size(x) -- return the number of limbs currently used by the 2 | value of the float X. 3 | 4 | Copyright 1993, 1994, 1995, 2001 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | #include "gmp.h" 22 | #include "gmp-impl.h" 23 | 24 | size_t 25 | mpf_size (mpf_srcptr f) 26 | { 27 | return __GMP_ABS (f->_mp_size); 28 | } 29 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86/p6/sse2/mul_basecase.asm: -------------------------------------------------------------------------------- 1 | dnl Intel P6/SSE2 mpn_mul_basecase. 2 | 3 | dnl Copyright 2008 Free Software Foundation, Inc. 4 | dnl 5 | dnl This file is part of the GNU MP Library. 6 | dnl 7 | dnl The GNU MP Library is free software; you can redistribute it and/or 8 | dnl modify it under the terms of the GNU Lesser General Public License as 9 | dnl published by the Free Software Foundation; either version 3 of the 10 | dnl License, or (at your option) any later version. 11 | dnl 12 | dnl The GNU MP Library is distributed in the hope that it will be useful, 13 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | dnl Lesser General Public License for more details. 16 | dnl 17 | dnl You should have received a copy of the GNU Lesser General Public License 18 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | include(`../config.m4') 21 | 22 | 23 | MULFUNC_PROLOGUE(mpn_mul_basecase) 24 | include_mpn(`x86/pentium4/sse2/mul_basecase.asm') 25 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86/p6/sse2/sqr_basecase.asm: -------------------------------------------------------------------------------- 1 | dnl Intel P6/SSE2 mpn_sqr_basecase. 2 | 3 | dnl Copyright 2008 Free Software Foundation, Inc. 4 | dnl 5 | dnl This file is part of the GNU MP Library. 6 | dnl 7 | dnl The GNU MP Library is free software; you can redistribute it and/or 8 | dnl modify it under the terms of the GNU Lesser General Public License as 9 | dnl published by the Free Software Foundation; either version 3 of the 10 | dnl License, or (at your option) any later version. 11 | dnl 12 | dnl The GNU MP Library is distributed in the hope that it will be useful, 13 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | dnl Lesser General Public License for more details. 16 | dnl 17 | dnl You should have received a copy of the GNU Lesser General Public License 18 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | include(`../config.m4') 21 | 22 | 23 | MULFUNC_PROLOGUE(mpn_sqr_basecase) 24 | include_mpn(`x86/pentium4/sse2/sqr_basecase.asm') 25 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/copyi.c: -------------------------------------------------------------------------------- 1 | /* mpn_copyi 2 | 3 | Copyright 2009 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | void 24 | mpn_copyi (mp_ptr rp, mp_srcptr up, mp_size_t n) 25 | { 26 | mp_size_t i; 27 | 28 | up += n; 29 | rp += n; 30 | for (i = -n; i != 0; i++) 31 | rp[i] = up[i]; 32 | } 33 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86/p6/sse2/popcount.asm: -------------------------------------------------------------------------------- 1 | dnl Intel P6/SSE2 mpn_popcount -- population count. 2 | 3 | dnl Copyright 2008 Free Software Foundation, Inc. 4 | dnl 5 | dnl This file is part of the GNU MP Library. 6 | dnl 7 | dnl The GNU MP Library is free software; you can redistribute it and/or 8 | dnl modify it under the terms of the GNU Lesser General Public License as 9 | dnl published by the Free Software Foundation; either version 3 of the 10 | dnl License, or (at your option) any later version. 11 | dnl 12 | dnl The GNU MP Library is distributed in the hope that it will be useful, 13 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | dnl Lesser General Public License for more details. 16 | dnl 17 | dnl You should have received a copy of the GNU Lesser General Public License 18 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | include(`../config.m4') 21 | 22 | 23 | MULFUNC_PROLOGUE(mpn_popcount) 24 | include_mpn(`x86/pentium4/sse2/popcount.asm') 25 | -------------------------------------------------------------------------------- /deps/gmp.js/randclr.c: -------------------------------------------------------------------------------- 1 | /* gmp_randclear (state) -- Clear and deallocate random state STATE. 2 | 3 | Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | void 24 | gmp_randclear (gmp_randstate_t rstate) 25 | { 26 | (*((gmp_randfnptr_t *) RNG_FNPTR (rstate))->randclear_fn) (rstate); 27 | } 28 | -------------------------------------------------------------------------------- /deps/gmp.js/tune/pre_divrem_1.c: -------------------------------------------------------------------------------- 1 | /* mpn_preinv_divrem_1 -- if not already in libgmp. 2 | 3 | Copyright 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | #if ! USE_PREINV_DIVREM_1 24 | 25 | #undef USE_PREINV_DIVREM_1 26 | #define USE_PREINV_DIVREM_1 1 27 | 28 | #include "mpn/generic/pre_divrem_1.c" 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /deps/gmp.js/tune/gcdext_double.c: -------------------------------------------------------------------------------- 1 | /* mpn/generic/gcdext.c forced to use double limb calculations. */ 2 | 3 | /* 4 | Copyright 2000 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | #include "gmp.h" 22 | #include "gmp-impl.h" 23 | 24 | #undef GCDEXT_THRESHOLD 25 | #define GCDEXT_THRESHOLD 0 26 | #define __gmpn_gcdext mpn_gcdext_double 27 | 28 | #include "../mpn/generic/gcdext.c" 29 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/copy/sqlca.cpy: -------------------------------------------------------------------------------- 1 | 01 SQLCA. 2 | 03 SQLCAID PIC X(8) VALUE "SQLCA ". 3 | 03 SQLCABC USAGE BINARY-LONG VALUE 136. 4 | 03 SQLCODE USAGE BINARY-LONG VALUE 0. 5 | 03 SQLERRM. 6 | 05 SQLERRML USAGE BINARY-SHORT. 7 | 05 SQLERRMC PIC X(70). 8 | 03 SQLERRP PIC X(8). 9 | 03 SQLERRD USAGE BINARY-LONG OCCURS 6. 10 | 03 SQLWARN. 11 | 05 SQLWARN0 PIC X. 12 | 05 SQLWARN1 PIC X. 13 | 05 SQLWARN2 PIC X. 14 | 05 SQLWARN3 PIC X. 15 | 05 SQLWARN4 PIC X. 16 | 05 SQLWARN5 PIC X. 17 | 05 SQLWARN6 PIC X. 18 | 05 SQLWARN7 PIC X. 19 | 05 SQLWARN8 PIC X. 20 | 05 SQLWARN9 PIC X. 21 | 05 SQLWARN10 PIC X. 22 | 05 SQLWARNA REDEFINES SQLWARN10 PIC X. 23 | 03 SQLSTATE PIC X(5). 24 | 03 FILLER PIC X(21). 25 | -------------------------------------------------------------------------------- /deps/gmp.js/mpbsd/mfree.c: -------------------------------------------------------------------------------- 1 | /* mfree -- BSD compatible mfree. 2 | 3 | Copyright 1991, 1994, 1995, 2000, 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "mp.h" 21 | #include "gmp.h" 22 | #include "gmp-impl.h" 23 | 24 | void 25 | mfree (MINT *m) 26 | { 27 | (*__gmp_free_func) (m->_mp_d, m->_mp_alloc * BYTES_PER_MP_LIMB); 28 | (*__gmp_free_func) (m, sizeof (MINT)); 29 | } 30 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86/p6/sse2/addmul_1.asm: -------------------------------------------------------------------------------- 1 | dnl Intel P6/SSE2 mpn_addmul_1. 2 | 3 | dnl Copyright 2008 Free Software Foundation, Inc. 4 | dnl 5 | dnl This file is part of the GNU MP Library. 6 | dnl 7 | dnl The GNU MP Library is free software; you can redistribute it and/or 8 | dnl modify it under the terms of the GNU Lesser General Public License as 9 | dnl published by the Free Software Foundation; either version 3 of the 10 | dnl License, or (at your option) any later version. 11 | dnl 12 | dnl The GNU MP Library is distributed in the hope that it will be useful, 13 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | dnl Lesser General Public License for more details. 16 | dnl 17 | dnl You should have received a copy of the GNU Lesser General Public License 18 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | include(`../config.m4') 21 | 22 | C TODO 23 | C * Write P6 specific SSE2 code. 24 | 25 | MULFUNC_PROLOGUE(mpn_addmul_1) 26 | include_mpn(`x86/pentium4/sse2/addmul_1.asm') 27 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | export DOCKER_BUILDKIT=0 2 | DEPS_OUT = $(PWD)/dist 3 | CFLAGS=-I$(DEPS_OUT)/include -L$(DEPS_OUT)/lib 4 | 5 | all: $(DEPS_OUT)/lib/libgmp.a $(DEPS_OUT)/lib/libcob.a 6 | 7 | $(DEPS_OUT)/lib/libgmp.a: 8 | cd ./deps/gmp.js && \ 9 | emconfigure ./configure --disable-assembly --host none --build none \ 10 | --enable-cxx \ 11 | --prefix=$(DEPS_OUT) 12 | make -C ./deps/gmp.js 13 | make -C ./deps/gmp.js install 14 | 15 | $(DEPS_OUT)/lib/libcob.a: $(DEPS_OUT)/lib/libgmp.a 16 | cd ./deps/gnucobol-2.2 && \ 17 | emconfigure ./configure --host none --build none \ 18 | --without-db CFLAGS="$(CFLAGS)" \ 19 | --disable-assembly --with-gmp=$(DEPS_OUT) --prefix=$(DEPS_OUT) 20 | make -C ./deps/gnucobol-2.2 CFLAGS="$(CFLAGS)" libcob 21 | make -C ./deps/gnucobol-2.2/libcob install 22 | cp ./deps/gnucobol-2.2/libcob.h $(DEPS_OUT)/include 23 | 24 | clean: 25 | make -C ./deps/gmp.js clean || true 26 | make -C ./deps/gnucobol-2.2 clean || true 27 | rm -rf deps/gnucobol-2.2/cobc/*.o 28 | rm -rf deps/gnucobol-2.2/libcob/.deps 29 | rm -rf deps/gnucobol-2.2/config.log 30 | 31 | build-docker: 32 | docker build -t xtuc/cobweb . 33 | -------------------------------------------------------------------------------- /deps/gmp.js/mpf/clear.c: -------------------------------------------------------------------------------- 1 | /* mpf_clear -- de-allocate the space occupied by the dynamic digit space of 2 | an integer. 3 | 4 | Copyright 1993, 1994, 1995, 2000, 2001 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | #include "gmp.h" 22 | #include "gmp-impl.h" 23 | 24 | void 25 | mpf_clear (mpf_ptr m) 26 | { 27 | (*__gmp_free_func) (m->_mp_d, (m->_mp_prec + 1) * BYTES_PER_MP_LIMB); 28 | } 29 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/clear.c: -------------------------------------------------------------------------------- 1 | /* mpz_clear -- de-allocate the space occupied by the dynamic digit space of 2 | an integer. 3 | 4 | Copyright 1991, 1993, 1994, 1995, 2000, 2001 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | #include "gmp.h" 22 | #include "gmp-impl.h" 23 | 24 | void 25 | mpz_clear (mpz_ptr m) 26 | { 27 | (*__gmp_free_func) (m->_mp_d, m->_mp_alloc * BYTES_PER_MP_LIMB); 28 | } 29 | -------------------------------------------------------------------------------- /deps/gmp.js/randiset.c: -------------------------------------------------------------------------------- 1 | /* gmp_randinit_set -- initialize with a copy of another gmp_randstate_t. 2 | 3 | Copyright 2003 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | 24 | void 25 | gmp_randinit_set (gmp_randstate_ptr dst, gmp_randstate_srcptr src) 26 | { 27 | (*((gmp_randfnptr_t *) RNG_FNPTR (src))->randiset_fn) (dst, src); 28 | } 29 | -------------------------------------------------------------------------------- /deps/gmp.js/tune/gcdext_single.c: -------------------------------------------------------------------------------- 1 | /* mpn/generic/gcdext.c forced to use single limb calculations. */ 2 | 3 | /* 4 | Copyright 2000 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | #include "gmp.h" 22 | #include "gmp-impl.h" 23 | 24 | #undef GCDEXT_THRESHOLD 25 | #define GCDEXT_THRESHOLD MP_SIZE_T_MAX 26 | #define __gmpn_gcdext mpn_gcdext_single 27 | 28 | #include "../mpn/generic/gcdext.c" 29 | -------------------------------------------------------------------------------- /deps/gmp.js/mpbsd/rpow.c: -------------------------------------------------------------------------------- 1 | /* rpow -- MINT raised to short. */ 2 | 3 | /* 4 | Copyright 2001 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | #include "mp.h" 22 | #include "gmp.h" 23 | #include "gmp-impl.h" 24 | 25 | void 26 | rpow (const MINT *b, short e, MINT *r) 27 | { 28 | if (e >= 0) 29 | mpz_n_pow_ui (r, PTR(b), (mp_size_t) SIZ(b), (unsigned long) e); 30 | else 31 | SIZ(r) = 0; 32 | } 33 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/perfpow.c: -------------------------------------------------------------------------------- 1 | /* mpz_perfect_power_p(arg) -- Return non-zero if ARG is a perfect power, 2 | zero otherwise. 3 | 4 | Copyright 1998, 1999, 2000, 2001, 2005, 2008, 2009 Free Software Foundation, 5 | Inc. 6 | 7 | This file is part of the GNU MP Library. 8 | 9 | The GNU MP Library is free software; you can redistribute it and/or modify 10 | it under the terms of the GNU Lesser General Public License as published by 11 | the Free Software Foundation; either version 3 of the License, or (at your 12 | option) any later version. 13 | 14 | The GNU MP Library is distributed in the hope that it will be useful, but 15 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 17 | License for more details. 18 | 19 | You should have received a copy of the GNU Lesser General Public License 20 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 21 | 22 | #include "gmp.h" 23 | #include "gmp-impl.h" 24 | 25 | int 26 | mpz_perfect_power_p (mpz_srcptr u) 27 | { 28 | return mpn_perfect_power_p (PTR (u), SIZ (u)); 29 | } 30 | -------------------------------------------------------------------------------- /deps/gmp.js/randsd.c: -------------------------------------------------------------------------------- 1 | /* gmp_randseed (state, seed) -- Set initial seed SEED in random state STATE. 2 | 3 | Copyright 2000, 2002 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | void 24 | gmp_randseed (gmp_randstate_t rstate, 25 | mpz_srcptr seed) 26 | { 27 | (*((gmp_randfnptr_t *) RNG_FNPTR (rstate))->randseed_fn) (rstate, seed); 28 | } 29 | -------------------------------------------------------------------------------- /deps/gmp.js/tune/gcdextod.c: -------------------------------------------------------------------------------- 1 | /* mpn/generic/gcdext.c forced to one double limb step. */ 2 | 3 | /* 4 | Copyright 2000 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | #include "gmp.h" 22 | #include "gmp-impl.h" 23 | 24 | #undef GCDEXT_THRESHOLD 25 | #define GCDEXT_THRESHOLD 0 26 | #define WANT_GCDEXT_ONE_STEP 1 27 | #define __gmpn_gcdext mpn_gcdext_one_double 28 | 29 | #include "../mpn/generic/gcdext.c" 30 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/power/umul.asm: -------------------------------------------------------------------------------- 1 | dnl Copyright 1999, 2001 Free Software Foundation, Inc. 2 | 3 | dnl This file is part of the GNU MP Library. 4 | 5 | dnl The GNU MP Library is free software; you can redistribute it and/or modify 6 | dnl it under the terms of the GNU Lesser General Public License as published 7 | dnl by the Free Software Foundation; either version 3 of the License, or (at 8 | dnl your option) any later version. 9 | 10 | dnl The GNU MP Library is distributed in the hope that it will be useful, but 11 | dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 12 | dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 13 | dnl License for more details. 14 | 15 | dnl You should have received a copy of the GNU Lesser General Public License 16 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 17 | 18 | include(`../config.m4') 19 | 20 | ASM_START() 21 | PROLOGUE(mpn_umul_ppmm) 22 | mul 9,4,5 23 | srai 0,4,31 24 | and 0,0,5 25 | srai 5,5,31 26 | and 5,5,4 27 | cax 0,0,5 28 | mfmq 11 29 | st 11,0(3) 30 | cax 3,9,0 31 | br 32 | EPILOGUE(mpn_umul_ppmm) 33 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/random.c: -------------------------------------------------------------------------------- 1 | /* mpz_random -- Generate a random mpz_t of specified size in limbs. 2 | 3 | Copyright 2001, 2002 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | void 24 | mpz_random (mpz_ptr x, mp_size_t size) 25 | { 26 | mpz_urandomb (x, RANDS, (unsigned long) (ABS (size) * GMP_NUMB_BITS)); 27 | if (size < 0) 28 | SIZ(x) = -SIZ(x); 29 | } 30 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/tests/cobol85/summarynoix.txt: -------------------------------------------------------------------------------- 1 | ------ Directory Information ------- --- Total Tests Information --- 2 | Module Programs Executed Error Crash Pass Fail Deleted Inspect Total 3 | ------ -------- -------- ----- ----- ----- ---- ------- ------- ----- 4 | NC 95 95 0 0 4393 0 4 1 4398 5 | SM 17 17 0 0 291 0 2 1 294 6 | IC 25 25 0 0 246 0 4 0 250 7 | SQ 85 85 0 0 518 0 0 89 607 8 | RL 35 35 0 0 1827 0 5 0 1832 9 | ST 40 40 0 0 288 0 0 0 288 10 | SG 13 13 0 0 310 0 0 0 310 11 | OB 7 7 0 0 39 0 0 0 39 12 | IF 45 45 0 0 733 0 0 0 733 13 | DBNOIX 15 15 0 0 400 0 4 25 429 14 | ------ -------- -------- ----- ----- ----- ---- ------- ------- ----- 15 | Total 377 377 0 0 9045 0 19 116 9180 16 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/tests/cobol85/DBNOIX.txt: -------------------------------------------------------------------------------- 1 | Filename total pass fail deleted inspect 2 | -------- ----- ---- ---- ------- ------- 3 | DB101A.CBL 34 25 0 0 9 OK 4 | DB102A.CBL 14 14 0 0 0 OK 5 | DB103M.CBL 14 14 0 0 0 OK 6 | DB103M.CBL 28 28 0 0 0 OK 7 | DB104A.CBL 12 9 0 0 3 OK 8 | DB105A.CBL 227 227 0 0 0 OK 9 | DB201A.CBL 68 56 0 4 8 OK 10 | DB202A.CBL 24 20 0 0 4 OK 11 | DB203A.CBL ----- test skipped ----- 12 | DB204A.CBL 4 3 0 0 1 OK 13 | DB205A.CBL 0 0 0 0 0 OK 14 | DB301M.CBL 1 1 0 0 0 OK 15 | DB302M.CBL 1 1 0 0 0 OK 16 | DB303M.CBL 1 1 0 0 0 OK 17 | DB304M.CBL 0 0 0 0 0 OK 18 | DB305M.CBL 1 1 0 0 0 OK 19 | -------- ----- ---- ---- ------- ------- 20 | Total 429 400 0 4 25 21 | 22 | Number of programs: 15 23 | Successfully executed: 15 24 | Compile error: 0 25 | Execute error: 0 26 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/sparc32/v8/umul.asm: -------------------------------------------------------------------------------- 1 | dnl SPARC v8 mpn_umul_ppmm -- support for longlong.h for non-gcc. 2 | 3 | dnl Copyright 1995, 1996, 2000 Free Software Foundation, Inc. 4 | 5 | dnl This file is part of the GNU MP Library. 6 | 7 | dnl The GNU MP Library is free software; you can redistribute it and/or modify 8 | dnl it under the terms of the GNU Lesser General Public License as published 9 | dnl by the Free Software Foundation; either version 3 of the License, or (at 10 | dnl your option) any later version. 11 | 12 | dnl The GNU MP Library is distributed in the hope that it will be useful, but 13 | dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | dnl License for more details. 16 | 17 | dnl You should have received a copy of the GNU Lesser General Public License 18 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | 21 | include(`../config.m4') 22 | 23 | ASM_START() 24 | PROLOGUE(mpn_umul_ppmm) 25 | umul %o1,%o2,%g2 26 | st %g2,[%o0] 27 | retl 28 | rd %y,%o0 29 | EPILOGUE(mpn_umul_ppmm) 30 | -------------------------------------------------------------------------------- /deps/gmp.js/tune/divrem2inv.c: -------------------------------------------------------------------------------- 1 | /* mpn/generic/divrem_2.c forced to use udiv_qrnnd_preinv. */ 2 | 3 | /* 4 | Copyright 2001 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | #include "gmp.h" 22 | #include "gmp-impl.h" 23 | 24 | #ifdef DIVREM_2_THRESHOLD 25 | #undef DIVREM_2_THRESHOLD 26 | #endif 27 | #define DIVREM_2_THRESHOLD 0 28 | #define __gmpn_divrem_2 mpn_divrem_2_inv 29 | 30 | #include "mpn/generic/divrem_2.c" 31 | -------------------------------------------------------------------------------- /deps/gmp.js/tune/gcdextos.c: -------------------------------------------------------------------------------- 1 | /* mpn/generic/gcdext.c forced to one single limb step. */ 2 | 3 | /* 4 | Copyright 2000 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | #include "gmp.h" 22 | #include "gmp-impl.h" 23 | 24 | #undef GCDEXT_THRESHOLD 25 | #define GCDEXT_THRESHOLD MP_SIZE_T_MAX 26 | #define WANT_GCDEXT_ONE_STEP 1 27 | #define __gmpn_gcdext mpn_gcdext_one_single 28 | 29 | #include "../mpn/generic/gcdext.c" 30 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/tests/cobol85/DB.txt: -------------------------------------------------------------------------------- 1 | Filename total pass fail deleted inspect 2 | -------- ----- ---- ---- ------- ------- 3 | DB101A.CBL 34 25 0 0 9 OK 4 | DB102A.CBL 14 14 0 0 0 OK 5 | DB103M.CBL 14 14 0 0 0 OK 6 | DB103M.CBL 28 28 0 0 0 OK 7 | DB104A.CBL 12 9 0 0 3 OK 8 | DB105A.CBL 227 227 0 0 0 OK 9 | DB201A.CBL 68 56 0 4 8 OK 10 | DB202A.CBL 24 20 0 0 4 OK 11 | DB203A.CBL 20 18 0 0 2 OK 12 | DB204A.CBL 4 3 0 0 1 OK 13 | DB205A.CBL 0 0 0 0 0 OK 14 | DB301M.CBL 1 1 0 0 0 OK 15 | DB302M.CBL 1 1 0 0 0 OK 16 | DB303M.CBL 1 1 0 0 0 OK 17 | DB304M.CBL 0 0 0 0 0 OK 18 | DB305M.CBL 1 1 0 0 0 OK 19 | -------- ----- ---- ---- ------- ------- 20 | Total 449 418 0 4 27 21 | 22 | Number of programs: 16 23 | Successfully executed: 16 24 | Compile error: 0 25 | Execute error: 0 26 | -------------------------------------------------------------------------------- /deps/gmp.js/scanf/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | # Copyright 2001, 2002 Free Software Foundation, Inc. 4 | # 5 | # This file is part of the GNU MP Library. 6 | # 7 | # The GNU MP Library is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU Lesser General Public License as published by 9 | # the Free Software Foundation; either version 3 of the License, or (at your 10 | # option) any later version. 11 | # 12 | # The GNU MP Library is distributed in the hope that it will be useful, but 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | # License for more details. 16 | # 17 | # You should have received a copy of the GNU Lesser General Public License 18 | # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | 21 | INCLUDES = -D__GMP_WITHIN_GMP -I$(top_srcdir) 22 | 23 | noinst_LTLIBRARIES = libscanf.la 24 | 25 | libscanf_la_SOURCES = \ 26 | doscan.c fscanf.c fscanffuns.c scanf.c sscanf.c sscanffuns.c \ 27 | vfscanf.c vscanf.c vsscanf.c 28 | -------------------------------------------------------------------------------- /deps/gmp.js/mpf/set_dfl_prec.c: -------------------------------------------------------------------------------- 1 | /* mpf_set_default_prec -- 2 | 3 | Copyright 1993, 1994, 1995, 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | mp_size_t __gmp_default_fp_limb_precision = __GMPF_BITS_TO_PREC (53); 24 | 25 | void 26 | mpf_set_default_prec (mp_bitcnt_t prec_in_bits) 27 | { 28 | __gmp_default_fp_limb_precision = __GMPF_BITS_TO_PREC (prec_in_bits); 29 | } 30 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/generic/com.c: -------------------------------------------------------------------------------- 1 | /* mpn_com - complement an mpn. 2 | 3 | Copyright 2009 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | #undef mpn_com 24 | #define mpn_com __MPN(com) 25 | 26 | void 27 | mpn_com (mp_ptr rp, mp_srcptr up, mp_size_t n) 28 | { 29 | mp_limb_t ul; 30 | do { 31 | ul = *up++; 32 | *rp++ = ~ul & GMP_NUMB_MASK; 33 | } while (--n != 0); 34 | } 35 | -------------------------------------------------------------------------------- /deps/gmp.js/tune/divrem2div.c: -------------------------------------------------------------------------------- 1 | /* mpn/generic/divrem_2.c forced to use plain udiv_qrnnd. */ 2 | 3 | /* 4 | Copyright 2001 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | #include "gmp.h" 22 | #include "gmp-impl.h" 23 | 24 | #ifdef DIVREM_2_THRESHOLD 25 | #undef DIVREM_2_THRESHOLD 26 | #endif 27 | #define DIVREM_2_THRESHOLD MP_SIZE_T_MAX 28 | #define __gmpn_divrem_2 mpn_divrem_2_div 29 | 30 | #include "mpn/generic/divrem_2.c" 31 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/libcob.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2002-2012 Free Software Foundation, Inc. 3 | Written by Keisuke Nishida, Roger While 4 | 5 | This file is part of GnuCOBOL. 6 | 7 | The GnuCOBOL runtime library is free software: you can redistribute it 8 | and/or modify it under the terms of the GNU Lesser General Public License 9 | as published by the Free Software Foundation, either version 3 of the 10 | License, or (at your option) any later version. 11 | 12 | GnuCOBOL is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU Lesser General Public License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with GnuCOBOL. If not, see . 19 | */ 20 | 21 | 22 | #ifndef COB_LIBCOB_H 23 | #define COB_LIBCOB_H 24 | 25 | #include 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | #include 32 | 33 | #ifdef __cplusplus 34 | } 35 | #endif 36 | 37 | #endif /* COB_LIBCOB_H_ */ 38 | -------------------------------------------------------------------------------- /LICENSE_MIT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2020 Sven Sauleau 2 | 3 | Permission is hereby granted, free of charge, to any 4 | person obtaining a copy of this software and associated 5 | documentation files (the "Software"), to deal in the 6 | Software without restriction, including without 7 | limitation the rights to use, copy, modify, merge, 8 | publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software 10 | is furnished to do so, subject to the following 11 | conditions: 12 | 13 | The above copyright notice and this permission notice 14 | shall be included in all copies or substantial portions 15 | of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF 18 | ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 19 | TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 20 | PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 21 | SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 22 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 23 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 24 | IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 25 | DEALINGS IN THE SOFTWARE. 26 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86/p6/sse2/mul_1.asm: -------------------------------------------------------------------------------- 1 | dnl Intel P6/SSE2 mpn_mul_1. 2 | 3 | dnl Copyright 2008 Free Software Foundation, Inc. 4 | dnl 5 | dnl This file is part of the GNU MP Library. 6 | dnl 7 | dnl The GNU MP Library is free software; you can redistribute it and/or 8 | dnl modify it under the terms of the GNU Lesser General Public License as 9 | dnl published by the Free Software Foundation; either version 3 of the 10 | dnl License, or (at your option) any later version. 11 | dnl 12 | dnl The GNU MP Library is distributed in the hope that it will be useful, 13 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | dnl Lesser General Public License for more details. 16 | dnl 17 | dnl You should have received a copy of the GNU Lesser General Public License 18 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | include(`../config.m4') 21 | 22 | C TODO 23 | C * Write P6 specific SSE2 code. It should reach 3 c/l. 24 | C The Pentium4 code runs at 4.2 c/l. 25 | 26 | MULFUNC_PROLOGUE(mpn_mul_1) 27 | include_mpn(`x86/pentium4/sse2/mul_1.asm') 28 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/cray/popcount.c: -------------------------------------------------------------------------------- 1 | /* Cray mpn_popcount -- population count. 2 | 3 | Copyright 2000 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include 21 | #include "gmp.h" 22 | #include "gmp-impl.h" 23 | 24 | unsigned long int 25 | mpn_popcount (mp_srcptr p, mp_size_t n) 26 | { 27 | unsigned long int result = 0; 28 | mp_size_t i; 29 | for (i = 0; i < n; i++) 30 | result += _popcnt (p[i]); 31 | return result; 32 | } 33 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86/pentium4/mmx/lshift.asm: -------------------------------------------------------------------------------- 1 | dnl Intel Pentium-4 mpn_lshift -- left shift. 2 | 3 | dnl Copyright 2001, 2002 Free Software Foundation, Inc. 4 | dnl 5 | dnl This file is part of the GNU MP Library. 6 | dnl 7 | dnl The GNU MP Library is free software; you can redistribute it and/or 8 | dnl modify it under the terms of the GNU Lesser General Public License as 9 | dnl published by the Free Software Foundation; either version 3 of the 10 | dnl License, or (at your option) any later version. 11 | dnl 12 | dnl The GNU MP Library is distributed in the hope that it will be useful, 13 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | dnl Lesser General Public License for more details. 16 | dnl 17 | dnl You should have received a copy of the GNU Lesser General Public License 18 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | include(`../config.m4') 21 | 22 | 23 | C P4 Willamette, Northwood: 1.75 cycles/limb 24 | C P4 Prescott: 2.0 cycles/limb 25 | 26 | 27 | MULFUNC_PROLOGUE(mpn_lshift) 28 | include_mpn(`x86/pentium/mmx/lshift.asm') 29 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86/pentium4/mmx/rshift.asm: -------------------------------------------------------------------------------- 1 | dnl Intel Pentium-4 mpn_rshift -- right shift. 2 | 3 | dnl Copyright 2001, 2002 Free Software Foundation, Inc. 4 | dnl 5 | dnl This file is part of the GNU MP Library. 6 | dnl 7 | dnl The GNU MP Library is free software; you can redistribute it and/or 8 | dnl modify it under the terms of the GNU Lesser General Public License as 9 | dnl published by the Free Software Foundation; either version 3 of the 10 | dnl License, or (at your option) any later version. 11 | dnl 12 | dnl The GNU MP Library is distributed in the hope that it will be useful, 13 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | dnl Lesser General Public License for more details. 16 | dnl 17 | dnl You should have received a copy of the GNU Lesser General Public License 18 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | include(`../config.m4') 21 | 22 | 23 | C P4 Willamette, Northwood: 1.75 cycles/limb 24 | C P4 Prescott: 2.0 cycles/limb 25 | 26 | 27 | MULFUNC_PROLOGUE(mpn_rshift) 28 | include_mpn(`x86/pentium/mmx/rshift.asm') 29 | -------------------------------------------------------------------------------- /deps/gmp.js/tune/powm_redc.c: -------------------------------------------------------------------------------- 1 | /* mpz/powm.c forced to use REDC. */ 2 | 3 | /* 4 | Copyright 2000 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | #include "gmp.h" 22 | #include "gmp-impl.h" 23 | 24 | /* WANT_GLOBAL_REDC makes redc() available for speed and tune program use. */ 25 | #undef POWM_THRESHOLD 26 | #define POWM_THRESHOLD MP_SIZE_T_MAX 27 | #define WANT_REDC_GLOBAL 1 28 | #define __gmpz_powm mpz_powm_redc 29 | 30 | #include "../mpz/powm.c" 31 | -------------------------------------------------------------------------------- /deps/gmp.js/cxx/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | # Copyright 2001, 2002, 2003 Free Software Foundation, Inc. 4 | # 5 | # This file is part of the GNU MP Library. 6 | # 7 | # The GNU MP Library is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU Lesser General Public License as published by 9 | # the Free Software Foundation; either version 3 of the License, or (at your 10 | # option) any later version. 11 | # 12 | # The GNU MP Library is distributed in the hope that it will be useful, but 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | # License for more details. 16 | # 17 | # You should have received a copy of the GNU Lesser General Public License 18 | # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | 21 | INCLUDES = -D__GMP_WITHIN_GMPXX -I$(top_srcdir) 22 | 23 | if WANT_CXX 24 | noinst_LTLIBRARIES = libcxx.la 25 | endif 26 | 27 | libcxx_la_SOURCES = \ 28 | isfuns.cc ismpf.cc ismpq.cc ismpz.cc ismpznw.cc \ 29 | osdoprnti.cc osfuns.cc osmpf.cc osmpq.cc osmpz.cc 30 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mips64/umul.asm: -------------------------------------------------------------------------------- 1 | dnl MIPS64 umul_ppmm -- longlong.h support. 2 | 3 | dnl Copyright 2002 Free Software Foundation, Inc. 4 | 5 | dnl This file is part of the GNU MP Library. 6 | 7 | dnl The GNU MP Library is free software; you can redistribute it and/or modify 8 | dnl it under the terms of the GNU Lesser General Public License as published 9 | dnl by the Free Software Foundation; either version 3 of the License, or (at 10 | dnl your option) any later version. 11 | 12 | dnl The GNU MP Library is distributed in the hope that it will be useful, but 13 | dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | dnl License for more details. 16 | 17 | dnl You should have received a copy of the GNU Lesser General Public License 18 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | include(`../config.m4') 21 | 22 | C INPUT PARAMETERS 23 | C plp $4 24 | C u $5 25 | C v $6 26 | 27 | ASM_START() 28 | PROLOGUE(mpn_umul_ppmm) 29 | dmultu $5,$6 30 | mflo $3 31 | mfhi $2 32 | j $31 33 | sd $3,0($4) 34 | EPILOGUE(mpn_umul_ppmm) 35 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/powerpc32/vmx/popcount.asm: -------------------------------------------------------------------------------- 1 | dnl PowerPC-32/VMX mpn_popcount. 2 | 3 | dnl Copyright 2006 Free Software Foundation, Inc. 4 | 5 | dnl This file is part of the GNU MP Library. 6 | 7 | dnl The GNU MP Library is free software; you can redistribute it and/or modify 8 | dnl it under the terms of the GNU Lesser General Public License as published 9 | dnl by the Free Software Foundation; either version 3 of the License, or (at 10 | dnl your option) any later version. 11 | 12 | dnl The GNU MP Library is distributed in the hope that it will be useful, but 13 | dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | dnl License for more details. 16 | 17 | dnl You should have received a copy of the GNU Lesser General Public License 18 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | include(`../config.m4') 21 | 22 | MULFUNC_PROLOGUE(mpn_popcount) 23 | include_mpn(`powerpc64/vmx/popcount.asm') 24 | 25 | C cycles/limb 26 | C 7400,7410 (G4): 2.75 27 | C 744x,745x (G4+): 2.25 28 | C 970 (G5): 5.3 29 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/mips32/umul.asm: -------------------------------------------------------------------------------- 1 | dnl MIPS32 umul_ppmm -- longlong.h support. 2 | 3 | dnl Copyright 1999, 2002 Free Software Foundation, Inc. 4 | 5 | dnl This file is part of the GNU MP Library. 6 | 7 | dnl The GNU MP Library is free software; you can redistribute it and/or modify 8 | dnl it under the terms of the GNU Lesser General Public License as published 9 | dnl by the Free Software Foundation; either version 3 of the License, or (at 10 | dnl your option) any later version. 11 | 12 | dnl The GNU MP Library is distributed in the hope that it will be useful, but 13 | dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | dnl License for more details. 16 | 17 | dnl You should have received a copy of the GNU Lesser General Public License 18 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | include(`../config.m4') 21 | 22 | C INPUT PARAMETERS 23 | C plp $4 24 | C u $5 25 | C v $6 26 | 27 | ASM_START() 28 | PROLOGUE(mpn_umul_ppmm) 29 | multu $5,$6 30 | mflo $3 31 | mfhi $2 32 | j $31 33 | sw $3,0($4) 34 | EPILOGUE(mpn_umul_ppmm) 35 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86/p6/mmx/lshift.asm: -------------------------------------------------------------------------------- 1 | dnl Intel Pentium-II mpn_lshift -- mpn left shift. 2 | 3 | dnl Copyright 2001 Free Software Foundation, Inc. 4 | dnl 5 | dnl This file is part of the GNU MP Library. 6 | dnl 7 | dnl The GNU MP Library is free software; you can redistribute it and/or 8 | dnl modify it under the terms of the GNU Lesser General Public License as 9 | dnl published by the Free Software Foundation; either version 3 of the 10 | dnl License, or (at your option) any later version. 11 | dnl 12 | dnl The GNU MP Library is distributed in the hope that it will be useful, 13 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | dnl Lesser General Public License for more details. 16 | dnl 17 | dnl You should have received a copy of the GNU Lesser General Public License 18 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | 21 | dnl The P55 code runs well on P-II/III, but could stand some minor tweaks 22 | dnl at some stage probably. 23 | 24 | include(`../config.m4') 25 | 26 | MULFUNC_PROLOGUE(mpn_lshift) 27 | include_mpn(`x86/pentium/mmx/lshift.asm') 28 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86/p6/mmx/rshift.asm: -------------------------------------------------------------------------------- 1 | dnl Intel Pentium-II mpn_rshift -- mpn left shift. 2 | 3 | dnl Copyright 2001 Free Software Foundation, Inc. 4 | dnl 5 | dnl This file is part of the GNU MP Library. 6 | dnl 7 | dnl The GNU MP Library is free software; you can redistribute it and/or 8 | dnl modify it under the terms of the GNU Lesser General Public License as 9 | dnl published by the Free Software Foundation; either version 3 of the 10 | dnl License, or (at your option) any later version. 11 | dnl 12 | dnl The GNU MP Library is distributed in the hope that it will be useful, 13 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | dnl Lesser General Public License for more details. 16 | dnl 17 | dnl You should have received a copy of the GNU Lesser General Public License 18 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 19 | 20 | 21 | dnl The P55 code runs well on P-II/III, but could stand some minor tweaks 22 | dnl at some stage probably. 23 | 24 | include(`../config.m4') 25 | 26 | MULFUNC_PROLOGUE(mpn_rshift) 27 | include_mpn(`x86/pentium/mmx/rshift.asm') 28 | -------------------------------------------------------------------------------- /deps/gmp.js/mpq/clear.c: -------------------------------------------------------------------------------- 1 | /* mpq_clear -- free the space occupied by a MP_RAT. 2 | 3 | Copyright 1991, 1994, 1995, 2000, 2001 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | void 24 | mpq_clear (MP_RAT *m) 25 | { 26 | (*__gmp_free_func) (m->_mp_num._mp_d, 27 | m->_mp_num._mp_alloc * BYTES_PER_MP_LIMB); 28 | (*__gmp_free_func) (m->_mp_den._mp_d, 29 | m->_mp_den._mp_alloc * BYTES_PER_MP_LIMB); 30 | } 31 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/get_d.c: -------------------------------------------------------------------------------- 1 | /* double mpz_get_d (mpz_t src) -- Return the double approximation to SRC. 2 | 3 | Copyright 1996, 1997, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | double 24 | mpz_get_d (mpz_srcptr z) 25 | { 26 | mp_size_t size; 27 | 28 | size = SIZ (z); 29 | if (UNLIKELY (size == 0)) 30 | return 0.0; 31 | 32 | return mpn_get_d (PTR (z), ABS (size), size, 0L); 33 | } 34 | -------------------------------------------------------------------------------- /deps/gmp.js/mpf/set_prc_raw.c: -------------------------------------------------------------------------------- 1 | /* mpf_set_prec_raw(x,bits) -- Change the precision of x without changing 2 | allocation. For proper operation, the original precision need to be reset 3 | sooner or later. 4 | 5 | Copyright 1996, 2001 Free Software Foundation, Inc. 6 | 7 | This file is part of the GNU MP Library. 8 | 9 | The GNU MP Library is free software; you can redistribute it and/or modify 10 | it under the terms of the GNU Lesser General Public License as published by 11 | the Free Software Foundation; either version 3 of the License, or (at your 12 | option) any later version. 13 | 14 | The GNU MP Library is distributed in the hope that it will be useful, but 15 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 17 | License for more details. 18 | 19 | You should have received a copy of the GNU Lesser General Public License 20 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 21 | 22 | #include "gmp.h" 23 | #include "gmp-impl.h" 24 | 25 | void 26 | mpf_set_prec_raw (mpf_ptr x, mp_bitcnt_t prec_in_bits) 27 | { 28 | x->_mp_prec = __GMPF_BITS_TO_PREC (prec_in_bits); 29 | } 30 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/cray/hamdist.c: -------------------------------------------------------------------------------- 1 | /* Cray mpn_hamdist -- hamming distance count. 2 | 3 | Copyright 2000 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include 21 | #include "gmp.h" 22 | #include "gmp-impl.h" 23 | 24 | unsigned long int 25 | mpn_hamdist (mp_srcptr p1, mp_srcptr p2, mp_size_t n) 26 | { 27 | unsigned long int result = 0; 28 | mp_size_t i; 29 | for (i = 0; i < n; i++) 30 | result += _popcnt (p1[i] ^ p2[i]); 31 | return result; 32 | } 33 | -------------------------------------------------------------------------------- /deps/gmp.js/mpn/x86_64/darwin.m4: -------------------------------------------------------------------------------- 1 | divert(-1) 2 | dnl Copyright 2008 Free Software Foundation, Inc. 3 | dnl 4 | dnl This file is part of the GNU MP Library. 5 | dnl 6 | dnl The GNU MP Library is free software; you can redistribute it and/or 7 | dnl modify it under the terms of the GNU Lesser General Public License as 8 | dnl published by the Free Software Foundation; either version 3 of the 9 | dnl License, or (at your option) any later version. 10 | dnl 11 | dnl The GNU MP Library is distributed in the hope that it will be useful, 12 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | dnl Lesser General Public License for more details. 15 | dnl 16 | dnl You should have received a copy of the GNU Lesser General Public License 17 | dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 18 | 19 | define(`DARWIN') 20 | 21 | define(`LEA',` 22 | lea $1(%rip), $2 23 | ') 24 | 25 | dnl Usage: CALL(funcname) 26 | dnl 27 | dnl Simply override the definition in x86_64-defs.m4. 28 | 29 | define(`CALL',`call GSYM_PREFIX`'$1') 30 | 31 | 32 | define(`JUMPTABSECT', `DATA') 33 | 34 | divert`'dnl 35 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/tests/cobol85/SM.txt: -------------------------------------------------------------------------------- 1 | Filename total pass fail deleted inspect 2 | -------- ----- ---- ---- ------- ------- 3 | SM101A.CBL 8 8 0 0 0 OK 4 | SM102A.SUB 4 4 0 0 0 OK 5 | SM103A.CBL 6 6 0 0 0 OK 6 | SM104A.SUB 7 7 0 0 0 OK 7 | SM105A.CBL 9 9 0 0 0 OK 8 | SM106A.CBL 1 0 0 0 1 OK 9 | SM107A.CBL 200 200 0 0 0 OK 10 | SM201A.CBL 11 11 0 0 0 OK 11 | SM202A.SUB 7 7 0 0 0 OK 12 | SM203A.CBL 1 1 0 0 0 OK 13 | SM204A.SUB 4 4 0 0 0 OK 14 | SM205A.CBL 9 9 0 0 0 OK 15 | SM206A.CBL 16 14 0 2 0 OK 16 | SM207A.CBL 2 2 0 0 0 OK 17 | SM208A.CBL 9 9 0 0 0 OK 18 | SM301M.CBL 0 0 0 0 0 OK 19 | SM401M.CBL 0 0 0 0 0 OK 20 | -------- ----- ---- ---- ------- ------- 21 | Total 294 291 0 2 1 22 | 23 | Number of programs: 17 24 | Successfully executed: 17 25 | Compile error: 0 26 | Execute error: 0 27 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/divis.c: -------------------------------------------------------------------------------- 1 | /* mpz_divisible_p -- mpz by mpz divisibility test 2 | 3 | Copyright 2001, 2002 Free Software Foundation, Inc. 4 | 5 | This file is part of the GNU MP Library. 6 | 7 | The GNU MP Library is free software; you can redistribute it and/or modify 8 | it under the terms of the GNU Lesser General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or (at your 10 | option) any later version. 11 | 12 | The GNU MP Library is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU Lesser General Public License 18 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 19 | 20 | #include "gmp.h" 21 | #include "gmp-impl.h" 22 | 23 | int 24 | mpz_divisible_p (mpz_srcptr a, mpz_srcptr d) 25 | { 26 | mp_size_t dsize = SIZ(d); 27 | mp_size_t asize = SIZ(a); 28 | 29 | if (UNLIKELY (dsize == 0)) 30 | return (asize == 0); 31 | 32 | return mpn_divisible_p (PTR(a), ABS(asize), PTR(d), ABS(dsize)); 33 | } 34 | -------------------------------------------------------------------------------- /deps/gmp.js/mpz/iset_d.c: -------------------------------------------------------------------------------- 1 | /* mpz_init_set_d(integer, val) -- Initialize and assign INTEGER with a double 2 | value VAL. 3 | 4 | Copyright 1996, 2000, 2001 Free Software Foundation, Inc. 5 | 6 | This file is part of the GNU MP Library. 7 | 8 | The GNU MP Library is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU Lesser General Public License as published by 10 | the Free Software Foundation; either version 3 of the License, or (at your 11 | option) any later version. 12 | 13 | The GNU MP Library is distributed in the hope that it will be useful, but 14 | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 16 | License for more details. 17 | 18 | You should have received a copy of the GNU Lesser General Public License 19 | along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ 20 | 21 | #include "gmp.h" 22 | #include "gmp-impl.h" 23 | 24 | void 25 | mpz_init_set_d (mpz_ptr dest, double val) 26 | { 27 | dest->_mp_alloc = 1; 28 | dest->_mp_d = (mp_ptr) (*__gmp_allocate_func) (BYTES_PER_MP_LIMB); 29 | dest->_mp_size = 0; 30 | mpz_set_d (dest, val); 31 | } 32 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/po/update_linguas.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # shell for updating the translations before a release 3 | 4 | # Let this be executed in the po/ subdir. 5 | cd "$(dirname "$0")" || exit 6 | 7 | echo "Updating translations via TP" 8 | rsync -Lrtvz translationproject.org::tp/latest/gnucobol/ . # || exit 9 | 10 | # Are there now PO files that are not in svn yet? 11 | NEWSTUFF=$(svn status | grep "^\? .*.po$" | sed -e's/\? *//') 12 | 13 | if [ -n "${NEWSTUFF}" ]; then 14 | echo; echo "New languages found; updating LINGUAS ..." 15 | echo "# List of available languages." >LINGUAS 16 | echo "en@boldquot en@quot" $(printf '%s\n' *.po | LC_ALL=C sort | sed 's/\.po//g') >>LINGUAS 17 | echo "... and adding new files to svn:" 18 | for file in "${NEWSTUFF}"; do svn add $file; done 19 | fi 20 | 21 | echo; echo "Regenerating POT file and remerging and recompiling PO files..." 22 | 23 | if test -f Makefile; then 24 | make update-po 25 | 26 | # Ensure that the PO files are newer than the POT. 27 | touch *.po 28 | 29 | # Compile PO files 30 | make 31 | 32 | else 33 | 34 | echo; echo "WARNING: no Makefile available!" 35 | echo "remerge and compilation of PO files isn't done yet" 36 | echo; 37 | fi 38 | -------------------------------------------------------------------------------- /deps/gnucobol-2.2/tests/cobol85/summary.txt: -------------------------------------------------------------------------------- 1 | ------ Directory Information ------- --- Total Tests Information --- 2 | Module Programs Executed Error Crash Pass Fail Deleted Inspect Total 3 | ------ -------- -------- ----- ----- ----- ---- ------- ------- ----- 4 | NC 95 95 0 0 4393 0 4 1 4398 5 | SM 17 17 0 0 291 0 2 1 294 6 | IC 25 25 0 0 246 0 4 0 250 7 | SQ 85 85 0 0 518 0 0 89 607 8 | RL 35 35 0 0 1827 0 5 0 1832 9 | ST 40 40 0 0 288 0 0 0 288 10 | SG 13 13 0 0 310 0 0 0 310 11 | OB 7 7 0 0 39 0 0 0 39 12 | IF 45 45 0 0 733 0 0 0 733 13 | DB 16 16 0 0 418 0 4 27 449 14 | IX 42 42 0 0 507 0 1 0 508 15 | ------ -------- -------- ----- ----- ----- ---- ------- ------- ----- 16 | Total 420 420 0 0 9570 0 20 118 9708 17 | --------------------------------------------------------------------------------