Update libtommath to 1.2.0
There are new functions in <tommath.h>; some of them are needed to update lang/moarvm. The headers tommath_{class,superclass}.h are no longer installed. ok pascal@
This commit is contained in:
parent
03012791f4
commit
c3d9f359e2
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.9 2019/07/12 20:47:42 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.10 2021/03/11 06:29:21 gkoehler Exp $
|
||||
|
||||
COMMENT = number theoretic multiple-precision integer library
|
||||
CATEGORIES = math
|
||||
@ -6,8 +6,7 @@ HOMEPAGE = http://libtom.net/
|
||||
|
||||
GH_ACCOUNT = libtom
|
||||
GH_PROJECT = libtommath
|
||||
GH_TAGNAME = v1.0.1
|
||||
REVISION = 0
|
||||
GH_TAGNAME = v1.2.0
|
||||
|
||||
# WTFPL
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (libtommath-1.0.1.tar.gz) = 2ytua1EqrFzJvn5P/dFdlxw/A9P6NfkWB7/hp/p1p6c=
|
||||
SIZE (libtommath-1.0.1.tar.gz) = 653112
|
||||
SHA256 (libtommath-1.2.0.tar.gz) = 88IKtd9gDY2J4FTQlsEWQXGXgn0Scy5nhSVmeqck4w8=
|
||||
SIZE (libtommath-1.2.0.tar.gz) = 242318
|
||||
|
16
math/libtommath/patches/patch-bn_mp_set_double_c
Normal file
16
math/libtommath/patches/patch-bn_mp_set_double_c
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-bn_mp_set_double_c,v 1.1 2021/03/11 06:29:21 gkoehler Exp $
|
||||
|
||||
We have IEEE754 floating-point.
|
||||
|
||||
Index: bn_mp_set_double.c
|
||||
--- bn_mp_set_double.c.orig
|
||||
+++ bn_mp_set_double.c
|
||||
@@ -3,7 +3,7 @@
|
||||
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
|
||||
/* SPDX-License-Identifier: Unlicense */
|
||||
|
||||
-#if defined(__STDC_IEC_559__) || defined(__GCC_IEC_559)
|
||||
+#if defined(__STDC_IEC_559__) || defined(__GCC_IEC_559) || 1
|
||||
mp_err mp_set_double(mp_int *a, double b)
|
||||
{
|
||||
uint64_t frac;
|
@ -1,18 +0,0 @@
|
||||
$OpenBSD: patch-makefile_include_mk,v 1.1 2017/11/25 21:42:51 afresh1 Exp $
|
||||
|
||||
Index: makefile_include.mk
|
||||
--- makefile_include.mk.orig
|
||||
+++ makefile_include.mk
|
||||
@@ -87,12 +87,6 @@ LIBPATH ?= $(PREFIX)/lib
|
||||
INCPATH ?= $(PREFIX)/include
|
||||
DATAPATH ?= $(PREFIX)/share/doc/libtommath/pdf
|
||||
|
||||
-#make the code coverage of the library
|
||||
-#
|
||||
-coverage: CFLAGS += -fprofile-arcs -ftest-coverage -DTIMING_NO_LOGS
|
||||
-coverage: LFLAGS += -lgcov
|
||||
-coverage: LDFLAGS += -lgcov
|
||||
-
|
||||
coverage: $(COVERAGE)
|
||||
$(COVERAGE_APP)
|
||||
|
@ -1,5 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.3 2016/03/04 10:38:49 czarkoff Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.4 2021/03/11 06:29:21 gkoehler Exp $
|
||||
include/tommath.h
|
||||
include/tommath_class.h
|
||||
include/tommath_superclass.h
|
||||
lib/libtommath.a
|
||||
@static-lib lib/libtommath.a
|
||||
|
Loading…
Reference in New Issue
Block a user