diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-11-16 17:28:08 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-11-16 17:28:08 (GMT) |
commit | b39c60db459793993b21b6231cb990e4646f24b3 (patch) | |
tree | fd006dce92cb7a23793ada35c2edb4c7496e4da3 | |
parent | 3081ac613aa8f0f0c30f8fe876c96e79fb2467b3 (diff) | |
download | hdf5-b39c60db459793993b21b6231cb990e4646f24b3.zip hdf5-b39c60db459793993b21b6231cb990e4646f24b3.tar.gz hdf5-b39c60db459793993b21b6231cb990e4646f24b3.tar.bz2 |
[svn-r2945] Purpose:
Small code optimization
Description:
Removed some unnecessary buffer assignments.
Platforms tested:
Solaris 2.6 (baldric)
-rw-r--r-- | src/H5Dcontig.c | 3 | ||||
-rw-r--r-- | src/H5Dseq.c | 6 | ||||
-rw-r--r-- | src/H5Fcontig.c | 3 | ||||
-rw-r--r-- | src/H5Fseq.c | 6 |
4 files changed, 6 insertions, 12 deletions
diff --git a/src/H5Dcontig.c b/src/H5Dcontig.c index ccd6860..385eb0b 100644 --- a/src/H5Dcontig.c +++ b/src/H5Dcontig.c @@ -44,9 +44,8 @@ static intn interface_initialize_g = 0; */ herr_t H5F_contig_read(H5F_t *f, H5FD_mem_t type, haddr_t addr, hsize_t size, hid_t dxpl_id, - void *_buf/*out*/) + void *buf/*out*/) { - uint8_t *buf = (uint8_t*)_buf; /*cast for arithmetic */ haddr_t eoa; /*end of file address */ FUNC_ENTER(H5F_contig_read, FAIL); diff --git a/src/H5Dseq.c b/src/H5Dseq.c index 007a7fa..209821a 100644 --- a/src/H5Dseq.c +++ b/src/H5Dseq.c @@ -59,9 +59,8 @@ herr_t H5F_seq_read(H5F_t *f, hid_t dxpl_id, const struct H5O_layout_t *layout, const struct H5O_pline_t *pline, const H5O_fill_t *fill, const struct H5O_efl_t *efl, const H5S_t *file_space, size_t elmt_size, - hsize_t seq_len, hssize_t file_offset, void *_buf/*out*/) + hsize_t seq_len, hssize_t file_offset, void *buf/*out*/) { - uint8_t *buf = (uint8_t*)_buf; /*cast for arithmetic */ hsize_t dset_dims[H5O_LAYOUT_NDIMS]; /* dataspace dimensions */ hssize_t coords[H5O_LAYOUT_NDIMS]; /* offset of hyperslab in dataspace */ hsize_t hslab_size[H5O_LAYOUT_NDIMS]; /* hyperslab size in dataspace*/ @@ -286,9 +285,8 @@ herr_t H5F_seq_write(H5F_t *f, hid_t dxpl_id, const struct H5O_layout_t *layout, const struct H5O_pline_t *pline, const H5O_fill_t *fill, const struct H5O_efl_t *efl, const H5S_t *file_space, size_t elmt_size, - hsize_t seq_len, hssize_t file_offset, const void *_buf) + hsize_t seq_len, hssize_t file_offset, const void *buf) { - const uint8_t *buf = (const uint8_t*)_buf; /*cast for arithmetic */ hsize_t dset_dims[H5O_LAYOUT_NDIMS]; /* dataspace dimensions */ hssize_t coords[H5O_LAYOUT_NDIMS]; /* offset of hyperslab in dataspace */ hsize_t hslab_size[H5O_LAYOUT_NDIMS]; /* hyperslab size in dataspace*/ diff --git a/src/H5Fcontig.c b/src/H5Fcontig.c index ccd6860..385eb0b 100644 --- a/src/H5Fcontig.c +++ b/src/H5Fcontig.c @@ -44,9 +44,8 @@ static intn interface_initialize_g = 0; */ herr_t H5F_contig_read(H5F_t *f, H5FD_mem_t type, haddr_t addr, hsize_t size, hid_t dxpl_id, - void *_buf/*out*/) + void *buf/*out*/) { - uint8_t *buf = (uint8_t*)_buf; /*cast for arithmetic */ haddr_t eoa; /*end of file address */ FUNC_ENTER(H5F_contig_read, FAIL); diff --git a/src/H5Fseq.c b/src/H5Fseq.c index 007a7fa..209821a 100644 --- a/src/H5Fseq.c +++ b/src/H5Fseq.c @@ -59,9 +59,8 @@ herr_t H5F_seq_read(H5F_t *f, hid_t dxpl_id, const struct H5O_layout_t *layout, const struct H5O_pline_t *pline, const H5O_fill_t *fill, const struct H5O_efl_t *efl, const H5S_t *file_space, size_t elmt_size, - hsize_t seq_len, hssize_t file_offset, void *_buf/*out*/) + hsize_t seq_len, hssize_t file_offset, void *buf/*out*/) { - uint8_t *buf = (uint8_t*)_buf; /*cast for arithmetic */ hsize_t dset_dims[H5O_LAYOUT_NDIMS]; /* dataspace dimensions */ hssize_t coords[H5O_LAYOUT_NDIMS]; /* offset of hyperslab in dataspace */ hsize_t hslab_size[H5O_LAYOUT_NDIMS]; /* hyperslab size in dataspace*/ @@ -286,9 +285,8 @@ herr_t H5F_seq_write(H5F_t *f, hid_t dxpl_id, const struct H5O_layout_t *layout, const struct H5O_pline_t *pline, const H5O_fill_t *fill, const struct H5O_efl_t *efl, const H5S_t *file_space, size_t elmt_size, - hsize_t seq_len, hssize_t file_offset, const void *_buf) + hsize_t seq_len, hssize_t file_offset, const void *buf) { - const uint8_t *buf = (const uint8_t*)_buf; /*cast for arithmetic */ hsize_t dset_dims[H5O_LAYOUT_NDIMS]; /* dataspace dimensions */ hssize_t coords[H5O_LAYOUT_NDIMS]; /* offset of hyperslab in dataspace */ hsize_t hslab_size[H5O_LAYOUT_NDIMS]; /* hyperslab size in dataspace*/ |