From patchwork Sat Feb 24 06:56:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liliana Marie Prikler X-Patchwork-Id: 60987 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D598B27BBE2; Sat, 24 Feb 2024 12:48:18 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A2A0227BBF1 for ; Sat, 24 Feb 2024 12:48:13 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdrRO-0001M5-7H; Sat, 24 Feb 2024 07:47:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdrRM-0001Kq-DS for guix-patches@gnu.org; Sat, 24 Feb 2024 07:47:40 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rdrRK-0007YH-IK for guix-patches@gnu.org; Sat, 24 Feb 2024 07:47:39 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rdrRi-0005D3-Dt for guix-patches@gnu.org; Sat, 24 Feb 2024 07:48:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69352] [PATCH 01/13] gnu: Add wide-integer. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 24 Feb 2024 12:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69352 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69352@debbugs.gnu.org Received: via spool by 69352-submit@debbugs.gnu.org id=B69352.170877882719744 (code B ref 69352); Sat, 24 Feb 2024 12:48:02 +0000 Received: (at 69352) by debbugs.gnu.org; 24 Feb 2024 12:47:07 +0000 Received: from localhost ([127.0.0.1]:53678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdrQp-00058H-Dj for submit@debbugs.gnu.org; Sat, 24 Feb 2024 07:47:07 -0500 Received: from mail-lj1-f171.google.com ([209.85.208.171]:57391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdrQo-00057S-5c for 69352@debbugs.gnu.org; Sat, 24 Feb 2024 07:47:06 -0500 Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2d22b8c6e0dso13852511fa.2 for <69352@debbugs.gnu.org>; Sat, 24 Feb 2024 04:46:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708778736; x=1709383536; darn=debbugs.gnu.org; h=mime-version:to:subject:date:from:references:in-reply-to:message-id :from:to:cc:subject:date:message-id:reply-to; bh=JZ07TGoVrrnTbTLnDE8gGqn2f+1mm8rRlNwSwxagKJ0=; b=Q0t9EEO5pAoVH2ffUcIc48pI6OjvPaC12/fmXKns10psSUwHMARQSnTDwImMwuS35z 70l+IfuNbe9BvB8jjJeUCGXy3HTkvDFT+s1ZkH1sBYUuGh5U1a0J6gyXtJ5vHCikB+3t GaMUZKLQt8C/9iixD5IlECG2Sw1lO63cflC/xlr22KBaHo60F5pMqnzXbGRW+yjFUvvj 3cvwFS9boF40kTGVKpHxsQJK2lXhqTekLON1m7M+woMT5cMcTmABaM/pb8PAFoGTaI7s CZzXRivGd3YEDQcykCmz6G2n2m8XB1oTWQEKoG4zIP5eEHCB52whURDXeNP0NJVSFmPO aaUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708778736; x=1709383536; h=mime-version:to:subject:date:from:references:in-reply-to:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JZ07TGoVrrnTbTLnDE8gGqn2f+1mm8rRlNwSwxagKJ0=; b=qoSQa6EPkec21F59rzirYPcfBwStnxll8CavgI/ZEVyow9WHyjcI00JJI2uAKzrXeI N5/EhqGZZkQxYRgK+Pjy0O7xsT/taYeZjUb2RqXriwtdLKASuT2zVzr/nTTUzMj4m46k OFxoBcNtHhIZPb9GxjkenB1tAIyAcS00881GLHC1gCbKTs1qY8jj/Fm1eMxDXOjBRVgS gqV1eH4vRzvYjZU4mTzVHhQEbtBJPuNTw5HIhujczpTSZwd03nJNsI2P4t5wbyLik5pU ibu7OoP9GkTuPiWkAdXQvTfdW3xqPQwIgmReSFGqhGxA5r4MqL1O/ia+ld9CGV1dbgyB eiaw== X-Gm-Message-State: AOJu0Yy/gXEnQ/jarF7Lf9ZaqAJOs88cpJbUZzTepTxvv36nyJKXuXtL YZoEm+9nPeKf2f7KUC3uqDt0ZKtlzsgHah+Nbbr6+qWu+vJPUyqkt8DOhmlZ X-Google-Smtp-Source: AGHT+IHgkgSAbNqJGhmbx7DPiyf+4dbK9k3r9TkKc0kdJv2M9G2sihDbCNSNhscf5xWHhrzCQ0q49A== X-Received: by 2002:a2e:914b:0:b0:2d2:3030:bfa5 with SMTP id q11-20020a2e914b000000b002d23030bfa5mr968889ljg.45.1708778735894; Sat, 24 Feb 2024 04:45:35 -0800 (PST) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id lf6-20020a170906ae4600b00a3d12d84cffsm551900ejb.167.2024.02.24.04.45.35 for <69352@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 04:45:35 -0800 (PST) Message-ID: <0bd819c52f78fcc59848438a6fd743a6805e9c5d.1708771294.git.liliana.prikler@gmail.com> In-Reply-To: References: From: Liliana Marie Prikler Date: Sat, 24 Feb 2024 07:56:54 +0100 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/cpp.scm (wide-integer): New variable. --- gnu/packages/cpp.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index e530d1d2a8..64816b7400 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -2703,6 +2703,37 @@ (define-public safeint 64-bit integers.") (license license:expat))) +(define-public wide-integer + (let ((commit "22b8428746248e682d5276f8e8b7fb52af73ea47") + (revision "1314")) ; commit count + (package + (name "wide-integer") + (version (git-version "0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ckormanyos/wide-integer") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0bhjnbdcphv5kddddh8kpwjpjix23m12vmfsz0r6wjc5d27md33z")) + (modules '((guix build utils))) + (snippet #~(substitute* "CMakeLists.txt" + (("WideIntegerTargets") "wide-integer-targets") + (("WideIntegerConfig") "wide-integer-config") + (("WideInteger") "wide-integer"))))) + (build-system cmake-build-system) + (native-inputs (list boost)) + (home-page "https://github.com/ckormanyos/wide-integer") + (synopsis "C++ template for arbitrary-precision integers") + (description "This package implements a generic template for extended +width signed and unsigned integral types. Up to 63 limbs of any built-in +integer type are supported, and can be used to build powers of two like +int128_t, uint256_t, but also somewhat esoteric types such as int24_t, +uint80_t, or uint1536_t. The provided types can be used in much the same +way as basic integer types.") + (license license:boost1.0)))) + (define-public wdl ;; No tag is available. (let ((commit "da86a62d11e46e4ecd8b16f9775cb5188340a0e2")