From 99ced1d4329353900916b2f6c2eb50d401b32fc3 Mon Sep 17 00:00:00 2001 From: David Elsing Date: Tue, 3 Feb 2026 21:33:21 +0100 Subject: [PATCH] gnu: Add libdivide. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/cpp.scm (libdivide): New variable. Signed-off-by: Ludovic Courtès --- 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))))