iw4x-client/deps/libtommath
2024-07-29 00:23:23 -04:00
..
.github/workflows maint: update deps 2024-07-29 00:23:23 -04:00
demo maint: update deps 2024-07-29 00:23:23 -04:00
doc maint: update deps 2024-07-29 00:23:23 -04:00
etc maint: update deps 2024-07-29 00:23:23 -04:00
logs Add dependencies locally 2024-03-07 05:13:50 -05:00
modulemap Add dependencies locally 2024-03-07 05:13:50 -05:00
.gitattributes Add dependencies locally 2024-03-07 05:13:50 -05:00
.gitignore maint: update deps 2024-07-29 00:23:23 -04:00
appveyor.yml maint: update deps 2024-07-29 00:23:23 -04:00
astylerc Add dependencies locally 2024-03-07 05:13:50 -05:00
changes.txt maint: update deps 2024-07-29 00:23:23 -04:00
CMakeLists.txt maint: update deps 2024-07-29 00:23:23 -04:00
helper.pl maint: update deps 2024-07-29 00:23:23 -04:00
libtommath_VS2008.sln Add dependencies locally 2024-03-07 05:13:50 -05:00
libtommath_VS2008.vcproj maint: update deps 2024-07-29 00:23:23 -04:00
libtommath.pc.in Add dependencies locally 2024-03-07 05:13:50 -05:00
LICENSE Add dependencies locally 2024-03-07 05:13:50 -05:00
makefile maint: update deps 2024-07-29 00:23:23 -04:00
makefile_include.mk maint: update deps 2024-07-29 00:23:23 -04:00
makefile.mingw maint: update deps 2024-07-29 00:23:23 -04:00
makefile.msvc maint: update deps 2024-07-29 00:23:23 -04:00
makefile.shared maint: update deps 2024-07-29 00:23:23 -04:00
makefile.unix maint: update deps 2024-07-29 00:23:23 -04:00
mp_2expt.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_abs.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_add_d.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_add.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_addmod.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_and.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_clamp.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_clear_multi.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_clear.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_cmp_d.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_cmp_mag.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_cmp.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_cnt_lsb.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_complement.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_copy.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_count_bits.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_cutoffs.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_div_2.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_div_2d.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_div_d.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_div.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_dr_is_modulus.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_dr_reduce.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_dr_setup.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_error_to_string.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_exch.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_expt_n.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_exptmod.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_exteuclid.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_fread.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_from_sbin.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_from_ubin.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_fwrite.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_gcd.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_get_double.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_get_i32.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_get_i64.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_get_l.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_get_mag_u32.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_get_mag_u64.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_get_mag_ul.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_grow.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_hash.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_init_copy.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_init_i32.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_init_i64.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_init_l.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_init_multi.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_init_set.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_init_size.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_init_u32.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_init_u64.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_init_ul.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_init.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_invmod.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_is_square.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_kronecker.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_lcm.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_log_n.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_log.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_lshd.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_mod_2d.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_mod.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_montgomery_calc_normalization.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_montgomery_reduce.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_montgomery_setup.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_mul_2.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_mul_2d.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_mul_d.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_mul.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_mulmod.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_neg.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_or.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_pack_count.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_pack.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_prime_fermat.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_prime_frobenius_underwood.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_prime_is_prime.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_prime_miller_rabin.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_prime_next_prime.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_prime_rabin_miller_trials.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_prime_rand.c maint: update deps 2024-07-29 00:23:23 -04:00
mp_prime_strong_lucas_selfridge.c maint: update deps 2024-07-29 00:23:23 -04:00
mp_radix_size_overestimate.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_radix_size.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_rand_source.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_rand.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_read_radix.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_reduce_2k_l.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_reduce_2k_setup_l.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_reduce_2k_setup.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_reduce_2k.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_reduce_is_2k_l.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_reduce_is_2k.c maint: update deps 2024-07-29 00:23:23 -04:00
mp_reduce_setup.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_reduce.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_root_n.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_rshd.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_sbin_size.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_set_double.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_set_i32.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_set_i64.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_set_l.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_set_u32.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_set_u64.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_set_ul.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_set.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_shrink.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_signed_rsh.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_sqrmod.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_sqrt.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_sqrtmod_prime.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_sub_d.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_sub.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_submod.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_to_radix.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_to_sbin.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_to_ubin.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_ubin_size.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_unpack.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_warray_free.c maint: update deps 2024-07-29 00:23:23 -04:00
mp_xor.c Add dependencies locally 2024-03-07 05:13:50 -05:00
mp_zero.c Add dependencies locally 2024-03-07 05:13:50 -05:00
Package.swift Add dependencies locally 2024-03-07 05:13:50 -05:00
README.md maint: update deps 2024-07-29 00:23:23 -04:00
s_mp_add.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_copy_digs.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_div_3.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_div_recursive.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_div_school.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_div_small.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_exptmod_fast.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_exptmod.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_fp_log_d.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_fp_log.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_get_bit.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_invmod_odd.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_invmod.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_log_2expt.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_montgomery_reduce_comba.c maint: update deps 2024-07-29 00:23:23 -04:00
s_mp_mul_balance.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_mul_comba.c maint: update deps 2024-07-29 00:23:23 -04:00
s_mp_mul_high_comba.c maint: update deps 2024-07-29 00:23:23 -04:00
s_mp_mul_high.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_mul_karatsuba.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_mul_toom.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_mul.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_prime_is_divisible.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_prime_tab.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_radix_map.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_radix_size_overestimate.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_rand_platform.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_sqr_comba.c maint: update deps 2024-07-29 00:23:23 -04:00
s_mp_sqr_karatsuba.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_sqr_toom.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_sqr.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_sub.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_warray_get.c maint: update deps 2024-07-29 00:23:23 -04:00
s_mp_warray_put.c maint: update deps 2024-07-29 00:23:23 -04:00
s_mp_warray.c maint: update deps 2024-07-29 00:23:23 -04:00
s_mp_zero_buf.c Add dependencies locally 2024-03-07 05:13:50 -05:00
s_mp_zero_digs.c Add dependencies locally 2024-03-07 05:13:50 -05:00
sources.cmake maint: update deps 2024-07-29 00:23:23 -04:00
testme.sh maint: update deps 2024-07-29 00:23:23 -04:00
tommath_c89.h maint: update deps 2024-07-29 00:23:23 -04:00
tommath_class.h maint: update deps 2024-07-29 00:23:23 -04:00
tommath_cutoffs.h Add dependencies locally 2024-03-07 05:13:50 -05:00
tommath_private.h maint: update deps 2024-07-29 00:23:23 -04:00
tommath_superclass.h maint: update deps 2024-07-29 00:23:23 -04:00
tommath.def maint: update deps 2024-07-29 00:23:23 -04:00
tommath.h maint: update deps 2024-07-29 00:23:23 -04:00

libtommath

This is the git repository for LibTomMath, a free open source portable number theoretic multiple-precision integer (MPI) library written entirely in C.

Build Status

Travis CI

master: Build Status

develop: Build Status

AppVeyor

master: Build status

develop: Build status

ABI Laboratory

API/ABI changes: check here

Pre-built packages

We sometimes upload deb packages of the latest state from the develop branch to packagecloud.io.

Use those packages with caution and at your own discretion.

Summary

The develop branch contains the in-development version. Stable releases are tagged.

Documentation is built from the LaTeX file doc/bn.tex and available as PDF for each release. This PDF is also created as build artifact on each CI run.

There is also limited documentation in tommath.h.

Originally the library contained a document, tommath.pdf, which describes the goals of the project and many of the algorithms used at the time. This document has been removed since it can't be built anymore and nobody spent the time to fix and update it. The latest valid update to that document was done in version 0.39 of the library and it is contained within that tarball.

The project can be build by using make. Along with the usual make, make clean and make install, there are several other build targets, see the makefile for details. There are also makefiles for certain specific platforms.

Testing

Tests are located in demo/ and can be built in two flavors.

  • make test creates a stand-alone test binary that executes several test routines.
  • make mtest_opponent creates a test binary that is intended to be run against mtest. mtest can be built with make mtest and test execution is done like ./mtest/mtest | ./mtest_opponent. mtest is creating test vectors using an alternative MPI library and test is consuming these vectors to verify correct behavior of ltm

Building and Installing

Building is straightforward for GNU Linux only, the section "Building LibTomMath" in the documentation in doc/bn.pdf has the details.

CMake support

The project provides support for the CMake build system.

git clone https://github.com/libtom/libtommath.git
mkdir -p libtommath/build
cd libtommath/build
cmake ..
make -j$(nproc)

A shared library build can be done by setting -DBUILD_SHARED_LIBS=On when invoking the cmake command.