Received: from eggs.gnu.org ([2001:4830:134:3::10]:42591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epjBk-0003Ut-Gz for qemu-devel@nongnu.org; Sat, 24 Feb 2018 18:25:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1epjBg-0006DR-9v for qemu-devel@nongnu.org; Sat, 24 Feb 2018 18:25:08 -0500 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:44309) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1epjBg-0006DD-3Y for qemu-devel@nongnu.org; Sat, 24 Feb 2018 18:25:04 -0500 Received: by mail-pg0-x243.google.com with SMTP id l4so4765392pgp.11 for ; Sat, 24 Feb 2018 15:25:03 -0800 (PST) Sender: Richard Henderson References: <20180224201802.911-1-laurent@vivier.eu> <20180224201802.911-4-laurent@vivier.eu> From: Richard Henderson Message-ID: <6a42ae16-2db7-0427-dc26-c758de14e2a4@twiddle.net> Date: Sat, 24 Feb 2018 15:24:59 -0800 MIME-Version: 1.0 In-Reply-To: <20180224201802.911-4-laurent@vivier.eu> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 3/4] softfloat: use floatx80_infinity in softfloat List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier , qemu-devel@nongnu.org Cc: Thomas Huth , Aurelien Jarno On 02/24/2018 12:18 PM, Laurent Vivier wrote: > Since f3218a8 ("softfloat: add floatx80 constants") > floatx80_infinity is defined but never used. > > This patch updates floatx80 functions to use > this definition. > > This allows to define a different default Infinity > value on m68k: the m68k FPU defines infinity with > all bits set to zero in the mantissa. > > Signed-off-by: Laurent Vivier > --- > CC: Aurelien Jarno > v4: fix floatx80_to_int64() to check for NaN, not for infinity > fix floatx80_is_infinity() to ignore mantissa's MSB > > fpu/softfloat-specialize.h | 14 ++++++++++++++ > fpu/softfloat.c | 39 +++++++++++++++++++++++++-------------- > include/fpu/softfloat.h | 13 +++++++++++-- > 3 files changed, 50 insertions(+), 16 deletions(-) Reviewed-by: Richard Henderson r~