[Bug libstdc++/54757] FAIL: ext/random/beta_distribution/cons/default.cc (test for excess errors)

dave.anglin at bell dot net gcc-bugzilla@gcc.gnu.org
Sun Sep 30 00:50:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54757

--- Comment #2 from dave.anglin at bell dot net 2012-09-30 00:50:17 UTC ---
On 29-Sep-12, at 7:34 PM, paolo.carlini at oracle dot com wrote:

>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54757
>
> --- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com>  
> 2012-09-29 23:34:20 UTC ---
> I suppose _GLIBCXX_USE_C99_MATH_TR1 remains undefined on hppa-hpux,  
> right?

Yes.

>
> In that case, I would pre-approve a patch changing each of the three  
> uses of
> the C99 hypot in include/ext/random and include/ext/random.tcc with
> std::sqrt(x*x + y*y) as a fall back, like:
>
> #if _GLIBCXX_USE_C99_MATH_TR1
>        *__f++ = std::hypot(__x, __y);
> #else
>        *__f++ = std::sqrt(__x * __x + __y * __y);
> #endif


There is an implementation of hypot, so I'm wondering if we can't do  
better.

Testing suggestion.

Dave
--
John David Anglin    dave.anglin@bell.net



More information about the Gcc-bugs mailing list