#define isl_alloc_type(ctx,type) isl_alloc(ctx,type,sizeof(type))
#define isl_realloc_type(ctx,ptr,type) isl_realloc(ctx,ptr,type,sizeof(type))
#define isl_alloc_array(ctx,type,n) isl_alloc(ctx,type,(n)*sizeof(type))
+#define isl_calloc_array(ctx,type,n) (type *)calloc(n, sizeof(type))
#define isl_realloc_array(ctx,ptr,type,n) \
isl_realloc(ctx,ptr,type,(n)*sizeof(type))
size = round_up(4 * (bmap->n_ineq+1) / 3 - 1);
bits = ffs(size) - 1;
- index = isl_alloc_array(ctx, isl_int **, size);
- memset(index, 0, size * sizeof(isl_int **));
+ index = isl_calloc_array(ctx, isl_int **, size);
if (!index)
return bmap;
size = round_up(4 * bmap->n_div / 3 - 1);
bits = ffs(size) - 1;
- index = isl_alloc_array(ctx, int, size);
- memset(index, 0, size * sizeof(int));
+ index = isl_calloc_array(ctx, int, size);
if (!index)
return bmap;
eq = isl_blk_alloc(ctx, 1+total);
size = round_up(4 * (context->n_ineq+1) / 3 - 1);
bits = ffs(size) - 1;
- index = isl_alloc_array(ctx, isl_int **, size);
- memset(index, 0, size * sizeof(isl_int **));
+ index = isl_calloc_array(ctx, isl_int **, size);
if (!index)
return bset;