summaryrefslogtreecommitdiffstats
path: root/src/H5Tbit.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/H5Tbit.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/H5Tbit.c')
-rw-r--r--src/H5Tbit.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/H5Tbit.c b/src/H5Tbit.c
index c663145..032ecb8 100644
--- a/src/H5Tbit.c
+++ b/src/H5Tbit.c
@@ -174,8 +174,8 @@ H5T__bit_shift(uint8_t *buf, ssize_t shift_dist, size_t offset, size_t size)
FUNC_ENTER_PACKAGE
/* Sanity check */
- HDassert(buf);
- HDassert(size);
+ assert(buf);
+ assert(size);
if (shift_dist) {
size_t abs_shift_dist = (size_t)ABS(shift_dist);
@@ -240,7 +240,7 @@ H5T__bit_get_d(uint8_t *buf, size_t offset, size_t size)
FUNC_ENTER_PACKAGE_NOERR
- HDassert(8 * sizeof(val) >= size);
+ assert(8 * sizeof(val) >= size);
H5T__bit_copy((uint8_t *)&val, (size_t)0, buf, offset, size);
switch (H5T_native_order_g) {
@@ -261,7 +261,7 @@ H5T__bit_get_d(uint8_t *buf, size_t offset, size_t size)
case H5T_ORDER_MIXED:
default:
/* This function can't return errors */
- HDassert(0 && "unknown byte order");
+ assert(0 && "unknown byte order");
}
/* Set return value */
@@ -286,7 +286,7 @@ H5T__bit_set_d(uint8_t *buf, size_t offset, size_t size, uint64_t val)
FUNC_ENTER_PACKAGE_NOERR
- HDassert(8 * sizeof(val) >= size);
+ assert(8 * sizeof(val) >= size);
switch (H5T_native_order_g) {
case H5T_ORDER_LE:
@@ -394,7 +394,7 @@ H5T__bit_find(const uint8_t *buf, size_t offset, size_t size, H5T_sdir_t directi
FUNC_ENTER_PACKAGE_NOERR
/* Some functions call this with value=TRUE */
- HDassert(TRUE == 1);
+ assert(TRUE == 1);
switch (direction) {
case H5T_BIT_LSB:
@@ -464,7 +464,7 @@ H5T__bit_find(const uint8_t *buf, size_t offset, size_t size, H5T_sdir_t directi
break;
default:
- HDassert(0 && "Unknown bit search direction");
+ assert(0 && "Unknown bit search direction");
} /* end switch */
done:
@@ -491,7 +491,7 @@ H5T__bit_inc(uint8_t *buf, size_t start, size_t size)
/* Use FUNC_ENTER_PACKAGE_NOERR here to avoid performance issues */
FUNC_ENTER_PACKAGE_NOERR
- HDassert(buf);
+ assert(buf);
start %= 8;
@@ -556,8 +556,8 @@ H5T__bit_dec(uint8_t *buf, size_t start, size_t size)
/* Use FUNC_ENTER_PACKAGE_NOERR here to avoid performance issues */
FUNC_ENTER_PACKAGE_NOERR
- HDassert(buf);
- HDassert(size);
+ assert(buf);
+ assert(size);
/* The first partial byte */
if ((size + start - 1) / 8 > idx) {
@@ -631,8 +631,8 @@ H5T__bit_neg(uint8_t *buf, size_t start, size_t size)
/* Use FUNC_ENTER_PACKAGE_NOERR here to avoid performance issues */
FUNC_ENTER_PACKAGE_NOERR
- HDassert(buf);
- HDassert(size);
+ assert(buf);
+ assert(size);
/* The first partial byte */
tmp[0] = (uint8_t)~buf[idx];