develooper Front page | perl.perl5.porters | Postings from June 2021

quadmath with 32 bit ints

Thread Next
David Cantrell
June 9, 2021 08:50
quadmath with 32 bit ints
Message ID:
So that I can torture-test some of my code I've tried to build perls 
with all the various combinations of integer and float sizes. And I've 
come across a problem with 32-bit integers and quadruple-precsion floats 
via libquadmath.

On a 32-bit Linux, perl builds just fine with the following Configure 
options and passes all its tests:

-de -Duselongdouble
-de -Duse64bitint
-de -Duse64bitint -Duselongdouble
-de -Duse64bitint -Dusequadmath

It builds, but has test failures with:

-de -Dusequadmath

I've tried with 5.32.0 and 5.34.0 and get exactly the same test failures 
on both:

Failed 10 tests out of 2449, 99.59% okay.

That inclines me to think that the bug is *probably* in Math::BigInt, 
but I suppose there's a possibility that that just happens to be the 
only place in the tests that tickles a bug in perl itself.

Before I go digging into this, has anyone seen this before? Is anyone 
familiar enough with BigInt to know what the problem is?

David Cantrell

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About