From owner-freebsd-amd64@FreeBSD.ORG Wed Feb 29 07:52:36 2012 Return-Path: Delivered-To: freebsd-amd64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E4D91065673 for ; Wed, 29 Feb 2012 07:52:36 +0000 (UTC) (envelope-from tomdean@speakeasy.org) Received: from asbnvacz-mailrelay01.megapath.net (asbnvacz-mailrelay01.megapath.net [207.145.128.243]) by mx1.freebsd.org (Postfix) with ESMTP id 475988FC08 for ; Wed, 29 Feb 2012 07:52:36 +0000 (UTC) Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.53]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id 0B67EA700B8 for ; Wed, 29 Feb 2012 02:52:34 -0500 (EST) Received: (qmail 31008 invoked from network); 29 Feb 2012 07:52:34 -0000 Received: by simscan 1.4.0 ppid: 9849, pid: 27459, t: 0.1876s scanners: clamav: 0.88.2/m:52/d:13495 spam: 3.0.4 Received: from unknown (HELO P9X79.tddhome) (tomdean@[24.113.107.31]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 29 Feb 2012 07:52:34 -0000 Message-ID: <4F4DD942.8070106@speakeasy.org> Date: Tue, 28 Feb 2012 23:52:34 -0800 From: "Thomas D. Dean" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120228 Thunderbird/10.0.2 MIME-Version: 1.0 To: Bruce Evans References: <4F3EA37F.9010207@speakeasy.org> <4F3EC0B4.6050107@speakeasy.org> <4F4DA398.6070703@speakeasy.org> <20120229161408.G2514@besplex.bde.org> In-Reply-To: <20120229161408.G2514@besplex.bde.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail8.sea5 X-Spam-Level: X-Spam-Status: No, score=0.9 required=8.0 tests=FORGED_RCVD_HELO, RATWARE_GECKO_BUILD autolearn=disabled version=3.0.4 Cc: freebsd-amd64@FreeBSD.org Subject: Re: Gcc46 and 128 Bit Floating Point X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Feb 2012 07:52:36 -0000 On 02/28/12 22:03, Bruce Evans wrote: > >> #include >> #include >> int main() { >> char buf[128]; >> __float128 x = sqrtq(2.0Q); >> quadmath_snprintf(buf, sizeof buf, "%.45Qf",x); >> printf("sin(%s) = ",buf); >> quadmath_snprintf(buf, sizeof buf, "%.45Qf",sinq(x)); >> printf("%s\n",buf); >> return 0; >> } >> >> gcc46 math.c -o math /usr/local/lib/gcc46/libquadmath.a /usr/lib/libm.a > objdump -d math | grep fsqrt 4014fd: d9 fa fsqrt 407bb4: d9 fa fsqrt Comes from the libs. Tom Dean