From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:58665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggjVC-0002lp-51 for qemu-devel@nongnu.org; Tue, 08 Jan 2019 00:00:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ggjV8-0004Zs-50 for qemu-devel@nongnu.org; Tue, 08 Jan 2019 00:00:32 -0500 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:35738) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ggjV5-0004Rl-Oc for qemu-devel@nongnu.org; Tue, 08 Jan 2019 00:00:28 -0500 Received: by mail-pl1-x631.google.com with SMTP id p8so1275256plo.2 for ; Mon, 07 Jan 2019 21:00:27 -0800 (PST) References: <20181214052410.11863-1-richard.henderson@linaro.org> <20181214052410.11863-24-richard.henderson@linaro.org> From: Richard Henderson Message-ID: <0ff1044a-a8d8-75f1-6e37-5149b1cf3dea@linaro.org> Date: Tue, 8 Jan 2019 15:00:19 +1000 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 23/27] target/arm: Implement pauth_computepac List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers On 1/8/19 12:09 AM, Peter Maydell wrote: >> +static int rot_cell(int cell, int n) >> +{ >> + cell |= cell << 4; >> + cell >>= n; >> + return cell & 0xf; > > This doesn't seem to do what the RotCell pseudocode does? > Unless I've made an error, RotCell(ABCD, 1) == BCDA, > but rot_cell(ABCD, 1) == DABC. Yep, I mis-read the direction of the rotate. Thanks for all of the proof-reading. This section I found particularly eye watering. r~