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

Jonathan Wakely jwakely@redhat.com
Thu Sep 1 15:35:00 GMT 2016


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!




More information about the Libstdc++ mailing list