From patchwork Sat May 8 01:47:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 432556 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp857528jao; Fri, 7 May 2021 19:20:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRveRTd+/aEUHJCOk3XERpEoK4s/ceqECl266pX3IB29JTxB6KGIkI19cdjrIx4gYU9yve X-Received: by 2002:a25:2f0c:: with SMTP id v12mr17613364ybv.217.1620440435646; Fri, 07 May 2021 19:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620440435; cv=none; d=google.com; s=arc-20160816; b=mSwjwWcFMfhXyF+eC3X6X6c1QVeWqZcDXbAeFp9MUYP3ExcbVBg0GBAf/1gsX17Dyb Hfsn+SsMx8drB3iDyWdc+Apk51crI+RaEi94JIO6yBZovVwR0WeAgH8jqgeIAb8xZEED MBmPyY+4Gmz4FECpNSDB5cBMKyMAJ4Us1SXaKKB419OFM4ndIxbu5vGlJXZn8rTM/FRL kARubrA84jwhfhL6NbIO4XQh4ZheneukOcZaXYZFVB5M03uFvVu2sSDMCghIjtgtUnJC LBlNbsxAL/aiLYzI16CXVmCU0lqddf6Y5n9vT2j7qs94xawfQISGZsfziB7EixTJT0+7 dArQ== 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=XXqS6PgcSZlxXGytmQAaetCCBR4/W9tsx3dsxyfVI/Y=; b=zbS+K5oJ+0Xy99kFIxJhuqXtNRAEGsPc7I74gDifWEMy8wK6Co0NyRQ85DNvEGNg+z sVD4tzCSMFFc21imwusLNN2fQESRD0h1UVb7kHcGnD1xsv/bWvhvEw2Tlxg83rrwUUwY i3ezjQiOs6eZFZzA8/6j2CrmBi7OskAmHHWHnF0iGmsYk1UmOOk5vyXC8SCg2ytli8A/ eqVad98dVLy0N6iZoHzxAEBCZPAgYWB8csn7BGDz9b4qiYYsV82++rV65d0JI7MRp06h PXhZhS/bcvjy6RMCX0kDCXthJdi7cwnwY9PzPzZeoQonzS4ixVowj40cNDM9+V/2ktL7 TKAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=FPWUY0Jc; 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=fail (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 a6si6592526ybe.431.2021.05.07.19.20.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 May 2021 19:20:35 -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=fail header.i=@linaro.org header.s=google header.b=FPWUY0Jc; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfCa3-0001pF-58 for patch@linaro.org; Fri, 07 May 2021 22:20:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfC7x-0002YV-23 for qemu-devel@nongnu.org; Fri, 07 May 2021 21:51:33 -0400 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:38819) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfC7v-0005OM-Dc for qemu-devel@nongnu.org; Fri, 07 May 2021 21:51:32 -0400 Received: by mail-pl1-x632.google.com with SMTP id 69so1538212plc.5 for ; Fri, 07 May 2021 18:51:30 -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=XXqS6PgcSZlxXGytmQAaetCCBR4/W9tsx3dsxyfVI/Y=; b=FPWUY0JclDLztfx6qzMYlXc69eigfkVVOqzGCNuVWKVgTb+X9DWCiW7wnSKaVTh3Fy CcUttI4zPrjRtYW/mnKgQlA+T/haM+pEPEfO6cIu2VJncaxUE6by/SpEoXY9Ueuewihk o/mhN9hWNYpBmjqHLwqucDfryL5kLgN/0Mry9PfzJ/2fPL5KnFVn7QulInUuQt7w1GUI cUDF0nBTEOO21aJLm9IdbPFEF6s1z8aOriYd1kdvnBuzHtBl5Idagbk88CHbJH5lSkTG V6nAuIVnrTG1a3lpX13Hznh4rN++en1IF/KTb8tItQlQR+4nTq9oaQGmSa+p43FN6KFf Cqnw== 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=XXqS6PgcSZlxXGytmQAaetCCBR4/W9tsx3dsxyfVI/Y=; b=ET4aPWnNfkjd2/hZOQPyz8DkU3xj526nBk+doHqLN9R+xHF8bdhzcaTkIqbnVjmwVH E3TM8MqWjP1Wkcupwu6lc2Pkk463gnYK+MK2q2gKdwRCKonKxZ1kwCE+pUEcvSNY2nKg 8T2LB9hs/Pr8dxCKtnMnVo3teeYnK68AJCipZCIP7Y1+d/gmdjxERXUBcEOJNW451BYt ceEwwYH8EBdPL+Hojt/VNbLkXa75Zy3FBVTzfD/9kiYsrYh+BdKEgFEE0MNvgKyT65Mi KrlhrIRqpDdfRNWLlpmgep8j63176Qxttk53vfMNDVrrZXuDzw1eTLTuWWssqpcRsXJv fbZw== X-Gm-Message-State: AOAM532cT5xD9da6NPxo28HGFK643pMFZoteMORIOGmr2jgSTZT/enZ3 jV++j1dr3tMdjC1qS8y3JgQnfxvDP0PIlA== X-Received: by 2002:a17:90b:19c9:: with SMTP id nm9mr13107190pjb.98.1620438690003; Fri, 07 May 2021 18:51:30 -0700 (PDT) Received: from localhost.localdomain ([71.212.144.24]) by smtp.gmail.com with ESMTPSA id 204sm5861396pfw.158.2021.05.07.18.51.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 May 2021 18:51:29 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 40/72] softfloat: Tidy mul128By64To192 Date: Fri, 7 May 2021 18:47:30 -0700 Message-Id: <20210508014802.892561-41-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210508014802.892561-1-richard.henderson@linaro.org> References: <20210508014802.892561-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x632.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: alex.bennee@linaro.org, david@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Clean up the formatting and variables; no functional change. Signed-off-by: Richard Henderson --- include/fpu/softfloat-macros.h | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) -- 2.25.1 Reviewed-by: Alex Bennée 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); } /*----------------------------------------------------------------------------