develooper Front page | perl.perl5.porters | Postings from September 2014

Re: What should NV_PRESERVES_UV et al be set to for USE_LONG_DOUBLE builds with MinGW?

Thread Previous | Thread Next
From:
sisyphus1
Date:
September 20, 2014 12:36
Subject:
Re: What should NV_PRESERVES_UV et al be set to for USE_LONG_DOUBLE builds with MinGW?
Message ID:
EB9AE036DB3A44FBB48C67578B8E237B@OwnerPC311012
-----Original Message----- 
From: sisyphus1@optusnet.com.au
Sent: Saturday, September 20, 2014 12:45 PM
To: Steve Hay ; perl5-porters@perl.org
Subject: Re: What should NV_PRESERVES_UV et al be set to for USE_LONG_DOUBLE 
builds with MinGW?

> Just looking at the patch you posted, and you've got:
>
> +    $opt{nvsize} = 12;
>
> Even for the 80-bit long double, the usual thing (on linux, at least) is 
> to specify a value of 16 since that's how many bytes are actually 
> allocated to it.
>
> Sadly, I don't think that changing it to 16 is going to solve any of your 
> issues, but I'd be delighted if I was wrong about that.

OMG !! ... seems that the mingw long double really *is* only 12 bytes long. 
(I'm surprised by that ... and also surprised that I didn't already know 
it.)

Ignore the above post.

Cheers,
Rob 


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About