guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 99ced1d4329353900916b2f6c2eb50d401b32fc3
Author: David Elsing <[email protected]>
AuthorDate: Tue Feb 3 21:33:21 2026 +0100
gnu: Add libdivide.
* gnu/packages/cpp.scm (libdivide): New variable.
Signed-off-by: Ludovic Courtès <[email protected]>
---
gnu/packages/cpp.scm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 8be5aef9cb..484b06d850 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -4998,3 +4998,24 @@ and stable references (iterators are NOT stable) on
insert.")
(description "This package provides a single-header C++14 library for
saving and loading C++ objects using a binary format.")
(license license:expat)))
+
+(define-public libdivide
+ (package
+ (name "libdivide")
+ (version "5.2.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ridiculousfish/libdivide")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "18gpi9z9kimidkijpbrbf9vxg9s2md3nhyx9yh3n17cdj6aabgq2"))))
+ (build-system cmake-build-system)
+ (home-page "https://libdivide.com/")
+ (synopsis "Header-only library for optimized integer division")
+ (description "This package provides a header-only C and C++ library for
+calculating integer division by using shift, add and multiply instructions.")
+ ;; dual licensed
+ (license (list license:zlib license:boost1.0))))