[Bug libstdc++/80506] Wrong magic number in std::gamma_distribution

2018-11-21 Thread emsr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80506

emsr at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #13 from emsr at gcc dot gnu.org ---
2018-05-07  Edward Smith-Rowland  <3dw...@verizon.net>

Moar PR libstdc++/80506
* include/bits/random.tcc (gamma_distribution::__generate_impl()):
Fix magic number used in loop condition.

[Bug libstdc++/80506] Wrong magic number in std::gamma_distribution

2018-05-07 Thread emsr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80506

--- Comment #12 from emsr at gcc dot gnu.org ---
Yes, all other stuff is rolled back except for this patch.

[Bug libstdc++/80506] Wrong magic number in std::gamma_distribution

2018-05-07 Thread emsr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80506

--- Comment #11 from emsr at gcc dot gnu.org ---
Yes, I had an ugly morning with svn.
Hopefully the bits are rolled back.
That chunk is 83140.
Ed.

[Bug libstdc++/80506] Wrong magic number in std::gamma_distribution

2018-05-07 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80506

--- Comment #10 from Jonathan Wakely  ---
(In reply to emsr from comment #5)
> Author: emsr
> Date: Mon May  7 15:55:11 2018
> New Revision: 260001
> 
> URL: https://gcc.gnu.org/viewcvs?rev=260001=gcc=rev
> Log:
> 2018-05-07  Edward Smith-Rowland  <3dw...@verizon.net>
> 
>   Moar PR libstdc++/80506
>   * include/bits/random.tcc (gamma_distribution::__generate_impl()):
>   Fix magic number used in loop condition.
> 
> 
> Removed:
>
> trunk/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/
> 02_assoc_legendre/check_value.cc
> Modified:
> trunk/libstdc++-v3/ChangeLog
> trunk/libstdc++-v3/include/tr1/legendre_function.tcc
>
> trunk/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/check_value.
> cc

This commit seems to be something unrelated, was it committed by mistake?

[Bug libstdc++/80506] Wrong magic number in std::gamma_distribution

2018-05-07 Thread emsr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80506

--- Comment #9 from emsr at gcc dot gnu.org ---
Author: emsr
Date: Mon May  7 16:59:08 2018
New Revision: 260008

URL: https://gcc.gnu.org/viewcvs?rev=260008=gcc=rev
Log:
2018-05-07  Edward Smith-Rowland  <3dw...@verizon.net>

Moar PR libstdc++/80506
* include/bits/random.tcc (gamma_distribution::__generate_impl()):
Fix magic number used in loop condition.

Actually put the file in.
Don't know what my problem is today...

Modified:
trunk/libstdc++-v3/include/bits/random.tcc

[Bug libstdc++/80506] Wrong magic number in std::gamma_distribution

2018-05-07 Thread emsr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80506

--- Comment #8 from emsr at gcc dot gnu.org ---
Author: emsr
Date: Mon May  7 16:23:29 2018
New Revision: 260006

URL: https://gcc.gnu.org/viewcvs?rev=260006=gcc=rev
Log:
2018-05-07  Edward Smith-Rowland  <3dw...@verizon.net>
Jonathan Wakely  

Backport from mainline
2018-05-07  Edward Smith-Rowland  <3dw...@verizon.net>

PR libstdc++/80506
* include/bits/random.tcc (gamma_distribution::operator()): Fix magic
number used in loop condition.
(gamma_distribution::__generate_impl()): Ditto.


Modified:
branches/gcc-7-branch/libstdc++-v3/ChangeLog
branches/gcc-7-branch/libstdc++-v3/include/bits/random.tcc

[Bug libstdc++/80506] Wrong magic number in std::gamma_distribution

2018-05-07 Thread emsr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80506

--- Comment #7 from emsr at gcc dot gnu.org ---
Author: emsr
Date: Mon May  7 16:19:34 2018
New Revision: 260005

URL: https://gcc.gnu.org/viewcvs?rev=260005=gcc=rev
Log:
2018-05-07  Edward Smith-Rowland  <3dw...@verizon.net>

Backport from mainline
2018-05-07  Edward Smith-Rowland  <3dw...@verizon.net>

Moar PR libstdc++/80506
* include/bits/random.tcc (gamma_distribution::__generate_impl()):
Fix magic number used in loop condition.


Modified:
branches/gcc-8-branch/libstdc++-v3/ChangeLog
branches/gcc-8-branch/libstdc++-v3/include/bits/random.tcc

[Bug libstdc++/80506] Wrong magic number in std::gamma_distribution

2018-05-07 Thread emsr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80506

--- Comment #6 from emsr at gcc dot gnu.org ---
Author: emsr
Date: Mon May  7 16:17:32 2018
New Revision: 260004

URL: https://gcc.gnu.org/viewcvs?rev=260004=gcc=rev
Log:
2018-05-07  Edward Smith-Rowland  <3dw...@verizon.net>

Moar PR libstdc++/80506
* include/bits/random.tcc (gamma_distribution::__generate_impl()):
Fix magic number used in loop condition.


Modified:
trunk/libstdc++-v3/ChangeLog

[Bug libstdc++/80506] Wrong magic number in std::gamma_distribution

2018-05-07 Thread emsr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80506

--- Comment #5 from emsr at gcc dot gnu.org ---
Author: emsr
Date: Mon May  7 15:55:11 2018
New Revision: 260001

URL: https://gcc.gnu.org/viewcvs?rev=260001=gcc=rev
Log:
2018-05-07  Edward Smith-Rowland  <3dw...@verizon.net>

Moar PR libstdc++/80506
* include/bits/random.tcc (gamma_distribution::__generate_impl()):
Fix magic number used in loop condition.


Removed:
   
trunk/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/02_assoc_legendre/check_value.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/tr1/legendre_function.tcc
   
trunk/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/check_value.cc

[Bug libstdc++/80506] Wrong magic number in std::gamma_distribution

2018-05-05 Thread emsr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80506

--- Comment #4 from emsr at gcc dot gnu.org ---
Created attachment 44079
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44079=edit
Patch for trunk and branch-8.

Ok, i was looking at backporting this and there are two more places in 
  gamma_distribution<_RealType>::
  __generate_impl(_ForwardIterator __f, _ForwardIterator __t,
  _UniformRandomNumberGenerator& __urng,
  const param_type& __param)
where this same bit is pasted!

So I'll patch trunk on down.

[Bug libstdc++/80506] Wrong magic number in std::gamma_distribution

2018-05-01 Thread emsr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80506

--- Comment #3 from emsr at gcc dot gnu.org ---
I'm now of the opinion that we should push these down.
At least gcc-7.
That's what I'm doing with the specfun bits.

[Bug libstdc++/80506] Wrong magic number in std::gamma_distribution

2018-04-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80506

--- Comment #2 from Jonathan Wakely  ---
This is fixed on trunk, I'm wondering whether to backport it to gcc-6-branch
and gcc-7-branch.

[Bug libstdc++/80506] Wrong magic number in std::gamma_distribution

2017-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80506

--- Comment #1 from Jonathan Wakely  ---
Author: redi
Date: Mon Apr 24 13:43:19 2017
New Revision: 247099

URL: https://gcc.gnu.org/viewcvs?rev=247099=gcc=rev
Log:
PR libstdc++/80506 fix constant used in condition

PR libstdc++/80506
* include/bits/random.tcc (gamma_distribution::operator()): Fix magic
number used in loop condition.

Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/random.tcc

[Bug libstdc++/80506] Wrong magic number in std::gamma_distribution

2017-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80506

Jonathan Wakely  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-04-24
 Ever confirmed|0   |1