From patchwork Sun May 16 12:34:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 439862 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp262640jac; Sun, 16 May 2021 05:52:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/HfLcWplmvOOi+gE/fIz2w2PqeOfmTT6xoFgu6Lf0vFbQlpLpoeaQhDoaVb25xBF3hZsj X-Received: by 2002:ae9:ed86:: with SMTP id c128mr44735239qkg.224.1621169568869; Sun, 16 May 2021 05:52:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621169568; cv=none; d=google.com; s=arc-20160816; b=ePpQqdITGzoRu5LPEXeJhovQGUMxxSf3Vf0uLxEJkx8UtubNgmZllu2xfNlSDeGPVP exc1ukurdNb785Opl21Yxr3LywzZgvpRoruxPmNjSSfvGRA6psYq79D7kr1aVlwfEUBF w8PWjtmQBmAuKmVRSYbovz7pCWeSgMlj2CNbZm0Xgmr87UCfL3kbw23wRYkcle1XmJ1a VQFjzgtqFJXtcLE78h26eW58GMq+lRld5kq1xajlsD3FjTLgegtN3uKlyRkMCJ3cy7Qj Y6tKNtCtTYUEa/OumD+oginZtIhz3BEciVjDV6DEaD7HgtX7iZfrq2KHrnhAzG1fsGzE xZ8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=rR/O6eCn0zcsoJsAaT3zOMU5ZGw713+1KRblmR0NHXY=; b=bcPH8Kg0HI25/w0Iz/nAdVvUFUahaI7fUhGzSGzxD6eyr638iN49fuy0QN1f8dH9xr bLoqCAOhxljfGn46m0loPCvI5MfbSnbtUA880NGWHl8YPj1gooBaIkj8/SzCZJHG0Hct tg8suC8OM0HtfQ+N41rx9FNWOebuuqLmIqcRw5QmcwUmmziL+jOI8taQXouEvW//ftBY KhKkhzS9M2DArO+3vY5tE8fbPHR2pMLSLFuBpVLVfl6DCtAeLiij0Ocier9xXufqkIrI 0FeFDjz1K/3i0cRrIijwENRWENq+mBv98IA2LTzYxyOzbnxH+ZFclKMumXmy3zDiVwqB ja2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LaA54A17; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f11si6861556qtf.238.2021.05.16.05.52.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 16 May 2021 05:52:48 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LaA54A17; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:38888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liGGG-00030M-9D for patch@linaro.org; Sun, 16 May 2021 08:52:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liG29-0003g7-Hq for qemu-devel@nongnu.org; Sun, 16 May 2021 08:38:13 -0400 Received: from mail-qv1-xf2e.google.com ([2607:f8b0:4864:20::f2e]:35571) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liG24-0001L5-B6 for qemu-devel@nongnu.org; Sun, 16 May 2021 08:38:13 -0400 Received: by mail-qv1-xf2e.google.com with SMTP id q6so1876376qvb.2 for ; Sun, 16 May 2021 05:38:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rR/O6eCn0zcsoJsAaT3zOMU5ZGw713+1KRblmR0NHXY=; b=LaA54A17xisnp9+1oBC4VYSuFx53RDypObxxUKTvnDSKlM6zIkqnBVdhhKtPWxDxgJ WWOcwl8NMedH+emKJrsZox8yErtx4ks+uFhSPSSyqfTkrgIpvy4avFijkUwJ6ZzLyMWx mZ/BFag+ZkcvPu1CmmhyVsA8p5+KSbYc697mT1QoF6nuSf0g7dAeEyVUt+zz814evmVN hhJ93aia+IlrIWv3RnyZ2P5kd5wG4z6usVrTcMWIA7ukqIQJGg7igVCiuynUH8ibAuEW zR7O0e0PnHbGxMDr8gCmTHjsQRnFe0GmjjtBnKzRSVEgPEbSp9w29/Zm9rF8n+xk0XwH XUxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rR/O6eCn0zcsoJsAaT3zOMU5ZGw713+1KRblmR0NHXY=; b=cZtCGr4fdC0cUWF/RQJ1oYHepmhJM3iOh67fiG+67QFIA2oxxWpF2fgtrXsvaVzYBg 8o8gT3Kwk+SToTbIAxHiCqy3bhjkn1nzNDnIQJ2NtDLUJEOureOvXLugG7XQup7YlJAG dNtW3EI8UdBBROdHkykhYKIggyg3ll6gZGCQP95M5kW2eBrATUUnPJJOOOvlaiFG3NVp WMjP2V+WQYtZ5Ps9EBSXT9cN4M9EWVuz/kfflj2vzWqWKcMewjpUOLIKNzxDqjYj/m1Q /+2ntvEkodudUBJMjYZr5qnBuLHVOPg0e/GKDhTn5dsNqtMtNpBoewHIvD0SgKi/gnnQ xO1Q== X-Gm-Message-State: AOAM5324mSDAqT77+mzKEB/AofH8OjWmolWezhUiPYTauBWan0l+jz01 kpuw0N9Sus5wTfarTdh3aI2rzw17f6NFByIJEl8= X-Received: by 2002:a05:6214:248e:: with SMTP id gi14mr55274969qvb.7.1621168686518; Sun, 16 May 2021 05:38:06 -0700 (PDT) Received: from localhost.localdomain (163.189-204-200.bestelclientes.com.mx. [189.204.200.163]) by smtp.gmail.com with ESMTPSA id 195sm8180765qkj.1.2021.05.16.05.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 May 2021 05:38:06 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 40/46] softfloat: Tidy mul128By64To192 Date: Sun, 16 May 2021 07:34:25 -0500 Message-Id: <20210516123431.718318-41-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210516123431.718318-1-richard.henderson@linaro.org> References: <20210516123431.718318-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::f2e; envelope-from=richard.henderson@linaro.org; helo=mail-qv1-xf2e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Clean up the formatting and variables; no functional change. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- include/fpu/softfloat-macros.h | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) -- 2.25.1 diff --git a/include/fpu/softfloat-macros.h b/include/fpu/softfloat-macros.h index 76327d844d..672c1db555 100644 --- a/include/fpu/softfloat-macros.h +++ b/include/fpu/softfloat-macros.h @@ -484,24 +484,14 @@ mul64To128(uint64_t a, uint64_t b, uint64_t *z0Ptr, uint64_t *z1Ptr) *----------------------------------------------------------------------------*/ static inline void - mul128By64To192( - uint64_t a0, - uint64_t a1, - uint64_t b, - uint64_t *z0Ptr, - uint64_t *z1Ptr, - uint64_t *z2Ptr - ) +mul128By64To192(uint64_t a0, uint64_t a1, uint64_t b, + uint64_t *z0Ptr, uint64_t *z1Ptr, uint64_t *z2Ptr) { - uint64_t z0, z1, z2, more1; - - mul64To128( a1, b, &z1, &z2 ); - mul64To128( a0, b, &z0, &more1 ); - add128( z0, more1, 0, z1, &z0, &z1 ); - *z2Ptr = z2; - *z1Ptr = z1; - *z0Ptr = z0; + uint64_t z0, z1, m1; + mul64To128(a1, b, &m1, z2Ptr); + mul64To128(a0, b, &z0, &z1); + add128(z0, z1, 0, m1, z0Ptr, z1Ptr); } /*----------------------------------------------------------------------------