summaryrefslogtreecommitdiffstats
path: root/src/H5Sall.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-07-27 20:43:30 (GMT)
committerGitHub <noreply@github.com>2023-07-27 20:43:30 (GMT)
commit1e91d96fa02466ffe451319bdac1005f84dc7993 (patch)
tree4de04ef502c313dfd766497b20235188761146c0 /src/H5Sall.c
parent95e5349089b95dfb95f0f8ce2d6db1bc04ba6c82 (diff)
downloadhdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.zip
hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.tar.gz
hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.tar.bz2
Brings over most of the HD prefix removal (#3293)
Diffstat (limited to 'src/H5Sall.c')
-rw-r--r--src/H5Sall.c110
1 files changed, 55 insertions, 55 deletions
diff --git a/src/H5Sall.c b/src/H5Sall.c
index 7f5633f..a5d86ae 100644
--- a/src/H5Sall.c
+++ b/src/H5Sall.c
@@ -148,8 +148,8 @@ H5S__all_iter_init(H5S_t H5_ATTR_UNUSED *space, H5S_sel_iter_t *iter)
FUNC_ENTER_PACKAGE_NOERR
/* Check args */
- HDassert(space && H5S_SEL_ALL == H5S_GET_SELECT_TYPE(space));
- HDassert(iter);
+ assert(space && H5S_SEL_ALL == H5S_GET_SELECT_TYPE(space));
+ assert(iter);
/* Start at the upper left location */
iter->u.all.elmt_offset = 0;
@@ -182,8 +182,8 @@ H5S__all_iter_coords(const H5S_sel_iter_t *iter, hsize_t *coords)
FUNC_ENTER_PACKAGE
/* Check args */
- HDassert(iter);
- HDassert(coords);
+ assert(iter);
+ assert(coords);
/* Calculate the coordinates for the current iterator offset */
if (H5VM_array_calc(iter->u.all.elmt_offset, iter->rank, iter->dims, coords) < 0)
@@ -214,9 +214,9 @@ H5S__all_iter_block(const H5S_sel_iter_t *iter, hsize_t *start, hsize_t *end)
FUNC_ENTER_PACKAGE_NOERR
/* Check args */
- HDassert(iter);
- HDassert(start);
- HDassert(end);
+ assert(iter);
+ assert(start);
+ assert(end);
for (u = 0; u < iter->rank; u++) {
/* Set the start of the 'all' block */
@@ -249,7 +249,7 @@ H5S__all_iter_nelmts(const H5S_sel_iter_t *iter)
FUNC_ENTER_PACKAGE_NOERR
/* Check args */
- HDassert(iter);
+ assert(iter);
FUNC_LEAVE_NOAPI(iter->elmt_left)
} /* end H5S__all_iter_nelmts() */
@@ -277,7 +277,7 @@ H5S__all_iter_has_next_block(const H5S_sel_iter_t H5_ATTR_UNUSED *iter)
FUNC_ENTER_PACKAGE_NOERR
/* Check args */
- HDassert(iter);
+ assert(iter);
FUNC_LEAVE_NOAPI(FALSE)
} /* end H5S__all_iter_has_next_block() */
@@ -306,8 +306,8 @@ H5S__all_iter_next(H5S_sel_iter_t *iter, size_t nelem)
FUNC_ENTER_PACKAGE_NOERR
/* Check args */
- HDassert(iter);
- HDassert(nelem > 0);
+ assert(iter);
+ assert(nelem > 0);
/* Increment the iterator */
iter->u.all.elmt_offset += nelem;
@@ -339,7 +339,7 @@ H5S__all_iter_next_block(H5S_sel_iter_t H5_ATTR_UNUSED *iter)
FUNC_ENTER_PACKAGE_NOERR
/* Check args */
- HDassert(iter);
+ assert(iter);
FUNC_LEAVE_NOAPI(FAIL)
} /* end H5S__all_iter_next_block() */
@@ -382,18 +382,18 @@ H5S__all_iter_get_seq_list(H5S_sel_iter_t *iter, size_t H5_ATTR_UNUSED maxseq, s
FUNC_ENTER_PACKAGE_NOERR
/* Check args */
- HDassert(iter);
- HDassert(maxseq > 0);
- HDassert(maxelem > 0);
- HDassert(nseq);
- HDassert(nelem);
- HDassert(off);
- HDassert(len);
+ assert(iter);
+ assert(maxseq > 0);
+ assert(maxelem > 0);
+ assert(nseq);
+ assert(nelem);
+ assert(off);
+ assert(len);
/* Determine the actual number of elements to use */
H5_CHECK_OVERFLOW(iter->elmt_left, hsize_t, size_t);
elem_used = MIN(maxelem, (size_t)iter->elmt_left);
- HDassert(elem_used > 0);
+ assert(elem_used > 0);
/* Compute the offset in the dataset */
off[0] = iter->u.all.byte_offset;
@@ -436,7 +436,7 @@ H5S__all_iter_release(H5S_sel_iter_t H5_ATTR_UNUSED *iter)
FUNC_ENTER_PACKAGE_NOERR
/* Check args */
- HDassert(iter);
+ assert(iter);
FUNC_LEAVE_NOAPI(SUCCEED)
} /* end H5S__all_iter_release() */
@@ -464,7 +464,7 @@ H5S__all_release(H5S_t *space)
FUNC_ENTER_PACKAGE_NOERR
/* Check args */
- HDassert(space);
+ assert(space);
/* Reset the number of elements in the selection */
space->select.num_elem = 0;
@@ -497,8 +497,8 @@ H5S__all_copy(H5S_t *dst, const H5S_t H5_ATTR_UNUSED *src, hbool_t H5_ATTR_UNUSE
{
FUNC_ENTER_PACKAGE_NOERR
- HDassert(src);
- HDassert(dst);
+ assert(src);
+ assert(dst);
/* Set number of elements in selection */
dst->select.num_elem = (hsize_t)H5S_GET_EXTENT_NPOINTS(dst);
@@ -531,7 +531,7 @@ H5S__all_is_valid(const H5S_t H5_ATTR_UNUSED *space)
{
FUNC_ENTER_PACKAGE_NOERR
- HDassert(space);
+ assert(space);
FUNC_LEAVE_NOAPI(TRUE)
} /* end H5S__all_is_valid() */
@@ -560,7 +560,7 @@ H5S__all_serial_size(H5S_t H5_ATTR_UNUSED *space)
{
FUNC_ENTER_PACKAGE_NOERR
- HDassert(space);
+ assert(space);
/* Basic number of bytes required to serialize point selection:
* <type (4 bytes)> + <version (4 bytes)> + <padding (4 bytes)> +
@@ -598,9 +598,9 @@ H5S__all_serialize(H5S_t *space, uint8_t **p)
FUNC_ENTER_PACKAGE_NOERR
/* Check args */
- HDassert(space);
- HDassert(p);
- HDassert(pp);
+ assert(space);
+ assert(p);
+ assert(pp);
/* Store the preamble information */
UINT32ENCODE(pp, (uint32_t)H5S_GET_SELECT_TYPE(space)); /* Store the type of selection */
@@ -646,8 +646,8 @@ H5S__all_deserialize(H5S_t **space, const uint8_t **p, const size_t p_size, hboo
const uint8_t *p_end = *p + p_size - 1; /* Pointer to last valid byte in buffer */
FUNC_ENTER_PACKAGE
- HDassert(p);
- HDassert(*p);
+ assert(p);
+ assert(*p);
/* As part of the efforts to push all selection-type specific coding
to the callbacks, the coding for the allocation of a null dataspace
@@ -725,9 +725,9 @@ H5S__all_bounds(const H5S_t *space, hsize_t *start, hsize_t *end)
FUNC_ENTER_PACKAGE_NOERR
- HDassert(space);
- HDassert(start);
- HDassert(end);
+ assert(space);
+ assert(start);
+ assert(end);
/* Get the dataspace extent rank */
rank = space->extent.rank;
@@ -766,8 +766,8 @@ H5S__all_offset(const H5S_t H5_ATTR_UNUSED *space, hsize_t *offset)
{
FUNC_ENTER_PACKAGE_NOERR
- HDassert(space);
- HDassert(offset);
+ assert(space);
+ assert(offset);
/* 'All' selections always start at offset 0 */
*offset = 0;
@@ -827,7 +827,7 @@ H5S__all_is_contiguous(const H5S_t H5_ATTR_UNUSED *space)
{
FUNC_ENTER_PACKAGE_NOERR
- HDassert(space);
+ assert(space);
FUNC_LEAVE_NOAPI(TRUE)
} /* end H5S__all_is_contiguous() */
@@ -855,7 +855,7 @@ H5S__all_is_single(const H5S_t H5_ATTR_UNUSED *space)
{
FUNC_ENTER_PACKAGE_NOERR
- HDassert(space);
+ assert(space);
FUNC_LEAVE_NOAPI(TRUE)
} /* end H5S__all_is_single() */
@@ -885,7 +885,7 @@ H5S__all_is_regular(H5S_t H5_ATTR_UNUSED *space)
FUNC_ENTER_PACKAGE_NOERR
/* Check args */
- HDassert(space);
+ assert(space);
FUNC_LEAVE_NOAPI(TRUE)
} /* end H5S__all_is_regular() */
@@ -919,8 +919,8 @@ H5S__all_shape_same(H5S_t *space1, H5S_t *space2)
FUNC_ENTER_PACKAGE_NOERR
/* Check args */
- HDassert(space1);
- HDassert(space2);
+ assert(space1);
+ assert(space2);
/* Initialize dataspace dims */
space1_dim = (int)space1->extent.rank - 1;
@@ -979,10 +979,10 @@ H5S__all_intersect_block(H5S_t H5_ATTR_UNUSED *space, const hsize_t H5_ATTR_UNUS
FUNC_ENTER_PACKAGE_NOERR
/* Sanity check */
- HDassert(space);
- HDassert(H5S_SEL_ALL == H5S_GET_SELECT_TYPE(space));
- HDassert(start);
- HDassert(end);
+ assert(space);
+ assert(H5S_SEL_ALL == H5S_GET_SELECT_TYPE(space));
+ assert(start);
+ assert(end);
FUNC_LEAVE_NOAPI(TRUE)
} /* end H5S__all_intersect_block() */
@@ -1011,8 +1011,8 @@ H5S__all_adjust_u(H5S_t H5_ATTR_UNUSED *space, const hsize_t H5_ATTR_UNUSED *off
FUNC_ENTER_PACKAGE_NOERR
/* Check args */
- HDassert(space);
- HDassert(offset);
+ assert(space);
+ assert(offset);
FUNC_LEAVE_NOAPI(SUCCEED)
} /* end H5S__all_adjust_u() */
@@ -1041,8 +1041,8 @@ H5S__all_adjust_s(H5S_t H5_ATTR_UNUSED *space, const hssize_t H5_ATTR_UNUSED *of
FUNC_ENTER_PACKAGE_NOERR
/* Check args */
- HDassert(space);
- HDassert(offset);
+ assert(space);
+ assert(offset);
FUNC_LEAVE_NOAPI(SUCCEED)
} /* end H5S__all_adjust_s() */
@@ -1066,8 +1066,8 @@ H5S__all_project_scalar(const H5S_t H5_ATTR_UNUSED *space, hsize_t *offset)
FUNC_ENTER_PACKAGE_NOERR
/* Check args */
- HDassert(space && H5S_SEL_ALL == H5S_GET_SELECT_TYPE(space));
- HDassert(offset);
+ assert(space && H5S_SEL_ALL == H5S_GET_SELECT_TYPE(space));
+ assert(offset);
/* Set offset of selection in projected buffer */
*offset = 0;
@@ -1097,9 +1097,9 @@ H5S__all_project_simple(const H5S_t H5_ATTR_UNUSED *base_space, H5S_t *new_space
FUNC_ENTER_PACKAGE
/* Check args */
- HDassert(base_space && H5S_SEL_ALL == H5S_GET_SELECT_TYPE(base_space));
- HDassert(new_space);
- HDassert(offset);
+ assert(base_space && H5S_SEL_ALL == H5S_GET_SELECT_TYPE(base_space));
+ assert(new_space);
+ assert(offset);
/* Select the entire new space */
if (H5S_select_all(new_space, TRUE) < 0)
@@ -1135,7 +1135,7 @@ H5S_select_all(H5S_t *space, hbool_t rel_prev)
FUNC_ENTER_NOAPI(FAIL)
/* Check args */
- HDassert(space);
+ assert(space);
/* Remove current selection first */
if (rel_prev)