aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafe <mondo.debater_0q@icloud.com>2026-02-18 20:11:00 +0000
committerVladimir Druzenko <vvd@FreeBSD.org>2026-02-18 20:11:00 +0000
commit74352ea030faf0aedd5b6760ade6cc3f8ecbd457 (patch)
tree89e108f7bb003718f86d7f464858437562180d4b
parent5af542b57309da54769221a23eac073462e959b7 (diff)
math/wide-integer: New port: Generic C++ template for extended width unsigned/signed integral types
Wide-integer implements a generic C++ template for extended width unsigned and signed integral types. This C++ template header-only library implements drop-in big integer types such as uint128_t, uint256_t, uint384_t, uint512_t, uint1024_t, uint1536_t, etc. These can be used essentially like regular built-in integers. Corresponding signed integer types such as int128_t, int256_t, and the like can also be used. Reuired for net-p2p/transmission 4.1.0. PR: 292846 Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>
-rw-r--r--math/Makefile1
-rw-r--r--math/wide-integer/Makefile19
-rw-r--r--math/wide-integer/distinfo3
-rw-r--r--math/wide-integer/pkg-descr6
4 files changed, 29 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 82f1120429c9..fb5a95ecaf5e 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -1298,6 +1298,7 @@
SUBDIR += vtk9
SUBDIR += wavelib
SUBDIR += wcalc
+ SUBDIR += wide-integer
SUBDIR += wxmaxima
SUBDIR += xblas
SUBDIR += xfce4-calculator-plugin
diff --git a/math/wide-integer/Makefile b/math/wide-integer/Makefile
new file mode 100644
index 000000000000..5cc0570aab26
--- /dev/null
+++ b/math/wide-integer/Makefile
@@ -0,0 +1,19 @@
+PORTNAME= wide-integer
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.01
+CATEGORIES= math
+
+MAINTAINER= mondo.debater_0q@icloud.com
+COMMENT= Generic C++ template for extended width unsigned/signed integral types
+WWW= https://github.com/ckormanyos/wide-integer/
+
+LICENSE= BSL
+
+USES= cmake
+USE_GITHUB= yes
+GH_ACCOUNT= ckormanyos
+
+PLIST_FILES= include/math/wide_integer/uintwide_t.h \
+ lib/cmake/wide-integer/WideIntegerConfig.cmake
+
+.include <bsd.port.mk>
diff --git a/math/wide-integer/distinfo b/math/wide-integer/distinfo
new file mode 100644
index 000000000000..460b4992583b
--- /dev/null
+++ b/math/wide-integer/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1770029896
+SHA256 (ckormanyos-wide-integer-v1.01_GH0.tar.gz) = d295c92a6c70b89f8901f31bcc3f0e8128b5ff5e60e549f4063196b0b3bc9603
+SIZE (ckormanyos-wide-integer-v1.01_GH0.tar.gz) = 192004
diff --git a/math/wide-integer/pkg-descr b/math/wide-integer/pkg-descr
new file mode 100644
index 000000000000..60bea6e0d482
--- /dev/null
+++ b/math/wide-integer/pkg-descr
@@ -0,0 +1,6 @@
+Wide-integer implements a generic C++ template for extended width unsigned and
+signed integral types.
+This C++ template header-only library implements drop-in big integer types such
+as uint128_t, uint256_t, uint384_t, uint512_t, uint1024_t, uint1536_t, etc.
+These can be used essentially like regular built-in integers. Corresponding
+signed integer types such as int128_t, int256_t, and the like can also be used.