From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0EqB-0002hL-8A for qemu-devel@nongnu.org; Mon, 06 Jan 2014 13:23:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0Eq6-0002wI-H2 for qemu-devel@nongnu.org; Mon, 06 Jan 2014 13:23:55 -0500 Received: from mail-qa0-x236.google.com ([2607:f8b0:400d:c00::236]:48835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0Eq6-0002wA-Ax for qemu-devel@nongnu.org; Mon, 06 Jan 2014 13:23:50 -0500 Received: by mail-qa0-f54.google.com with SMTP id f11so3302180qae.13 for ; Mon, 06 Jan 2014 10:23:49 -0800 (PST) Sender: Richard Henderson Message-ID: <52CAF4B1.2040400@twiddle.net> Date: Mon, 06 Jan 2014 10:23:45 -0800 From: Richard Henderson MIME-Version: 1.0 References: <1389013881-15726-1-git-send-email-peter.maydell@linaro.org> <1389013881-15726-6-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1389013881-15726-6-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 05/24] softfloat: Fix float64_to_uint64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: Tom Musta , Peter Crosthwaite , patches@linaro.org, Michael Matz , Alexander Graf , Claudio Fontana , Dirk Mueller , Will Newton , Laurent Desnogues , =?ISO-8859-1?Q?Alex_Benn=E9e?= , kvmarm@lists.cs.columbia.edu, Christoffer Dall On 01/06/2014 05:11 AM, Peter Maydell wrote: > From: Tom Musta > > The comment preceding the float64_to_uint64 routine suggests that > the implementation is broken. And this is, indeed, the case. > > This patch properly implements the conversion of a 64-bit floating > point number to an unsigned, 64 bit integer. > > This contribution can be licensed under either the softfloat-2a or -2b > license. > > Signed-off-by: Tom Musta > Reviewed-by: Peter Maydell > Signed-off-by: Peter Maydell > --- > fpu/softfloat.c | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++----- > 1 file changed, 93 insertions(+), 8 deletions(-) Reviewed-by: Richard Henderson r~