diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-03-11 00:25:31 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-03-11 00:25:31 (GMT) |
commit | 472394a0e97c34269969956c316ae2cf8acc6cf1 (patch) | |
tree | 555e8c3b110538d4a8fccce3d2ed83d7f6c51358 /tools | |
parent | 5ca872006352d1a586d3d3f0d9770e122393a573 (diff) | |
download | hdf5-472394a0e97c34269969956c316ae2cf8acc6cf1.zip hdf5-472394a0e97c34269969956c316ae2cf8acc6cf1.tar.gz hdf5-472394a0e97c34269969956c316ae2cf8acc6cf1.tar.bz2 |
[svn-r8252] Purpose:
bug fix
new test
Description:
the fletcher filter used a temporary 2 byte word buffer to compute the checksum.
this is non portable between big-endian/little endian.
added a test that reads 2 pre-saved files (one LE, other BE) with that filter enabled
Solution:
replaced with a buffer of 1 byte type
Platforms tested:
linux
solaris
solaris 64 bit
AIX
windows
Misc. update:
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5repack/testh5repack_filters.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/h5repack/testh5repack_filters.c b/tools/h5repack/testh5repack_filters.c index f8efa74..1cc0e68 100644 --- a/tools/h5repack/testh5repack_filters.c +++ b/tools/h5repack/testh5repack_filters.c @@ -142,6 +142,21 @@ int make_filters(hid_t loc_id) goto out; /*------------------------------------------------------------------------- + * checksum + *------------------------------------------------------------------------- + */ +#if 1 + /* remove the filters from the dcpl */ + if (H5Premove_filter(dcpl,H5Z_FILTER_ALL)<0) + goto out; + /* set the checksum filter */ + if (H5Pset_fletcher32(dcpl)<0) + goto out; + if (make_dset(loc_id,"dset_fletcher32",sid,dcpl,buf)<0) + goto out; +#endif + +/*------------------------------------------------------------------------- * shuffle + SZIP *------------------------------------------------------------------------- */ |