@@ -98,7 +98,8 @@ all_l1 (gfc_array_l1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -98,7 +98,8 @@ all_l16 (gfc_array_l16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -98,7 +98,8 @@ all_l2 (gfc_array_l2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -98,7 +98,8 @@ all_l4 (gfc_array_l4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -98,7 +98,8 @@ all_l8 (gfc_array_l8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -98,7 +98,8 @@ any_l1 (gfc_array_l1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -98,7 +98,8 @@ any_l16 (gfc_array_l16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -98,7 +98,8 @@ any_l2 (gfc_array_l2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -98,7 +98,8 @@ any_l4 (gfc_array_l4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -98,7 +98,8 @@ any_l8 (gfc_array_l8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -98,7 +98,8 @@ count_16_l (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -98,7 +98,8 @@ count_1_l (gfc_array_i1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -98,7 +98,8 @@ count_2_l (gfc_array_i2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -98,7 +98,8 @@ count_4_l (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -98,7 +98,8 @@ count_8_l (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ iall_i1 (gfc_array_i1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ miall_i1 (gfc_array_i1 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ siall_i1 (gfc_array_i1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ iall_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ miall_i16 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ siall_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ iall_i2 (gfc_array_i2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ miall_i2 (gfc_array_i2 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ siall_i2 (gfc_array_i2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ iall_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ miall_i4 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ siall_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ iall_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ miall_i8 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ siall_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ iany_i1 (gfc_array_i1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ miany_i1 (gfc_array_i1 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ siany_i1 (gfc_array_i1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ iany_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ miany_i16 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ siany_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ iany_i2 (gfc_array_i2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ miany_i2 (gfc_array_i2 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ siany_i2 (gfc_array_i2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ iany_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ miany_i4 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ siany_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ iany_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ miany_i8 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ siany_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ iparity_i1 (gfc_array_i1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ miparity_i1 (gfc_array_i1 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ siparity_i1 (gfc_array_i1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ iparity_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ miparity_i16 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ siparity_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ iparity_i2 (gfc_array_i2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ miparity_i2 (gfc_array_i2 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ siparity_i2 (gfc_array_i2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ iparity_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ miparity_i4 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ siparity_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ iparity_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ miparity_i8 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ siparity_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -56,7 +56,8 @@ maxloc0_16_i1 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_16_i1 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_16_i1 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_16_i16 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_16_i16 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_16_i16 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_16_i2 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_16_i2 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_16_i2 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_16_i4 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_16_i4 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_16_i4 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_16_i8 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_16_i8 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_16_i8 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_16_r10 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_16_r10 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_16_r10 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_16_r16 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_16_r16 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_16_r16 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_16_r4 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_16_r4 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_16_r4 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_16_r8 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_16_r8 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_16_r8 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_4_i1 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_4_i1 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_4_i1 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_4_i16 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_4_i16 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_4_i16 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_4_i2 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_4_i2 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_4_i2 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_4_i4 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_4_i4 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_4_i4 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_4_i8 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_4_i8 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_4_i8 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_4_r10 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_4_r10 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_4_r10 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_4_r16 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_4_r16 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_4_r16 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_4_r4 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_4_r4 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_4_r4 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_4_r8 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_4_r8 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_4_r8 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_8_i1 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_8_i1 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_8_i1 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_8_i16 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_8_i16 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_8_i16 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_8_i2 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_8_i2 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_8_i2 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_8_i4 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_8_i4 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_8_i4 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_8_i8 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_8_i8 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_8_i8 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_8_r10 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_8_r10 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_8_r10 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_8_r16 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_8_r16 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_8_r16 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_8_r4 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_8_r4 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_8_r4 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -56,7 +56,8 @@ maxloc0_8_r8 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mmaxloc0_8_r8 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ smaxloc0_8_r8 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -96,7 +96,8 @@ maxloc1_16_i1 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_16_i1 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_16_i1 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_16_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_16_i16 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_16_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_16_i2 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_16_i2 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_16_i2 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_16_i4 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_16_i4 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_16_i4 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_16_i8 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_16_i8 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_16_i8 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_16_r10 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_16_r10 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_16_r10 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_16_r16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_16_r16 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_16_r16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_16_r4 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_16_r4 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_16_r4 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_16_r8 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_16_r8 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_16_r8 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_4_i1 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_4_i1 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_4_i1 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_4_i16 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_4_i16 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_4_i16 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_4_i2 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_4_i2 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_4_i2 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_4_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_4_i4 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_4_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_4_i8 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_4_i8 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_4_i8 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_4_r10 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_4_r10 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_4_r10 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_4_r16 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_4_r16 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_4_r16 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_4_r4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_4_r4 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_4_r4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_4_r8 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_4_r8 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_4_r8 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_8_i1 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_8_i1 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_8_i1 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_8_i16 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_8_i16 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_8_i16 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_8_i2 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_8_i2 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_8_i2 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_8_i4 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_8_i4 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_8_i4 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_8_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_8_i8 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_8_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_8_r10 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_8_r10 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_8_r10 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_8_r16 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_8_r16 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_8_r16 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_8_r4 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_8_r4 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_8_r4 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ maxloc1_8_r8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mmaxloc1_8_r8 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ smaxloc1_8_r8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ maxval_i1 (gfc_array_i1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mmaxval_i1 (gfc_array_i1 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ smaxval_i1 (gfc_array_i1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ maxval_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mmaxval_i16 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ smaxval_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ maxval_i2 (gfc_array_i2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mmaxval_i2 (gfc_array_i2 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ smaxval_i2 (gfc_array_i2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ maxval_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mmaxval_i4 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ smaxval_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ maxval_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mmaxval_i8 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ smaxval_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ maxval_r10 (gfc_array_r10 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mmaxval_r10 (gfc_array_r10 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ smaxval_r10 (gfc_array_r10 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ maxval_r16 (gfc_array_r16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mmaxval_r16 (gfc_array_r16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ smaxval_r16 (gfc_array_r16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ maxval_r4 (gfc_array_r4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mmaxval_r4 (gfc_array_r4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ smaxval_r4 (gfc_array_r4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ maxval_r8 (gfc_array_r8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mmaxval_r8 (gfc_array_r8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ smaxval_r8 (gfc_array_r8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -56,7 +56,8 @@ minloc0_16_i1 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_16_i1 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_16_i1 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ minloc0_16_i16 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_16_i16 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_16_i16 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ minloc0_16_i2 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_16_i2 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_16_i2 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ minloc0_16_i4 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_16_i4 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_16_i4 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ minloc0_16_i8 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_16_i8 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_16_i8 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ minloc0_16_r10 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_16_r10 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_16_r10 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ minloc0_16_r16 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_16_r16 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_16_r16 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ minloc0_16_r4 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_16_r4 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_16_r4 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ minloc0_16_r8 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_16_r8 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_16_r8 (gfc_array_i16 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_16));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * rank);
}
@@ -56,7 +56,8 @@ minloc0_4_i1 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_4_i1 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_4_i1 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ minloc0_4_i16 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_4_i16 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_4_i16 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ minloc0_4_i2 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_4_i2 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_4_i2 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ minloc0_4_i4 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_4_i4 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_4_i4 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ minloc0_4_i8 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_4_i8 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_4_i8 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ minloc0_4_r10 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_4_r10 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_4_r10 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ minloc0_4_r16 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_4_r16 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_4_r16 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ minloc0_4_r4 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_4_r4 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_4_r4 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ minloc0_4_r8 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_4_r8 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_4_r8 (gfc_array_i4 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_4));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank);
}
@@ -56,7 +56,8 @@ minloc0_8_i1 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_8_i1 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_8_i1 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -56,7 +56,8 @@ minloc0_8_i16 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_8_i16 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_8_i16 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -56,7 +56,8 @@ minloc0_8_i2 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_8_i2 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_8_i2 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -56,7 +56,8 @@ minloc0_8_i4 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_8_i4 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_8_i4 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -56,7 +56,8 @@ minloc0_8_i8 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_8_i8 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_8_i8 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -56,7 +56,8 @@ minloc0_8_r10 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_8_r10 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_8_r10 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -56,7 +56,8 @@ minloc0_8_r16 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_8_r16 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_8_r16 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -56,7 +56,8 @@ minloc0_8_r4 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_8_r4 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_8_r4 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -56,7 +56,8 @@ minloc0_8_r8 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -197,7 +198,8 @@ mminloc0_8_r8 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -365,7 +367,8 @@ sminloc0_8_r8 (gfc_array_i8 * const restrict retarray,
if (retarray->base_addr == NULL)
{
GFC_DIMENSION_SET (retarray->dim[0], 0, rank, sizeof (GFC_INTEGER_8));
- retarray->dtype = (retarray->dtype & ~GFC_DTYPE_RANK_MASK) | 1;
+ retarray->rank = 1;
+ retarray->dtype = retarray->dtype;
retarray->offset = 0;
retarray->base_addr = xmalloc (sizeof (GFC_INTEGER_8) * rank);
}
@@ -96,7 +96,8 @@ minloc1_16_i1 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_16_i1 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_16_i1 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_16_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_16_i16 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_16_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_16_i2 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_16_i2 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_16_i2 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_16_i4 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_16_i4 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_16_i4 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_16_i8 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_16_i8 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_16_i8 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_16_r10 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_16_r10 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_16_r10 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_16_r16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_16_r16 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_16_r16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_16_r4 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_16_r4 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_16_r4 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_16_r8 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_16_r8 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_16_r8 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_4_i1 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_4_i1 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_4_i1 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_4_i16 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_4_i16 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_4_i16 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_4_i2 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_4_i2 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_4_i2 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_4_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_4_i4 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_4_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_4_i8 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_4_i8 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_4_i8 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_4_r10 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_4_r10 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_4_r10 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_4_r16 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_4_r16 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_4_r16 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_4_r4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_4_r4 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_4_r4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_4_r8 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_4_r8 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_4_r8 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_8_i1 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_8_i1 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_8_i1 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_8_i16 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_8_i16 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_8_i16 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_8_i2 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_8_i2 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_8_i2 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_8_i4 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_8_i4 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_8_i4 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_8_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_8_i8 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_8_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_8_r10 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_8_r10 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_8_r10 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_8_r16 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_8_r16 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_8_r16 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_8_r4 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_8_r4 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_8_r4 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ minloc1_8_r8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -298,7 +299,8 @@ mminloc1_8_r8 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -482,7 +484,8 @@ sminloc1_8_r8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ minval_i1 (gfc_array_i1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mminval_i1 (gfc_array_i1 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ sminval_i1 (gfc_array_i1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ minval_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mminval_i16 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ sminval_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ minval_i2 (gfc_array_i2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mminval_i2 (gfc_array_i2 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ sminval_i2 (gfc_array_i2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ minval_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mminval_i4 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ sminval_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ minval_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mminval_i8 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ sminval_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ minval_r10 (gfc_array_r10 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mminval_r10 (gfc_array_r10 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ sminval_r10 (gfc_array_r10 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ minval_r16 (gfc_array_r16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mminval_r16 (gfc_array_r16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ sminval_r16 (gfc_array_r16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ minval_r4 (gfc_array_r4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mminval_r4 (gfc_array_r4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ sminval_r4 (gfc_array_r4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ minval_r8 (gfc_array_r8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -290,7 +291,8 @@ mminval_r8 (gfc_array_r8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -469,7 +471,8 @@ sminval_r8 (gfc_array_r8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -99,7 +99,8 @@ norm2_r10 (gfc_array_r10 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -103,7 +103,8 @@ norm2_r16 (gfc_array_r16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -99,7 +99,8 @@ norm2_r4 (gfc_array_r4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -99,7 +99,8 @@ norm2_r8 (gfc_array_r8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ parity_l1 (gfc_array_l1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ parity_l16 (gfc_array_l16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ parity_l2 (gfc_array_l2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ parity_l4 (gfc_array_l4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -96,7 +96,8 @@ parity_l8 (gfc_array_l8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ product_c10 (gfc_array_c10 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ mproduct_c10 (gfc_array_c10 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ sproduct_c10 (gfc_array_c10 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ product_c16 (gfc_array_c16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ mproduct_c16 (gfc_array_c16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ sproduct_c16 (gfc_array_c16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ product_c4 (gfc_array_c4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ mproduct_c4 (gfc_array_c4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ sproduct_c4 (gfc_array_c4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ product_c8 (gfc_array_c8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ mproduct_c8 (gfc_array_c8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ sproduct_c8 (gfc_array_c8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ product_i1 (gfc_array_i1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ mproduct_i1 (gfc_array_i1 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ sproduct_i1 (gfc_array_i1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ product_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ mproduct_i16 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ sproduct_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ product_i2 (gfc_array_i2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ mproduct_i2 (gfc_array_i2 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ sproduct_i2 (gfc_array_i2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ product_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ mproduct_i4 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ sproduct_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ product_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ mproduct_i8 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ sproduct_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ product_r10 (gfc_array_r10 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ mproduct_r10 (gfc_array_r10 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ sproduct_r10 (gfc_array_r10 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ product_r16 (gfc_array_r16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ mproduct_r16 (gfc_array_r16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ sproduct_r16 (gfc_array_r16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ product_r4 (gfc_array_r4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ mproduct_r4 (gfc_array_r4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ sproduct_r4 (gfc_array_r4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ product_r8 (gfc_array_r8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ mproduct_r8 (gfc_array_r8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ sproduct_r8 (gfc_array_r8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -116,7 +116,8 @@ reshape_c10 (gfc_array_c10 * const restrict ret,
alloc_size = rs;
ret->base_addr = xmalloc (alloc_size);
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rdim;
+ ret->rank = rdim;
+ ret->dtype = source->dtype;
}
if (shape_empty)
@@ -116,7 +116,8 @@ reshape_c16 (gfc_array_c16 * const restrict ret,
alloc_size = rs;
ret->base_addr = xmalloc (alloc_size);
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rdim;
+ ret->rank = rdim;
+ ret->dtype = source->dtype;
}
if (shape_empty)
@@ -116,7 +116,8 @@ reshape_c4 (gfc_array_c4 * const restrict ret,
alloc_size = rs;
ret->base_addr = xmalloc (alloc_size);
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rdim;
+ ret->rank = rdim;
+ ret->dtype = source->dtype;
}
if (shape_empty)
@@ -116,7 +116,8 @@ reshape_c8 (gfc_array_c8 * const restrict ret,
alloc_size = rs;
ret->base_addr = xmalloc (alloc_size);
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rdim;
+ ret->rank = rdim;
+ ret->dtype = source->dtype;
}
if (shape_empty)
@@ -116,7 +116,8 @@ reshape_16 (gfc_array_i16 * const restrict ret,
alloc_size = rs;
ret->base_addr = xmalloc (alloc_size);
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rdim;
+ ret->rank = rdim;
+ ret->dtype = source->dtype;
}
if (shape_empty)
@@ -116,7 +116,8 @@ reshape_4 (gfc_array_i4 * const restrict ret,
alloc_size = rs;
ret->base_addr = xmalloc (alloc_size);
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rdim;
+ ret->rank = rdim;
+ ret->dtype = source->dtype;
}
if (shape_empty)
@@ -116,7 +116,8 @@ reshape_8 (gfc_array_i8 * const restrict ret,
alloc_size = rs;
ret->base_addr = xmalloc (alloc_size);
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rdim;
+ ret->rank = rdim;
+ ret->dtype = source->dtype;
}
if (shape_empty)
@@ -116,7 +116,8 @@ reshape_r10 (gfc_array_r10 * const restrict ret,
alloc_size = rs;
ret->base_addr = xmalloc (alloc_size);
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rdim;
+ ret->rank = rdim;
+ ret->dtype = source->dtype;
}
if (shape_empty)
@@ -116,7 +116,8 @@ reshape_r16 (gfc_array_r16 * const restrict ret,
alloc_size = rs;
ret->base_addr = xmalloc (alloc_size);
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rdim;
+ ret->rank = rdim;
+ ret->dtype = source->dtype;
}
if (shape_empty)
@@ -116,7 +116,8 @@ reshape_r4 (gfc_array_r4 * const restrict ret,
alloc_size = rs;
ret->base_addr = xmalloc (alloc_size);
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rdim;
+ ret->rank = rdim;
+ ret->dtype = source->dtype;
}
if (shape_empty)
@@ -116,7 +116,8 @@ reshape_r8 (gfc_array_r8 * const restrict ret,
alloc_size = rs;
ret->base_addr = xmalloc (alloc_size);
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rdim;
+ ret->rank = rdim;
+ ret->dtype = source->dtype;
}
if (shape_empty)
@@ -74,7 +74,8 @@ spread_c10 (gfc_array_c10 *ret, const gfc_array_c10 *source,
/* The front end has signalled that we need to populate the
return array descriptor. */
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rrank;
+ ret->rank = rrank;
+ ret->dtype = source->dtype;
dim = 0;
rs = 1;
for (n = 0; n < rrank; n++)
@@ -74,7 +74,8 @@ spread_c16 (gfc_array_c16 *ret, const gfc_array_c16 *source,
/* The front end has signalled that we need to populate the
return array descriptor. */
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rrank;
+ ret->rank = rrank;
+ ret->dtype = source->dtype;
dim = 0;
rs = 1;
for (n = 0; n < rrank; n++)
@@ -74,7 +74,8 @@ spread_c4 (gfc_array_c4 *ret, const gfc_array_c4 *source,
/* The front end has signalled that we need to populate the
return array descriptor. */
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rrank;
+ ret->rank = rrank;
+ ret->dtype = source->dtype;
dim = 0;
rs = 1;
for (n = 0; n < rrank; n++)
@@ -74,7 +74,8 @@ spread_c8 (gfc_array_c8 *ret, const gfc_array_c8 *source,
/* The front end has signalled that we need to populate the
return array descriptor. */
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rrank;
+ ret->rank = rrank;
+ ret->dtype = source->dtype;
dim = 0;
rs = 1;
for (n = 0; n < rrank; n++)
@@ -74,7 +74,8 @@ spread_i1 (gfc_array_i1 *ret, const gfc_array_i1 *source,
/* The front end has signalled that we need to populate the
return array descriptor. */
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rrank;
+ ret->rank = rrank;
+ ret->dtype = source->dtype;
dim = 0;
rs = 1;
for (n = 0; n < rrank; n++)
@@ -74,7 +74,8 @@ spread_i16 (gfc_array_i16 *ret, const gfc_array_i16 *source,
/* The front end has signalled that we need to populate the
return array descriptor. */
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rrank;
+ ret->rank = rrank;
+ ret->dtype = source->dtype;
dim = 0;
rs = 1;
for (n = 0; n < rrank; n++)
@@ -74,7 +74,8 @@ spread_i2 (gfc_array_i2 *ret, const gfc_array_i2 *source,
/* The front end has signalled that we need to populate the
return array descriptor. */
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rrank;
+ ret->rank = rrank;
+ ret->dtype = source->dtype;
dim = 0;
rs = 1;
for (n = 0; n < rrank; n++)
@@ -74,7 +74,8 @@ spread_i4 (gfc_array_i4 *ret, const gfc_array_i4 *source,
/* The front end has signalled that we need to populate the
return array descriptor. */
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rrank;
+ ret->rank = rrank;
+ ret->dtype = source->dtype;
dim = 0;
rs = 1;
for (n = 0; n < rrank; n++)
@@ -74,7 +74,8 @@ spread_i8 (gfc_array_i8 *ret, const gfc_array_i8 *source,
/* The front end has signalled that we need to populate the
return array descriptor. */
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rrank;
+ ret->rank = rrank;
+ ret->dtype = source->dtype;
dim = 0;
rs = 1;
for (n = 0; n < rrank; n++)
@@ -74,7 +74,8 @@ spread_r10 (gfc_array_r10 *ret, const gfc_array_r10 *source,
/* The front end has signalled that we need to populate the
return array descriptor. */
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rrank;
+ ret->rank = rrank;
+ ret->dtype = source->dtype;
dim = 0;
rs = 1;
for (n = 0; n < rrank; n++)
@@ -74,7 +74,8 @@ spread_r16 (gfc_array_r16 *ret, const gfc_array_r16 *source,
/* The front end has signalled that we need to populate the
return array descriptor. */
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rrank;
+ ret->rank = rrank;
+ ret->dtype = source->dtype;
dim = 0;
rs = 1;
for (n = 0; n < rrank; n++)
@@ -74,7 +74,8 @@ spread_r4 (gfc_array_r4 *ret, const gfc_array_r4 *source,
/* The front end has signalled that we need to populate the
return array descriptor. */
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rrank;
+ ret->rank = rrank;
+ ret->dtype = source->dtype;
dim = 0;
rs = 1;
for (n = 0; n < rrank; n++)
@@ -74,7 +74,8 @@ spread_r8 (gfc_array_r8 *ret, const gfc_array_r8 *source,
/* The front end has signalled that we need to populate the
return array descriptor. */
- ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rrank;
+ ret->rank = rrank;
+ ret->dtype = source->dtype;
dim = 0;
rs = 1;
for (n = 0; n < rrank; n++)
@@ -95,7 +95,8 @@ sum_c10 (gfc_array_c10 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ msum_c10 (gfc_array_c10 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ ssum_c10 (gfc_array_c10 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ sum_c16 (gfc_array_c16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ msum_c16 (gfc_array_c16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ ssum_c16 (gfc_array_c16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ sum_c4 (gfc_array_c4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ msum_c4 (gfc_array_c4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ ssum_c4 (gfc_array_c4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ sum_c8 (gfc_array_c8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ msum_c8 (gfc_array_c8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ ssum_c8 (gfc_array_c8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ sum_i1 (gfc_array_i1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ msum_i1 (gfc_array_i1 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ ssum_i1 (gfc_array_i1 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ sum_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ msum_i16 (gfc_array_i16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ ssum_i16 (gfc_array_i16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ sum_i2 (gfc_array_i2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ msum_i2 (gfc_array_i2 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ ssum_i2 (gfc_array_i2 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ sum_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ msum_i4 (gfc_array_i4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ ssum_i4 (gfc_array_i4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ sum_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ msum_i8 (gfc_array_i8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ ssum_i8 (gfc_array_i8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ sum_r10 (gfc_array_r10 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ msum_r10 (gfc_array_r10 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ ssum_r10 (gfc_array_r10 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ sum_r16 (gfc_array_r16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ msum_r16 (gfc_array_r16 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ ssum_r16 (gfc_array_r16 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ sum_r4 (gfc_array_r4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ msum_r4 (gfc_array_r4 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ ssum_r4 (gfc_array_r4 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -95,7 +95,8 @@ sum_r8 (gfc_array_r8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];
@@ -276,7 +277,8 @@ msum_r8 (gfc_array_r8 * const restrict retarray,
* extent[rank-1];
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
if (alloc_size == 0)
{
@@ -427,7 +429,8 @@ ssum_r8 (gfc_array_r8 * const restrict retarray,
}
retarray->offset = 0;
- retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
+ retarray->rank = rank;
+ retarray->dtype = array->dtype;
alloc_size = GFC_DESCRIPTOR_SM (retarray, rank-1)
* extent[rank-1];