random numbers in bulk

Ulrich Drepper drepper@gmail.com
Sat Aug 25 23:34:00 GMT 2012


On Sat, Aug 25, 2012 at 5:42 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> Personally, assuming the name itself is already reserved / used elsewhere,

That was my thinking as well.  There shouldn't be any further namespace problem.


> .. another preliminary comment of mine: why not using iterators to specify
> those ranges, instead of plain pointers? Aren't the forward iterators
> generally Ok, like for std::fill itself?

Does it really add anything worth?  I used pointers because one of the
other extensions I'll submit really needs pointers because more than
one value is stored at once.

Also, one uses these interfaces to achieve performance.  In no
situation would you store the numbers in a non-sequential way since
this means cache misses.



More information about the Gcc-patches mailing list