mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r8270] Purpose: code cleanup
Description: took out function of older algorithm(H5T_bit_neg2). Platforms tested: fuss
This commit is contained in:
parent
9e3178fedf
commit
3c9420c967
33
src/H5Tbit.c
33
src/H5Tbit.c
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user