[svn-r8270] Purpose: code cleanup

Description:  took out function of older algorithm(H5T_bit_neg2).


Platforms tested: fuss
This commit is contained in:
Raymond Lu 2004-03-22 09:20:38 -05:00
parent 9e3178fedf
commit 3c9420c967
2 changed files with 0 additions and 34 deletions

View File

@ -627,39 +627,6 @@ done:
FUNC_LEAVE_NOAPI(borrow ? TRUE : FALSE);
}
/*-------------------------------------------------------------------------
* 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

View File

@ -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);