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

[perl #122571] sqrt() and sin() broken in AIX with long doubles

Thread Next
From:
Jarkko Hietaniemi via RT
Date:
September 8, 2014 13:07
Subject:
[perl #122571] sqrt() and sin() broken in AIX with long doubles
Message ID:
rt-4.0.18-15938-1410181637-578.122571-15-0@perl.org
On Sun Aug 31 08:58:00 2014, jhi wrote:
> I opened a new ticket (122668) because the combination of long doubles 
> and infinity can be so broken in AIX.  The brokenness, if present, is 
> detected dynamically in hints/aix.sh, in an upcoming change, and if 
> detected, long doubles is disabled.
> 
> If, however, long doubles still seem valid in AIX, another set of 
> upcoming patches fixes sqrt and sin by (a) implementing pp_sin (which 
> implements sqrt etc) a bit different by not using function pointers (b) 
> by removing the tests from t/op/exp.t that depend on testing trig 

http://perl5.git.perl.org/perl.git/commitdiff/af71714e5ef5109f8a41bdcfe59da43540fcd651

and

http://perl5.git.perl.org/perl.git/commitdiff/402bce5fcde176134b212beb8662ea0e2c5ce993

Though https://rt.perl.org/Ticket/Display.html?id=122668 still applies: long doubles seem to be quite broken in AIX, and can often (always?) be disabled, by the AIX hints.


> functions "very near" pi/-pi (c) dynamically detecting the potential 
> brokenness of powl() in AIX (a known issue) and using a workaround for it.
> >
> 




---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=122571

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