[PATCH] normal_distribution<double> performance improvement with SSE

Ulrich Drepper drepper@gmail.com
Wed Sep 26 17:03:00 GMT 2012


On Wed, Sep 26, 2012 at 12:14 PM, Marc Glisse <marc.glisse@inria.fr> wrote:
>> Currently the random number engine interface is
>> inefficient since it returns a single number.  What we need is an
>> additional interface to return vectors.
>
>
> Isn't the __generate interface good enough?

__generate is for the distributions.  I'm talking about the engines.
Bulk access isn't that easy there.  The stream is deterministic and if
I request 32 bytes of entropy although I only need 16 bytes I cannot
push back the remaining 16 bytes.  Without that the next use of the
engine would produce different bits.



More information about the Libstdc++ mailing list