diff options
Diffstat (limited to 'sim/common/hw-alloc.h')
-rw-r--r-- | sim/common/hw-alloc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/common/hw-alloc.h b/sim/common/hw-alloc.h index 699d017..2cea44f 100644 --- a/sim/common/hw-alloc.h +++ b/sim/common/hw-alloc.h @@ -33,6 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define HW_ZALLOC(me,type) (type*) hw_zalloc (me, sizeof (type)) #define HW_MALLOC(me,type) (type*) hw_malloc (me, sizeof (type)) +#define HW_NALLOC(me,type,n) (type*) hw_malloc (me, sizeof (type) * (n)) #define HW_NZALLOC(me,type,n) (type*) hw_zalloc (me, sizeof (type) * (n)) extern void *hw_zalloc (struct hw *me, unsigned long size); |