2004-12-06 Richard Henderson <rth@redhat.com>
+ * intrinsics/cshift0.c, intrinsics/eoshift0.c, intrinsics/eoshift2.c,
+ intrinsics/pack_generic.c, intrinsics/string_intrinsics.c,
+ intrinsics/transpose_generic.c, m4/ifunction.m4, m4/matmul.m4,
+ m4/matmull.m4, m4/transpose.m4: Use internal_malloc_size instead
+ of internal_malloc.
+ * generated/*: Rebuild.
+
+2004-12-06 Richard Henderson <rth@redhat.com>
+
* intrinsics/c99_functions.c, intrinsics/eoshift0.c,
intrinsics/eoshift2.c, intrinsics/exit.c, intrinsics/flush.c,
intrinsics/ishftc.c, intrinsics/mvbits.c, intrinsics/pack_generic.c,
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_LOGICAL_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_LOGICAL_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_LOGICAL_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_LOGICAL_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_LOGICAL_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_LOGICAL_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_LOGICAL_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_LOGICAL_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[1].stride = retarray->dim[0].ubound+1;
}
- retarray->data = internal_malloc (sizeof (GFC_COMPLEX_4) * size0 (retarray));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_COMPLEX_4) * size0 (retarray));
retarray->base = 0;
}
dest[x*rxstride + y*rystride] += abase[x*axstride + n*aystride] * bbase[n*bxstride + y*bystride];
}
}
-
retarray->dim[1].stride = retarray->dim[0].ubound+1;
}
- retarray->data = internal_malloc (sizeof (GFC_COMPLEX_8) * size0 (retarray));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_COMPLEX_8) * size0 (retarray));
retarray->base = 0;
}
dest[x*rxstride + y*rystride] += abase[x*axstride + n*aystride] * bbase[n*bxstride + y*bystride];
}
}
-
retarray->dim[1].stride = retarray->dim[0].ubound+1;
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_4) * size0 (retarray));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_4) * size0 (retarray));
retarray->base = 0;
}
dest[x*rxstride + y*rystride] += abase[x*axstride + n*aystride] * bbase[n*bxstride + y*bystride];
}
}
-
retarray->dim[1].stride = retarray->dim[0].ubound+1;
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_8) * size0 (retarray));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_8) * size0 (retarray));
retarray->base = 0;
}
dest[x*rxstride + y*rystride] += abase[x*axstride + n*aystride] * bbase[n*bxstride + y*bystride];
}
}
-
retarray->dim[1].stride = retarray->dim[0].ubound+1;
}
- retarray->data = internal_malloc (sizeof (GFC_LOGICAL_4) * size0 (retarray));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_LOGICAL_4) * size0 (retarray));
retarray->base = 0;
}
dest += rystride - (rxstride * xcount);
}
}
-
retarray->dim[1].stride = retarray->dim[0].ubound+1;
}
- retarray->data = internal_malloc (sizeof (GFC_LOGICAL_8) * size0 (retarray));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_LOGICAL_8) * size0 (retarray));
retarray->base = 0;
}
dest += rystride - (rxstride * xcount);
}
}
-
retarray->dim[1].stride = retarray->dim[0].ubound+1;
}
- retarray->data = internal_malloc (sizeof (GFC_REAL_4) * size0 (retarray));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_REAL_4) * size0 (retarray));
retarray->base = 0;
}
dest[x*rxstride + y*rystride] += abase[x*axstride + n*aystride] * bbase[n*bxstride + y*bystride];
}
}
-
retarray->dim[1].stride = retarray->dim[0].ubound+1;
}
- retarray->data = internal_malloc (sizeof (GFC_REAL_8) * size0 (retarray));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_REAL_8) * size0 (retarray));
retarray->base = 0;
}
dest[x*rxstride + y*rystride] += abase[x*axstride + n*aystride] * bbase[n*bxstride + y*bystride];
}
}
-
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_REAL_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_REAL_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_REAL_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_REAL_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_REAL_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_REAL_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_REAL_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_REAL_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_COMPLEX_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_COMPLEX_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_COMPLEX_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_COMPLEX_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_REAL_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_REAL_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_REAL_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_REAL_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_COMPLEX_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_COMPLEX_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_COMPLEX_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_COMPLEX_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_INTEGER_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_INTEGER_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_REAL_4) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_REAL_4)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (GFC_REAL_8) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (GFC_REAL_8)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
ret->dim[1].ubound = source->dim[0].ubound - source->dim[0].lbound;
ret->dim[1].stride = ret->dim[0].ubound+1;
- ret->data = internal_malloc (sizeof (GFC_INTEGER_4) * size0 (ret));
+ ret->data = internal_malloc_size (sizeof (GFC_INTEGER_4) * size0 (ret));
ret->base = 0;
}
ret->dim[1].ubound = source->dim[0].ubound - source->dim[0].lbound;
ret->dim[1].stride = ret->dim[0].ubound+1;
- ret->data = internal_malloc (sizeof (GFC_INTEGER_8) * size0 (ret));
+ ret->data = internal_malloc_size (sizeof (GFC_INTEGER_8) * size0 (ret));
ret->base = 0;
}
{
int i;
- ret->data = internal_malloc (size * size0 ((array_t *)array));
+ ret->data = internal_malloc_size (size * size0 ((array_t *)array));
ret->base = 0;
ret->dtype = array->dtype;
for (i = 0; i < GFC_DESCRIPTOR_RANK (array); i++)
{
int i;
- ret->data = internal_malloc (size * size0 ((array_t *)array));
+ ret->data = internal_malloc_size (size * size0 ((array_t *)array));
ret->base = 0;
ret->dtype = array->dtype;
for (i = 0; i < GFC_DESCRIPTOR_RANK (array); i++)
{
int i;
- ret->data = internal_malloc (size * size0 ((array_t *)array));
+ ret->data = internal_malloc_size (size * size0 ((array_t *)array));
ret->base = 0;
ret->dtype = array->dtype;
for (i = 0; i < GFC_DESCRIPTOR_RANK (array); i++)
ret->dim[0].ubound = total - 1;
ret->dim[0].stride = 1;
- ret->data = internal_malloc (size * total);
+ ret->data = internal_malloc_size (size * total);
ret->base = 0;
if (total == 0)
ret->dim[0].lbound = 0;
ret->dim[0].ubound = -1;
ret->dim[0].stride = 1;
- ret->data = internal_malloc (0);
+ ret->data = internal_malloc_size (0);
ret->base = 0;
return;
ret->dim[0].ubound = total - 1;
ret->dim[0].stride = 1;
- ret->data = internal_malloc (size * total);
+ ret->data = internal_malloc_size (size * total);
ret->base = 0;
}
if (*len > 0)
{
/* Allocate space for result string. */
- *dest = internal_malloc (*len);
+ *dest = internal_malloc_size (*len);
/* copy string if necessary. */
memmove (*dest, src, *len);
ret->dim[1].ubound = source->dim[0].ubound - source->dim[0].lbound;
ret->dim[1].stride = ret->dim[0].ubound+1;
- ret->data = internal_malloc (size * size0 ((array_t*)ret));
+ ret->data = internal_malloc_size (size * size0 ((array_t*)ret));
ret->base = 0;
}
retarray->dim[n].stride = retarray->dim[n-1].stride * extent[n-1];
}
- retarray->data = internal_malloc (sizeof (rtype_name) *
- (retarray->dim[rank-1].stride * extent[rank-1]));
+ retarray->data
+ = internal_malloc_size (sizeof (rtype_name)
+ * retarray->dim[rank-1].stride
+ * extent[rank-1]);
retarray->base = 0;
}
retarray->dim[1].stride = retarray->dim[0].ubound+1;
}
- retarray->data = internal_malloc (sizeof (rtype_name) * size0 (retarray));
+ retarray->data
+ = internal_malloc_size (sizeof (rtype_name) * size0 (retarray));
retarray->base = 0;
}
dest[x*rxstride + y*rystride] += abase[x*axstride + n*aystride] * bbase[n*bxstride + y*bystride];
}
}
-
retarray->dim[1].stride = retarray->dim[0].ubound+1;
}
- retarray->data = internal_malloc (sizeof (rtype_name) * size0 (retarray));
+ retarray->data
+ = internal_malloc_size (sizeof (rtype_name) * size0 (retarray));
retarray->base = 0;
}
dest += rystride - (rxstride * xcount);
}
}
-
ret->dim[1].ubound = source->dim[0].ubound - source->dim[0].lbound;
ret->dim[1].stride = ret->dim[0].ubound+1;
- ret->data = internal_malloc (sizeof (rtype_name) * size0 (ret));
+ ret->data = internal_malloc_size (sizeof (rtype_name) * size0 (ret));
ret->base = 0;
}