Add nasm_zalloc() to nasmlib.c
authorH. Peter Anvin <hpa@zytor.com>
Tue, 25 Sep 2007 21:27:34 +0000 (14:27 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 25 Sep 2007 21:27:34 +0000 (14:27 -0700)
commitcfdf646e9a818067887cdc9c01ade5b79f699190
tree9b72a37341ccc6718cf23d6a3527ddb22d9a6d9e
parent3e1aaa9dd0cc48e390deb1c3f356b3ad1781af67
Add nasm_zalloc() to nasmlib.c

Add nasm_zalloc(), a wrapper around calloc(), to allocate
zero-initialized memory.  For large allocations, this is often far
more efficient than allocating and zeroing, since the operating system
tends to keep a pool of zero pages around.
hashtbl.c
nasmlib.c
nasmlib.h