Re: [Mesa-dev] [PATCH 01/11] util: Add foreach_reverse for dynarray

2018-10-04 Thread Jason Ekstrand
On Fri, Sep 14, 2018 at 10:46 PM Caio Marcelo de Oliveira Filho < caio.olive...@intel.com> wrote: > Useful to walk the array removing elements by swapping them with the > last element. > --- > src/util/u_dynarray.h | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/src/util/u_dynarray

[Mesa-dev] [PATCH 01/11] util: Add foreach_reverse for dynarray

2018-09-14 Thread Caio Marcelo de Oliveira Filho
Useful to walk the array removing elements by swapping them with the last element. --- src/util/u_dynarray.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/util/u_dynarray.h b/src/util/u_dynarray.h index 6bea481d44b..f74bfc7080b 100644 --- a/src/util/u_dynarray.h +++ b/src/util/u_dy