diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2004-03-22 14:20:38 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2004-03-22 14:20:38 (GMT) |
commit | 3c9420c967db91e486a85b7167696d37ce54d0d0 (patch) | |
tree | 213b692d744e4ead14c3f9f3a905d47e9b4d2012 | |
parent | 9e3178fedfab5caa9eed7395ac2d2a9b9a8a7130 (diff) | |
download | hdf5-3c9420c967db91e486a85b7167696d37ce54d0d0.zip hdf5-3c9420c967db91e486a85b7167696d37ce54d0d0.tar.gz hdf5-3c9420c967db91e486a85b7167696d37ce54d0d0.tar.bz2 |
[svn-r8270] Purpose: code cleanup
Description: took out function of older algorithm(H5T_bit_neg2).
Platforms tested: fuss
-rw-r--r-- | src/H5Tbit.c | 33 | ||||
-rw-r--r-- | src/H5Tpkg.h | 1 |
2 files changed, 0 insertions, 34 deletions
diff --git a/src/H5Tbit.c b/src/H5Tbit.c index b2908b1..c9b2b4c 100644 --- a/src/H5Tbit.c +++ b/src/H5Tbit.c @@ -629,39 +629,6 @@ done: /*------------------------------------------------------------------------- - * Function: H5T_bit_neg2 - * - * Purpose: Bit-negate buffer. - * At this moment, START is always 0 and SIZE is always a - * multiply of 8 (in bit). - * - * Return: void - * - * Programmer: Raymond Lu - * Wednesday, Jan 28, 2004 - * - * Modifications: - * - * Need to generalize it to handle rand START and SIZE like - * H5T_bit_inc. - * - *------------------------------------------------------------------------- - */ -void -H5T_bit_neg2(uint8_t *buf, size_t start, size_t size) -{ - size_t i; - - assert(buf); - assert(size); - assert(start==0); - - for(i=0; i<size/8; i++) - buf[i] = ~(buf[i]); -} - - -/*------------------------------------------------------------------------- * Function: H5T_bit_neg * * Purpose: negate part of a bit sequence. The bit diff --git a/src/H5Tpkg.h b/src/H5Tpkg.h index 3f8e10d..70a4f56 100644 --- a/src/H5Tpkg.h +++ b/src/H5Tpkg.h @@ -1081,7 +1081,6 @@ H5_DLL ssize_t H5T_bit_find(uint8_t *buf, size_t offset, size_t size, H5_DLL htri_t H5T_bit_inc(uint8_t *buf, size_t start, size_t size); H5_DLL htri_t H5T_bit_dec(uint8_t *buf, size_t start, size_t size); H5_DLL void H5T_bit_neg(uint8_t *buf, size_t start, size_t size); -H5_DLL void H5T_bit_neg2(uint8_t *buf, size_t start, size_t size); /* VL functions */ H5_DLL H5T_t * H5T_vlen_create(const H5T_t *base); |