summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2010-05-15 05:40:00 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2010-05-15 05:40:00 (GMT)
commit174cc7b19e078a41d97ed42e396127f1f76b889f (patch)
tree292e6f8aaddfa3ae8bffbe1dd65eccd8f04d9a7f /tools/lib/h5tools.c
parentb8f131dc78aba5ce6998401bc6de2b4a69b44412 (diff)
downloadhdf5-174cc7b19e078a41d97ed42e396127f1f76b889f.zip
hdf5-174cc7b19e078a41d97ed42e396127f1f76b889f.tar.gz
hdf5-174cc7b19e078a41d97ed42e396127f1f76b889f.tar.bz2
[svn-r18821] Packed bits codes tidy up. Removed codes that are not needed
any more. Changed algorithm of creating mask which now sits at the least significant bits. Display data by down shift first and then mask it for display. Changed the variable names to reflect the new purpose better. Tested: AlbertPax (linux)
Diffstat (limited to 'tools/lib/h5tools.c')
-rw-r--r--tools/lib/h5tools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index cce7d47..e8657e1 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -44,8 +44,8 @@ int bin_form; /* binary form */
int region_output; /* region output */
#ifdef H5_HAVE_H5DUMP_PACKED_BITS
int packed_bits_num; /* number of packed bits to display */
-int packed_normalize; /* number of bits to shift right to display normalized */
-unsigned int packed_counter; /* counter for which packed bits to display */
+int packed_data_offset; /* offset of packed bits to display */
+unsigned int packed_data_mask; /* mask in which packed bits to display */
#endif
static h5tool_format_t h5tools_dataformat = {