Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp984360pxj; Sat, 8 May 2021 04:40:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwT1QPwmjiYGCD4fnhyaf5fKj7Ih3KQIVEGP0Nrx9CSQgVzlLKkUjrRgMnfiwbz4HWDEiWR X-Received: by 2002:a05:6402:1ca3:: with SMTP id cz3mr17084389edb.108.1620474009501; Sat, 08 May 2021 04:40:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620474009; cv=none; d=google.com; s=arc-20160816; b=j+nwlSC1Rr7hyG5duXy/r/rQ+ReSUlHaJ/MN296kq60lnGsd8HI0scV+/4VygRbbaS ByL8vK4at40LGIf6xE1Z25yK5snLbmkTs9tA9nk94rMHrAG+suGWDMCxS1aLwfk3g84l NF198Gi6YSEBBBP2z279QBXN6pg6tHB+A/luviUp+xN4nCIhtPm8XdDXqBK0B5oXZXim /0V5DZWkts9ST8rMWzTHbA3X2hE/1aC85bB9jUFmHH2gUfuOfPRJBnaN8jvU3P7SGhdT RCMy1DxCUSgRVDuoZwuNlOe1f+DnQySPBZ/kR03M5upCGJpQPALEFBD+D+Ky++xl2hyR +0VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=VXt42xA4oM7UzwpzoNFnlTBRJUFyLtiOAGJAJ71QwPU=; b=jDV/HW1e2e3fQ6GlK4YHkLeh0LL+B6Px8U7EF/wjXfwOc0vXJ6m5G/u1tbOyPOFa4/ 4dAke+4FiJ7Xg6UQjS/YbRWN8cmCNfkhz+SA757nyyfEGQ+Vvlw2F0fiD0m+AliiKQIC pqwOgHCOTF76OM9wsSrUanT0jmamHPtdxEl+SlQBxrhdV+/YDKTAN8zj1K/Oi8BZelwA y6IRDQApnNlstu0GhxLEL5B8VIUxKAQMR2DuhxbHkIETnSk9rrLU0dikEpC4d12QSje1 Onj4iJchOqYVwVy1+nAHa9wZUrdlrwu5euAShAXWo3ibh5FNTzuslX8aYQ0Q4EyWoQT0 7nSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qt22si7926138ejb.512.2021.05.08.04.39.45; Sat, 08 May 2021 04:40:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230419AbhEHLjy (ORCPT + 99 others); Sat, 8 May 2021 07:39:54 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:35923 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230234AbhEHLjx (ORCPT ); Sat, 8 May 2021 07:39:53 -0400 Received: from mail-wr1-f45.google.com ([209.85.221.45]) by mrelayeu.kundenserver.de (mreue011 [213.165.67.97]) with ESMTPSA (Nemesis) id 1Mk0e8-1lHEtG30BM-00kRTx; Sat, 08 May 2021 13:38:50 +0200 Received: by mail-wr1-f45.google.com with SMTP id d4so11774690wru.7; Sat, 08 May 2021 04:38:50 -0700 (PDT) X-Gm-Message-State: AOAM530oiKh2MMZczvHPrNgu7fSD+VN8zO5/lSTjR/pBiVVMXua+ZRzY C/AmWmvTiLYcNz1zJIw1OVqQuDEXioGgwqqzRhU= X-Received: by 2002:a5d:4452:: with SMTP id x18mr19275744wrr.286.1620473930435; Sat, 08 May 2021 04:38:50 -0700 (PDT) MIME-Version: 1.0 References: <20210507220813.365382-1-arnd@kernel.org> <20210507220813.365382-7-arnd@kernel.org> In-Reply-To: <20210507220813.365382-7-arnd@kernel.org> From: Arnd Bergmann Date: Sat, 8 May 2021 13:38:01 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC 06/12] asm-generic: unaligned: remove byteshift helpers To: linux-arch Cc: Linus Torvalds , Vineet Gupta , Russell King , Nathan Chancellor , Nick Desaulniers , Linux ARM , Linux Kernel Mailing List , clang-built-linux Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:XIlD8vjJ1W0rLa4aosdkuaHT/wJ+yPvLA/7TDScMAiGnUZCyqxh +4KaoW2vz/TF7k2wlKZzm3p11YXDyOVX4jRAGtHWRTx8gbLBN3cegyQV6C2YZUhGysY6F7S R9CCRYlLsOT3MCa5bSxIlUrffruSigXnSNMBYiFF+lBocA1ukt0JFo6oDEGUgL6gHJPdDeH i0C7zbtIlQybllb1Z0SYA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:0bghlFN1rqo=:xGxxNCBXGlDvRQFCULRRjW rs0RgZTUzaY6c7wXv3Gwe8HCYsAMC3JIY1eGN2kTkt4DMtmSSJJ4UcZApHv0xtIhlOnknQx4Z NE2Hbs5vH0YI+GfqBA/cLKR1881YRlsctcsCtFbaVhJXtgjB17wo3GZE54eWgDLU8N68XWmLE lD8AbcvnppxzP8p3yGaNKEJ3PMNx0dTdbHHM6Zd5Y2PzI1uZNQ75jZs5TPdVYVHRj8PWNedJx 8cmZZ3JZJTs6/yyLQbshZYXsdCvaWj+3FRyXGfHW5xQLkKMkXbCJo4cgXxx29D/1yjh9ys5xz n+mM+Y+fjkteLNpWFckp9N8KPiGTcHsO+CQ/NdGYl2thZwjyOzci5eZwA7THLB5W90UZZpL8S Vjk6stl+lpJhQHkir5iteuy8P9t5jlLnmVQahxfVS0Gx6vgmKP1riQXQP8vjwDRZo9YS85w80 he+zGIv9cjMV19FfmdLX5MeWO3PYjQCiHOQROhZ/Z5o1/CTmozPEzlPzWTqtHAsEotg/6rtC8 w5qOv2kWcQ6wBLseEcMyRY= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 8, 2021 at 12:11 AM Arnd Bergmann wrote: > > Suggested-by: Linus Torvalds > Signed-off-by: Arnd Bergmann > --- > I've included this patch in the series because Linus asked about > removing the byteshift version, but after trying it out, I'd > prefer to drop this and use the byteshift version for the > generic code as well. Update: I've tried to create a small test case that illustrates the problem with using the swab() based version, however all cases combinations I tried showed either both producing identical output, or the shift version being worse, see https://godbolt.org/z/bTdsjnjfT I'll rewrite the patch description accordingly and leave this in place. Arnd