Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2012 23:52:34 -0800
From:      "Thomas D. Dean" <tomdean@speakeasy.org>
To:        Bruce Evans <brde@optusnet.com.au>
Cc:        freebsd-amd64@FreeBSD.org
Subject:   Re: Gcc46 and 128 Bit Floating Point
Message-ID:  <4F4DD942.8070106@speakeasy.org>
In-Reply-To: <20120229161408.G2514@besplex.bde.org>
References:  <4F3EA37F.9010207@speakeasy.org> <CAGE5yCpvF0-b1iKAVGbya=fUNaYbGyrpj1PHSQxw4BvycNMLDg@mail.gmail.com> <4F3EC0B4.6050107@speakeasy.org> <4F4DA398.6070703@speakeasy.org> <20120229161408.G2514@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 02/28/12 22:03, Bruce Evans wrote:

>
>> #include <quadmath.h>
>> #include <stdio.h>
>> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F4DD942.8070106>