Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Comment: | Libtommath 1.3.1 (currently still in rc1) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | libtommath-1.3.1 |
Files: | files | file ages | folders |
SHA3-256: |
38e6d34798cf1a3df3bb7e9c4548a077 |
User & Date: | jan.nijtmans 2024-04-17 15:27:13 |
2024-04-17
| ||
19:31 | Re-build win64 libtommath binaries check-in: 42d90bf5a5 user: jan.nijtmans tags: libtommath-1.3.1 | |
15:27 | Libtommath 1.3.1 (currently still in rc1) check-in: 38e6d34798 user: jan.nijtmans tags: libtommath-1.3.1 | |
15:13 | cherrypick [b73516f7cfccbc9f] to 8.7 - closes [167e0635db]: solves leaks, valgrind test, etc check-in: 62f9f8b56b user: sebres tags: core-8-branch | |
Changes to libtommath/CMakeLists.txt.
1 2 3 4 5 6 7 8 9 | # SPDX-License-Identifier: Unlicense # # LibTomMath, a free open source portable number theoretic multiple-precision # integer (MPI) library written entirely in C. # cmake_minimum_required(VERSION 3.10) project(libtommath | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # SPDX-License-Identifier: Unlicense # # LibTomMath, a free open source portable number theoretic multiple-precision # integer (MPI) library written entirely in C. # cmake_minimum_required(VERSION 3.10) project(libtommath VERSION 1.3.1 DESCRIPTION "A free open source portable number theoretic multiple-precision integer (MPI) library written entirely in C." HOMEPAGE_URL "https://www.libtom.net/LibTomMath" LANGUAGES C) # package release version # bump if re-releasing the same VERSION + patches # set to 1 if releasing a new VERSION |
︙ | ︙ | |||
29 30 31 32 33 34 35 | include(sources.cmake) #----------------------------------------------------------------------------- # Options #----------------------------------------------------------------------------- option(BUILD_SHARED_LIBS "Build shared library and only the shared library if \"ON\", default is static" OFF) | < < < < < | < < | < < < | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | include(sources.cmake) #----------------------------------------------------------------------------- # Options #----------------------------------------------------------------------------- option(BUILD_SHARED_LIBS "Build shared library and only the shared library if \"ON\", default is static" OFF) if(ENABLE_CCACHE) message(DEPRECATION "The 'ENABLE_CCACHE' option is deprecated and is a NOOP now. It will be removed in the next major version") endif() #----------------------------------------------------------------------------- # Compose CFLAGS #----------------------------------------------------------------------------- # Some information ported from makefile_include.mk |
︙ | ︙ |
Changes to libtommath/appveyor.yml.
|
| | | 1 2 3 4 5 6 7 8 | version: 1.3.1-{build} branches: only: - master - develop - /^release/ - /^travis/ image: |
︙ | ︙ |
Changes to libtommath/bn_mp_set_double.c.
1 2 3 4 5 | #include "tommath_private.h" #ifdef BN_MP_SET_DOUBLE_C /* LibTomMath, multiple-precision integer library -- Tom St Denis */ /* SPDX-License-Identifier: Unlicense */ | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 | #include "tommath_private.h" #ifdef BN_MP_SET_DOUBLE_C /* LibTomMath, multiple-precision integer library -- Tom St Denis */ /* SPDX-License-Identifier: Unlicense */ #if defined(MP_HAS_SET_DOUBLE) mp_err mp_set_double(mp_int *a, double b) { uint64_t frac; int exp; mp_err err; union { double dbl; |
︙ | ︙ |
Changes to libtommath/changes.txt.
1 2 3 4 5 6 7 | Mar 27th, 2024 v1.3.0 -- Deprecate more APIs which are replaced in develop (PR #572) -- Add support for CMake (PR #573) -- Add support for GitHub Actions (PR #573) Sep 04th, 2023 | > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 | Apr 16th, 2024 v1.3.1 -- Backport #476 -- Deprecate (& remove) `ENABLE_CCACHE` Option for CMake (c.f. #577) Mar 27th, 2024 v1.3.0 -- Deprecate more APIs which are replaced in develop (PR #572) -- Add support for CMake (PR #573) -- Add support for GitHub Actions (PR #573) Sep 04th, 2023 |
︙ | ︙ | |||
419 420 421 422 423 424 425 | to other functions like mp_invmod, mp_div, etc... -- Sped up mp_exptmod_fast by using new code to find R mod m [e.g. B^n mod m] -- minor fixes Jan 17th, 2003 v0.12 -- re-wrote the majority of the makefile so its more portable and will install via "make install" on most *nix platforms | | | 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 | to other functions like mp_invmod, mp_div, etc... -- Sped up mp_exptmod_fast by using new code to find R mod m [e.g. B^n mod m] -- minor fixes Jan 17th, 2003 v0.12 -- re-wrote the majority of the makefile so its more portable and will install via "make install" on most *nix platforms -- Re-packaged all the source as seperate files. Means the library a single file packagage any more. Instead of just adding "bn.c" you have to add libtommath.a -- Renamed "bn.h" to "tommath.h" -- Changes to the manual to reflect all of this -- Used GNU Indent to clean up the source Jan 15th, 2003 |
︙ | ︙ |
Changes to libtommath/makefile.mingw.
︙ | ︙ | |||
13 14 15 16 17 18 19 | PREFIX = c:\mingw CC = i686-w64-mingw32-gcc #CC = x86_64-w64-mingw32-clang #CC = aarch64-w64-mingw32-clang AR = ar ARFLAGS = r RANLIB = ranlib | | | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | PREFIX = c:\mingw CC = i686-w64-mingw32-gcc #CC = x86_64-w64-mingw32-clang #CC = aarch64-w64-mingw32-clang AR = ar ARFLAGS = r RANLIB = ranlib STRIP = strip #STRIP = x86_64-w64-mingw32-strip #STRIP = aarch64-w64-mingw32-strip CFLAGS = -O2 LDFLAGS = #Compilation flags LTM_CFLAGS = -I. $(CFLAGS) -DTCL_WITH_EXTERNAL_TOMMATH |
︙ | ︙ |
Changes to libtommath/makefile_include.mk.
1 2 3 4 5 | # # Include makefile for libtommath # #version of library | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # # Include makefile for libtommath # #version of library VERSION=1.3.1 VERSION_PC=1.3.1 VERSION_SO=4:1:3 PLATFORM := $(shell uname | sed -e 's/_.*//') # default make target default: ${LIBNAME} # Compiler and Linker Names |
︙ | ︙ |
Changes to libtommath/tommath.def.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ; libtommath ; ; Use this command to produce a 32-bit .lib file, for use in any MSVC version ; lib -machine:X86 -name:libtommath.dll -def:tommath.def -out:tommath.lib ; Use this command to produce a 64-bit .lib file, for use in any MSVC version ; lib -machine:X64 -name:libtommath.dll -def:tommath.def -out:tommath.lib ; EXPORTS mp_2expt mp_abs mp_add mp_add_d mp_addmod | > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ; libtommath ; ; Use this command to produce a 32-bit .lib file, for use in any MSVC version ; lib -machine:X86 -name:libtommath.dll -def:tommath.def -out:tommath.lib ; Use this command to produce a 64-bit .lib file, for use in any MSVC version ; lib -machine:X64 -name:libtommath.dll -def:tommath.def -out:tommath.lib ; Use this command to produce a 64-bit arm .lib file, for use in any MSVC version ; lib -machine:ARM64 -name:libtommath.dll -def:tommath.def -out:tommath.lib ; EXPORTS mp_2expt mp_abs mp_add mp_add_d mp_addmod |
︙ | ︙ |
Changes to libtommath/tommath_private.h.
︙ | ︙ | |||
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 | # define MP_PREC PRIVATE_MP_PREC #endif /* Minimum number of available digits in mp_int, MP_PREC >= MP_MIN_PREC */ #define MP_MIN_PREC ((((int)MP_SIZEOF_BITS(uintmax_t) + MP_DIGIT_BIT) - 1) / MP_DIGIT_BIT) MP_STATIC_ASSERT(prec_geq_min_prec, MP_PREC >= MP_MIN_PREC) /* random number source */ extern MP_PRIVATE mp_err(*s_mp_rand_source)(void *out, size_t size); #ifdef __cplusplus extern "C" { #endif /* lowlevel functions, do not call! */ MP_PRIVATE mp_bool s_mp_get_bit(const mp_int *a, unsigned int b); MP_PRIVATE int s_mp_log_2expt(const mp_int *a, mp_digit base) MP_WUR; MP_PRIVATE int s_mp_log_d(mp_digit base, mp_digit n) MP_WUR; MP_PRIVATE mp_err s_mp_add(const mp_int *a, const mp_int *b, mp_int *c) MP_WUR; MP_PRIVATE mp_err s_mp_sub(const mp_int *a, const mp_int *b, mp_int *c) MP_WUR; MP_PRIVATE mp_err s_mp_mul_digs_fast(const mp_int *a, const mp_int *b, mp_int *c, int digs) MP_WUR; MP_PRIVATE mp_err s_mp_mul_digs(const mp_int *a, const mp_int *b, mp_int *c, int digs) MP_WUR; MP_PRIVATE mp_err s_mp_mul_high_digs_fast(const mp_int *a, const mp_int *b, mp_int *c, int digs) MP_WUR; MP_PRIVATE mp_err s_mp_mul_high_digs(const mp_int *a, const mp_int *b, mp_int *c, int digs) MP_WUR; MP_PRIVATE mp_err s_mp_sqr_fast(const mp_int *a, mp_int *b) MP_WUR; MP_PRIVATE mp_err s_mp_sqr(const mp_int *a, mp_int *b) MP_WUR; MP_PRIVATE mp_err s_mp_balance_mul(const mp_int *a, const mp_int *b, mp_int *c) MP_WUR; | > > > > > > > > | 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | # define MP_PREC PRIVATE_MP_PREC #endif /* Minimum number of available digits in mp_int, MP_PREC >= MP_MIN_PREC */ #define MP_MIN_PREC ((((int)MP_SIZEOF_BITS(uintmax_t) + MP_DIGIT_BIT) - 1) / MP_DIGIT_BIT) MP_STATIC_ASSERT(prec_geq_min_prec, MP_PREC >= MP_MIN_PREC) #if defined(__STDC_IEC_559__) || defined(__GCC_IEC_559) \ || defined(__x86_64__) || defined(_M_X64) || defined(_M_AMD64) \ || defined(__i386__) || defined(_M_X86) \ || defined(__aarch64__) || defined(__arm__) #define MP_HAS_SET_DOUBLE #endif /* random number source */ extern MP_PRIVATE mp_err(*s_mp_rand_source)(void *out, size_t size); #ifdef __cplusplus extern "C" { #endif /* lowlevel functions, do not call! */ MP_PRIVATE mp_bool s_mp_get_bit(const mp_int *a, unsigned int b); MP_PRIVATE int s_mp_log_2expt(const mp_int *a, mp_digit base) MP_WUR; MP_PRIVATE int s_mp_log_d(mp_digit base, mp_digit n) MP_WUR; MP_PRIVATE mp_err s_mp_add(const mp_int *a, const mp_int *b, mp_int *c) MP_WUR; MP_PRIVATE mp_err s_mp_sub(const mp_int *a, const mp_int *b, mp_int *c) MP_WUR; MP_PRIVATE mp_err s_mp_div_3(const mp_int *a, mp_int *c, mp_digit *d) MP_WUR; MP_PRIVATE mp_err s_mp_mul_digs_fast(const mp_int *a, const mp_int *b, mp_int *c, int digs) MP_WUR; MP_PRIVATE mp_err s_mp_mul_digs(const mp_int *a, const mp_int *b, mp_int *c, int digs) MP_WUR; MP_PRIVATE mp_err s_mp_mul_high_digs_fast(const mp_int *a, const mp_int *b, mp_int *c, int digs) MP_WUR; MP_PRIVATE mp_err s_mp_mul_high_digs(const mp_int *a, const mp_int *b, mp_int *c, int digs) MP_WUR; MP_PRIVATE mp_err s_mp_sqr_fast(const mp_int *a, mp_int *b) MP_WUR; MP_PRIVATE mp_err s_mp_sqr(const mp_int *a, mp_int *b) MP_WUR; MP_PRIVATE mp_err s_mp_balance_mul(const mp_int *a, const mp_int *b, mp_int *c) MP_WUR; |
︙ | ︙ |
Changes to libtommath/win32/libtommath.dll.
cannot compute difference between binary files
Changes to libtommath/win32/tommath.lib.
cannot compute difference between binary files
Changes to libtommath/win64-arm/tommath.lib.
cannot compute difference between binary files
Changes to libtommath/win64/tommath.lib.
cannot compute difference between binary files