This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch, libstdc++] std::shuffle: Generate two swap positions at a time if possible
- From: Marc Glisse <marc dot glisse at inria dot fr>
- To: Jonathan Wakely <jwakely at redhat dot com>
- Cc: Eelis van der Weegen <eelis at eelis dot net>, libstdc++ <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 1 Sep 2016 17:27:40 +0200 (CEST)
- Subject: Re: [patch, libstdc++] std::shuffle: Generate two swap positions at a time if possible
- Authentication-results: sourceware.org; auth=none
- References: <ng536o$4iu$1@ger.gmane.org> <ng53cl$4iu$2@ger.gmane.org> <CAH6eHdTnASg7A5USA_sTAHXPfUFmkrZvF27tZUJhj5ywwDVDag@mail.gmail.com> <5728B8CC.7030405@eelis.net> <20160831124502.GH3342@redhat.com> <20160901151446.GP3342@redhat.com>
- Reply-to: libstdc++ at gcc dot gnu dot org
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
???
--
Marc Glisse