Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1723843rdb; Wed, 20 Sep 2023 18:56:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/uBes3fWxCMKmhnqnNkpD4c1ADEcoSU6IPFFHEGwQzcFZf2K8hwJbyZ1aOpvh7TTSHQe9 X-Received: by 2002:a17:903:32c1:b0:1c3:3461:75b5 with SMTP id i1-20020a17090332c100b001c3346175b5mr4784691plr.0.1695261408483; Wed, 20 Sep 2023 18:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695261408; cv=none; d=google.com; s=arc-20160816; b=sLwSKEm9Ee71OM5073wEPPLev28tUCC4eN8ioakClwsuu0Q4RKLPhVireIucGT9cl/ oKYZBsvO37y6EM9kBK7RhDImKIOc1gq3YmLT/k7fqY3amWpHdsZqGsGtq0rxYeb/cJxB CJ6qlnAV3+LEbON0/1u6aHNOiGV8Uhxs8Ls1Uj3l0LokOqgwYSpqq/7CwnECDjU5dfYf /CH6Kjx9wqrt8ft6NyBAtDC9K6gKNH6cmo/+8qLhKqYBROE+5d0RWhbEHcIYE334w/lu Q/1iWphfPi5enjW99gxLW+pfow9YfqdKGptML1AGlsbnVcvzSjVKF9vIIOcFjY3wVcdY tCDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=If46QP9d8l381wsF7wC31HKGx8UjNCO5MTSh1mx6aNQ=; fh=J9l1SnPzA86r5gx/lrOTbaG1Wt9cDKp32vmsetAk5wU=; b=fK2klf+LWgtyD+KgMuZGo5KibkoU740gFBXxKfMTUuhiSfGJk1KRoiz608b8vy53lO fEnphHVIk+f/FDR44t/9EnGjOvKjLLB4FZl1xFaGC6fPShWWky37bK+u8rp595wSleVP x/lUkxM+lmiFf35R9aUJIt214Qvr4isq7S9ULrEs69C+AVG/nyr+18y57Tvb9tNjtlCX xOs/FIouxhM2ybExz5aZ0bM2YAI8dFh736Q2pAKZVwzytv5l5i66NZjcuFq2fxAMJG4j e9mVdC0mUUYv8iXXPNmHvAhygf3ahFDcevsYqHuO/1oRmaPV3HFOPxIGclMW0BLIH3UC 89Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=F9zalqoU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id u11-20020a170902e5cb00b001b895fc0cfdsi336609plf.388.2023.09.20.18.56.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 18:56:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=F9zalqoU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 3B73281C3967; Wed, 20 Sep 2023 12:20:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229955AbjITTUo (ORCPT + 99 others); Wed, 20 Sep 2023 15:20:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229719AbjITTUm (ORCPT ); Wed, 20 Sep 2023 15:20:42 -0400 Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92CCBC6 for ; Wed, 20 Sep 2023 12:20:36 -0700 (PDT) Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-1dc6198196aso109733fac.0 for ; Wed, 20 Sep 2023 12:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695237636; x=1695842436; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=If46QP9d8l381wsF7wC31HKGx8UjNCO5MTSh1mx6aNQ=; b=F9zalqoUesNuqC+uY/KdZXnoE17Je1tIkbGivKPXULOaG6mLWXrvOU9NZvMcsoTYIC gIi3s5N6qLtxAey6KF0s15QQ9uyV0WfygkAAPwO2cL6d9DKSZJv+iuvOmbypeXqIUfjB 8aZOz9fw5QgzFVAe+ODMt7UIBfkvV5/I/JxAbJd6yztGVP9mqmDJyGD+jtOLqnhF90ZK O55ek6P4n4/7qi9nQsXQcEBza/sAiRdJGpiM7QiMrIgyOhfMZ8fQNyWtIOnrniqEQDJ5 om+3r2OkEoAfVt9/qCiFA1lOx9R81XRerQLhS22xwuXK9tSgdUmQjzf4oEDTHAts4gbf ARgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695237636; x=1695842436; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=If46QP9d8l381wsF7wC31HKGx8UjNCO5MTSh1mx6aNQ=; b=ugPCd92VEoV98lq9mqLML2lgLNoMTeEzmz9CF9cIXW4xIN4Pb3XFk0PHYXaCQZ55rO IebGH15gB1XjV2n27WWgOPSfd+hZ3sZ1Otbq/bGJjhZ5Xuj8H5Ddw+qV9uz1EgfTZ/sD mAk0mpsJAewbVFXPuWLcSxdMAkvuLkg0k1f9dz3ScnzBLi+oIENno5iqrFPzHbaZZafz Jrv9izQ1vJMG8yGV6KA5TpNwXJr6LbIzcjfAa6WMjPO/9Daj09P9OtA54ZTj7Qw+lQHS 1TmqZ7GvsgSiqifmyLT+I7QHEcbOddhvl90H1Aoidk3b8a0qATR9Vnr5iI4alcBNno+n Bzyg== X-Gm-Message-State: AOJu0YzsUQy+wFqCZrf57IKI9rzzIO4BxAwX1qrQLHx28CPOnGHZlif+ O827tp8ZxoLhrDdDOiwpinrXUcyYXSvtJTDSU4KBMS23 X-Received: by 2002:a05:6871:588:b0:1d5:21f9:7272 with SMTP id u8-20020a056871058800b001d521f97272mr3616289oan.23.1695237635746; Wed, 20 Sep 2023 12:20:35 -0700 (PDT) MIME-Version: 1.0 References: <20230628020657.957880-1-goldstein.w.n@gmail.com> <20230901222100.1027371-1-goldstein.w.n@gmail.com> In-Reply-To: From: Noah Goldstein Date: Wed, 20 Sep 2023 14:20:24 -0500 Message-ID: Subject: Re: x86/csum: Remove unnecessary odd handling To: David Laight Cc: "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "edumazet@google.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "torvalds@linux-foundation.org" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "hpa@zytor.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 20 Sep 2023 12:20:49 -0700 (PDT) On Wed, Sep 6, 2023 at 9:38=E2=80=AFAM David Laight wrote: > > From: Noah Goldstein > > Sent: 01 September 2023 23:21 > ... > > + return add32_with_carry(temp64 >> 32, temp64 & 0xffffffff); > > The generic C alternative: > return (temp64 + ror64(temp64, 32)) >> 32; > is the same number of instructions but might get > better scheduling. > Sorry, I missed this. Bright idea :) Adding in new version + you reviewed by tag. Then hopefully this can get in... > The C version of csum_fold() from arc/include/asm/checksum.h > is also better than the x86 asm version. > (And also pretty much all the other architecture dependant > copies.) > > David > > - > Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1= 1PT, UK > Registration No: 1397386 (Wales) >