From owner-freebsd-hackers@freebsd.org Sat May 25 21:03:20 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F55715B6535 for ; Sat, 25 May 2019 21:03:20 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 943C6896F4 for ; Sat, 25 May 2019 21:03:19 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id x4PL3CIg030847 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 26 May 2019 00:03:15 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x4PL3CIg030847 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x4PL3C8s030846; Sun, 26 May 2019 00:03:12 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 26 May 2019 00:03:11 +0300 From: Konstantin Belousov To: Yuri Cc: Freebsd hackers list Subject: Re: What is the portable 128-bit floating point type? Message-ID: <20190525210311.GW2748@kib.kiev.ua> References: <20190525200437.GV2748@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 May 2019 21:03:20 -0000 On Sat, May 25, 2019 at 01:50:24PM -0700, Yuri wrote: > On 2019-05-25 13:04, Konstantin Belousov wrote: > > Neither i386 nor amd64 have hardware-supported 128 bit floating point > > type. long double is defined by both i386 and amd64 Unix ABI as 80 bits > > (10 bytes) representation as defined by IEEEE FP standard and supported > > by x87 FPU (not-SSE). The difference in size is due to the different > > natural alignment between 32 and 64 bit ISA. > > > So it looks like there is no true quad-precision float available. > > > Based on this conversation https://github.com/bluescarni/mppp/issues/186 > FreeBSD used to support __float128. Why was it removed? No idea, it seems to be clang-specific. gcc 8.3 does accept the type. On the other hand, I have no idea if any support is required from libgcc (probably it is), and we almost certainly do not have it in the base library.