Log for attempted build of libmath-mpfr-perl_3.17-1 on m68k (dist=unstable)

sisyphus1 at optusnet.com.au sisyphus1 at optusnet.com.au
Fri May 3 12:53:25 UTC 2013



-----Original Message----- 
From: Thorsten Glaser
>
> sisyphus1 at optusnet.com.au dixit:
>
> > we could do:
> […]
> > Does this sound feasible, or am I opening a can of worms ?
>
> My Perl is very minimal, so I’ll leave this to the experts.
> Is loss of precision (cutting off the upper 32 bit of the
> 64-bit value) no problem in the specific use case?
>

I don't think the loss of precision is an issue here.
It isn't a problem on my little-endian machine (which also has 64-bit IV and 
32-bit mp_prec_t).
I'm thinking that if, on a big-endian machine, I can re-rarrange the byte 
order of the long long (IV) appropriately, then the 'P' specifier should 
still be able to come up with the right figure.
And I speculate that the 'return unpack("J>", pack("J<", $_[0]));' will 
perform that re-arrangement correctly.

At least, that's what I guess/think/hope .... but I don't have a big-endian 
machine at my disposal, so I'm making quite a few assumptions - which is not 
exactly a wise thing to be doing. (I could be way off track :-)

Cheers,
Rob 




More information about the pkg-perl-maintainers mailing list