diff options
| author | David Elsing <david.elsing@posteo.net> | 2026-02-03 21:33:21 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-02-10 23:46:35 +0100 |
| commit | 99ced1d4329353900916b2f6c2eb50d401b32fc3 (patch) | |
| tree | bdc8adc6a3590f45b6d6e860871aaded55f04f7d | |
| parent | 1eb057021d009aafa9c8542f33d3568f97e6184e (diff) | |
gnu: Add libdivide.
* gnu/packages/cpp.scm (libdivide): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| -rw-r--r-- | gnu/packages/cpp.scm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 8be5aef9cb5..484b06d850b 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)))) |
