From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epNnH-0004wW-6r for qemu-devel@nongnu.org; Fri, 23 Feb 2018 19:34:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1epNnE-0002Pw-2s for qemu-devel@nongnu.org; Fri, 23 Feb 2018 19:34:27 -0500 Received: from mail-pl0-x230.google.com ([2607:f8b0:400e:c01::230]:36840) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1epNnD-0002OF-SX for qemu-devel@nongnu.org; Fri, 23 Feb 2018 19:34:24 -0500 Received: by mail-pl0-x230.google.com with SMTP id v3so5841873plg.3 for ; Fri, 23 Feb 2018 16:34:23 -0800 (PST) References: <20180223153636.29809-1-alex.bennee@linaro.org> <20180223153636.29809-23-alex.bennee@linaro.org> From: Richard Henderson Message-ID: <936e2bf8-e254-20fc-cfba-11fdff64a957@linaro.org> Date: Fri, 23 Feb 2018 16:34:19 -0800 MIME-Version: 1.0 In-Reply-To: <20180223153636.29809-23-alex.bennee@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v3 22/31] arm/helper.c: re-factor recpe and add recepe_f16 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= , qemu-arm@nongnu.org Cc: qemu-devel@nongnu.org, Peter Maydell On 02/23/2018 07:36 AM, Alex Bennée wrote: > It looks like the ARM ARM has simplified the pseudo code for the > calculation which is done on a fixed point 9 bit integer maths. So > while adding f16 we can also clean this up to be a little less heavy > on the floating point and just return the fractional part and leave > the calle's to do the final packing of the result. > > Signed-off-by: Alex Bennée > > --- > v3 > - fix comment 2.0^-16 > - f16_exp >= 29 (biased) > - remove confusing comment about fpst > --- Reviewed-by: Richard Henderson r~