This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, libstdc++] std::shuffle: Generate two swap positions at a time if possible


On 01/09/16 17:27 +0200, Marc Glisse wrote:
On Thu, 1 Sep 2016, Jonathan Wakely wrote:

+	  const __uc_type __comp_range = __swap_range * (__swap_range + 1);

If __swap_range is 3, then __comp_range is 10 and

???

Bah :-)

Thanks. I guess I read the code correctly the other day at least!



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]