descriptionPublic domain multiple precision integer library
homepage URLhttp://www.libtom.net/LibTomMath/
repository URLhttps://github.com/libtom/libtommath.git
ownermackyle@fastmail.com
last changeThu, 11 Apr 2024 13:54:14 +0000 (11 15:54 +0200)
last refreshFri, 17 May 2024 01:01:33 +0000 (17 03:01 +0200)
content tags
add:
README.md

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.

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.

shortlog
2024-04-11 Steffen JaeckelMerge pull request #578 from PX4/fix_mp_prime_strong_lu... develop
2024-04-08 Jukka LaitinenFix compilation of mp_prime_strong_lucas_selfridge
2024-04-07 Steffen JaeckelMerge pull request #577 from diizzyy/patch-1
2024-04-05 Daniel Engbergcmake: Remove unnecessary ccache logic
2024-04-04 Steffen JaeckelMerge pull request #538 from libtom/small-stacksize
2024-04-03 Steffen JaeckelDisable MP_SMALL_STACK_SIZE on MSVC
2024-04-03 Steffen JaeckelRun small-stack tests with valgrind
2024-03-29 Steffen JaeckelUse appveyor build matrix
2024-03-29 Steffen Jaeckelregen
2024-03-29 Steffen JaeckelUse Thread Local Storage for `warray` buffer
2024-03-27 Steffen JaeckelUpdate makefiles
2024-03-27 Steffen JaeckelAdd tests for MSVC multi-threading
2024-03-27 Steffen JaeckelAdd multi-threaded tests
2024-03-27 Steffen JaeckelAdd `s_mp_cmpexch_n()`
2024-03-27 Steffen JaeckelReplace locking by atomic operations
2024-03-27 Steffen Jaeckeladd `MP_SMALL_STACK_SIZE` option
...
tags
4 weeks ago v1.3.1-rc1 v1.3.1-rc1
7 weeks ago v1.3.0 v1.3.0
8 weeks ago v1.3.0-rc1 v1.3.0-rc1
8 months ago v1.2.1 v1.2.1
4 years ago v1.2.0 v1.2.0
4 years ago v1.2.0-rc3 v1.2.0-rc3
4 years ago v1.2.0-rc2 v1.2.0-rc2
4 years ago v1.2.0-rc1 v1.2.0-rc1
5 years ago v1.1.0 v1.1.0
5 years ago v1.1.0-rc5 v1.1.0-rc5
5 years ago v1.1.0-rc4 v1.1.0-rc4
5 years ago v1.1.0-rc3 v1.1.0-rc3
5 years ago v1.1.0-rc2 v1.1.0-rc2
5 years ago v1.1.0-rc1 v1.1.0-rc1
6 years ago v1.0.1 v1.0.1
6 years ago v1.0.1-rc2 Release Candidate 2 of v1.0.1
...
heads
4 weeks ago release/1.3.1
5 weeks ago develop
7 weeks ago master
2 years ago funny-latexindent
4 years ago backport-pr-444
4 years ago tcl-compat
4 years ago ver-2.0-update
4 years ago support/1.x
4 years ago remove-warray
4 years ago rework-comba
4 years ago optional-deps
4 years ago log10
4 years ago no-stdint-h-v1.1.0
5 years ago travis/windows
5 years ago rework/pr/160
5 years ago withfloats
...