From 14a81257cb09c8a28a70c1ac2eb7016771d3b80c Mon Sep 17 00:00:00 2001 From: cancername Date: Sun, 25 May 2025 19:41:07 +0200 Subject: [PATCH] gnu: Add simdutf. * gnu/packages/c.scm (simdutf): New variable. Change-Id: I3e253617db4793e3bc2e4704106c4c42ef2f4f49 Signed-off-by: Greg Hogan --- gnu/packages/c.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm index c2a7f44798..02471acda4 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -1662,6 +1662,28 @@ C and C++. The functions it provides are like those from the C header string.h, but with a utf8* prefix instead of the str* prefix.") (license license:unlicense)))) +(define-public simdutf + (package + (name "simdutf") + (version "7.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/simdutf/simdutf") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1kw4k3mhkj3bcmfmwwzq76hs2ypg5lrjl4vnp2dfg73vas9v9w35")))) + (build-system cmake-build-system) + (synopsis "SIMD Unicode validation and transcoding") + (description + "simdutf is a C++ library providing Unicode routines (UTF8, UTF16, +UTF32). These routines are optimized for many specific architectures using +SIMD (Single Instruction, Multiple Data) instructions.") + (home-page "https://github.com/simdutf/simdutf") + (license license:asl2.0))) + (define-public utest-h ;; The latest commit is used as there is no release. (let ((commit "54458e248f875f1a51f0af8bec8ca6ae7761b9d1")