gallium/util: Add align_calloc
authorAxel Davy <axel.davy@ens.fr>
Fri, 21 Oct 2016 15:25:08 +0000 (17:25 +0200)
committerAxel Davy <axel.davy@ens.fr>
Mon, 24 Oct 2016 19:56:44 +0000 (21:56 +0200)
commit54010cf8b6da71a1b14c0dc586bb7e6be27052de
tree7f3da2e9c31e24b54921ca59a8d2d4ab7878bb77
parent25beccb379731b0e6fc728982190779da47aa6fd
gallium/util: Add align_calloc

Add implementation for align_calloc,
which is align_malloc + memset.

v2: add if (ptr) before memset.
Fix indentation.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/util/u_memory.h