summaryrefslogtreecommitdiffstats
path: root/src/H5Zfletcher32.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-09-05 23:06:54 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-09-05 23:06:54 (GMT)
commit46467e91b0c96f368b2ac75569dfab2d3a097ef8 (patch)
tree9028c68c57d3f0a06152823f768484d1d460562b /src/H5Zfletcher32.c
parent5afc64f31b1cb2f3907ad5fa5f1a1629d27fb5c4 (diff)
downloadhdf5-46467e91b0c96f368b2ac75569dfab2d3a097ef8.zip
hdf5-46467e91b0c96f368b2ac75569dfab2d3a097ef8.tar.gz
hdf5-46467e91b0c96f368b2ac75569dfab2d3a097ef8.tar.bz2
[svn-r12649] Description:
Add a CRC algorithm to the library, initially for "small" (<256 byte) metadata blocks. Update checksum tests to verify it's working correctly. Tested: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2) (Will be testing on more platforms after checkin)
Diffstat (limited to 'src/H5Zfletcher32.c')
-rw-r--r--src/H5Zfletcher32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Zfletcher32.c b/src/H5Zfletcher32.c
index 9092452..139a7ad 100644
--- a/src/H5Zfletcher32.c
+++ b/src/H5Zfletcher32.c
@@ -102,7 +102,7 @@ H5Z_filter_fletcher32 (unsigned flags, size_t UNUSED cd_nelmts, const unsigned U
UINT32DECODE(tmp_src, stored_fletcher);
/* Compute checksum (can't fail) */
- fletcher = H5_fletcher32(src, src_nbytes);
+ fletcher = H5_checksum_fletcher32(src, src_nbytes);
/* The reversed checksum. There was a bug in the calculating code of
* the Fletcher32 checksum in the library before v1.6.3. The checksum
@@ -136,7 +136,7 @@ H5Z_filter_fletcher32 (unsigned flags, size_t UNUSED cd_nelmts, const unsigned U
unsigned char *dst; /* Temporary pointer to destination buffer */
/* Compute checksum (can't fail) */
- fletcher = H5_fletcher32(src, nbytes);
+ fletcher = H5_checksum_fletcher32(src, nbytes);
if (NULL==(dst=outbuf=H5MM_malloc(nbytes+FLETCHER_LEN)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, 0, "unable to allocate Fletcher32 checksum destination buffer")