[Mesa-dev] [PATCH 1/4 v2] gallium/util: Add align_calloc

2016-10-23 Thread Axel Davy
Add implementation for align_calloc, which is align_malloc + memset. v2: add if (ptr) before memset. Fix indentation. Signed-off-by: Axel Davy --- src/gallium/auxiliary/util/u_memory.h | 8 1 file changed, 8 insertions(+) diff --git a/src/gallium/auxiliary/util/u_memory.h b/src/galli

Re: [Mesa-dev] [PATCH 1/4 v2] gallium/util: Add align_calloc

2016-10-24 Thread Nicolai Hähnle
On 23.10.2016 12:23, Axel Davy wrote: Add implementation for align_calloc, which is align_malloc + memset. v2: add if (ptr) before memset. Fix indentation. Signed-off-by: Axel Davy Reviewed-by: Nicolai Hähnle --- src/gallium/auxiliary/util/u_memory.h | 8 1 file changed, 8 inser