From patchwork Sun Feb 19 00:04:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 10116 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 5BDC3169F1; Sun, 19 Feb 2023 00:07:12 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,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 B285E16454 for ; Sun, 19 Feb 2023 00:07:11 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTXDT-0006Kx-VH; Sat, 18 Feb 2023 19:06:08 -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 1pTXDR-0006Io-FW for guix-patches@gnu.org; Sat, 18 Feb 2023 19:06:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pTXDR-0004lB-6d for guix-patches@gnu.org; Sat, 18 Feb 2023 19:06:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pTXDR-0007Ef-1o for guix-patches@gnu.org; Sat, 18 Feb 2023 19:06:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61611] [PATCH 09/10] gnu: Add julia-muladdmacro. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 19 Feb 2023 00:06:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61611 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61611@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 61611-submit@debbugs.gnu.org id=B61611.167676511027686 (code B ref 61611); Sun, 19 Feb 2023 00:06:05 +0000 Received: (at 61611) by debbugs.gnu.org; 19 Feb 2023 00:05:10 +0000 Received: from localhost ([127.0.0.1]:45199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTXCY-0007CO-BY for submit@debbugs.gnu.org; Sat, 18 Feb 2023 19:05:10 -0500 Received: from mail-wm1-f54.google.com ([209.85.128.54]:56045) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTXCU-0007AD-Fz for 61611@debbugs.gnu.org; Sat, 18 Feb 2023 19:05:06 -0500 Received: by mail-wm1-f54.google.com with SMTP id o14so1219860wms.5 for <61611@debbugs.gnu.org>; Sat, 18 Feb 2023 16:05:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NsNaDiI6nMFz500W7bsXOb78F7ju1a3O0uI8o+oK4CY=; b=hqONjfdve9CoNsTaTEeztAjrEiDh4VJXa1UGW1Ci0bXKiCOQnhMtyZo50PeWtdtCVd kTqBkc+cO1QO5xsfQSnw6zbQIMJQwTdk0srQ5snnu5/gQZa5mwpVcdHKurmHwwYgb8uw PKBT9iZVBDFpTHpv1uhrBNNLb7+Tu5tcCQkUfhSITqatIciM4830uND8PNRQg96ErKtw C/9MP3E/3p3ZGKRSQ/pVzhISQgnVkYZ6y6tplZzRlTIrPdw3It5fF+/qANsgwcb384Dh eAA82K4TDFtTKiY5Mq1USo7szUeaQVtiAAoL9SxsOLGA7OQwtqxw3T9WK82VdO7NYrGc dFqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NsNaDiI6nMFz500W7bsXOb78F7ju1a3O0uI8o+oK4CY=; b=dJytUuHAs082rS9vG5AOANsYoi/ooq0Yk1kaBijr4Rd3JoNkBSz8TrLCEUWbQkFqTy 4xp9PprSQ13GZGivsPk9DyzpWl0F6ggXTPWu5Jel0d3HFC0wiQhJqJH/90iS4dlHCzHG jVDf5P4elfJox/quZxBjBC3wxCueT/uGdyrSW1HUAeFQjioqwZ748kX8R61G4WEulBai gUUM7gqvurGVw0PsZPV5uYnw5yWKBlrhQhM2/Qa3BdjNVPKMNz05z0cY1d4/G2e/Ek6n Us1ZaMRxIrL1XIb4slo4HR6e1dGLa1EtTyEWPbwgFB1STfA6ya2DWs3B5HHr9/0dt2zI 4ZUg== X-Gm-Message-State: AO0yUKXwgZUpion49ubHU90jvszPJArtT2b6ElfplAj/UdEC9j/ZVqym eK7DTY6MXYINR8p+2iDk5xS5U1NpL7Cx6A== X-Google-Smtp-Source: AK7set+CA5Lz2Hh3dgoyfNEp/TYEqpJ29tD094+U56o65fzRUCyf4l5UhDsY/Lv96pFAJGLKn4umow== X-Received: by 2002:a05:600c:994:b0:3e1:fff7:e970 with SMTP id w20-20020a05600c099400b003e1fff7e970mr4027444wmp.30.1676765100967; Sat, 18 Feb 2023 16:05:00 -0800 (PST) Received: from guxtil.incerto.xyz (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id c18-20020a05600c0a5200b003e118684d56sm4752164wmq.45.2023.02.18.16.05.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Feb 2023 16:05:00 -0800 (PST) From: Sharlatan Hellseher Date: Sun, 19 Feb 2023 00:04:52 +0000 Message-Id: <20230219000453.20559-9-sharlatanus@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230219000453.20559-1-sharlatanus@gmail.com> References: <20230219000453.20559-1-sharlatanus@gmail.com> 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/julia-xyz.scm (julia-muladdmacro): New variable. --- gnu/packages/julia-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm index 0a8e1a81cd..a07326df6f 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -4223,6 +4223,33 @@ (define-public julia-msgpack Julia, with type-driven, overloadable packing/unpacking functionality.") (license license:expat))) +(define-public julia-muladdmacro + (package + (name "julia-muladdmacro") + (version "0.2.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/SciML/MuladdMacro.jl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0pvmfw7f3igpwx0w8c8i40pls0wfm248b1i662wnlrkqiw56j0yq")))) + (build-system julia-build-system) + (home-page "https://github.com/SciML/MuladdMacro.jl") + (synopsis "Julia macro to convert expressions to use muladd calls and FMA operations") + (description + "This package provides the @code{@@muladd} macro. It automatically converts +expressions with multiplications and additions or subtractions to calls with +muladd which then fuse via FMA when it would increase the performance of the +code. The @code{@@muladd} macro can be placed on code blocks and it will automatically +find the appropriate expressions and nest muladd expressions when necessary. In +mixed expressions summands without multiplication will be grouped together and +evaluated first but otherwise the order of evaluation of multiplications and +additions is not changed.") + (license license:expat))) + (define-public julia-mutablearithmetics (package (name "julia-mutablearithmetics")