questions about NetBSD port
Iain Buclaw via Digitalmars-d
digitalmars-d at puremagic.com
Wed Feb 3 02:36:31 PST 2016
On 3 February 2016 at 10:25, Nikolay via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:
> On Wednesday, 3 February 2016 at 07:45:23 UTC, Iain Buclaw wrote:
>
>> On 2 Feb 2016 7:50 pm, "Nikolay via Digitalmars-d" <
>> digitalmars-d at puremagic.com> wrote:
>>
>> Is NetBSD similar to FreeBSD in that you have 80-bit reals but only the
>> first 53 bits of the mantissa are used?
>>
>> I don't know how accurate LDC is when it sets up compile time float
>> properties. But what do you get when:
>>
>> pragma (msg, real.sizeof);
>> pragma (msg, real.mant_dig);
>>
>> Alternatively, use a C program with printfs for:
>>
>> sizeof(long double)
>> LDBL_MANT_DIG
>>
>> To make sure both ldc and gcc are agreeable.
>>
>> Have a look at rt/dmain2.d (look for fldcw) if the problem is because of
>> what I describe above.
>>
>
> I suppose it is not similar FreeBSD ( according
> https://www.netbsd.org/changes/changes-7.0.html#x86 )
>
That is a relatively recent change with respect to the age of NetBSD. :-)
I guess that in LDC the intrinsic for std.math.sin is forwarded to NetBSD
libm.sinl?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20160203/886aff44/attachment.html>
More information about the Digitalmars-d
mailing list