diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-08-13 20:17:47 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-08-13 20:17:47 (GMT) |
commit | 678eb19d7118bb852b428e6469da6df6886b0b86 (patch) | |
tree | cf4a3e318b44430d7329cb13e8ac003249b7356f /src/H5Sall.c | |
parent | 349b9094a0755986cb9df6e6f662791c98afaa15 (diff) | |
download | hdf5-678eb19d7118bb852b428e6469da6df6886b0b86.zip hdf5-678eb19d7118bb852b428e6469da6df6886b0b86.tar.gz hdf5-678eb19d7118bb852b428e6469da6df6886b0b86.tar.bz2 |
[svn-r588] Changes since 19980810
----------------------
./MANIFEST
./src/H5Ssimp.c [REMOVED]
./src/Makefile.in
Removed H5Ssimp.c since it was no longer used.
./bin/snapshot
Fixed a few minor things to make it work better.
./src/H5D.c
Cleaned up H5D_read() and H5D_write() by combining some code
in each. Added timing calls around the data space calls when
H5S_DEBUG is defined.
./src/H5S.c
./src/H5Sall.c
./src/H5Shyper.c
./src/H5Spoint.c
./src/H5Sprivate.h
Changed H5S_find() so it returns a table entry again instead
of copying the data into a caller-supplied buffer. This
allows the timers to be stored in the table and updated by the
caller. Added H5S_register() to register new table entries
and added entry creation to all the H5S selection
methods. Also changed lots of global functions to static
functions.
./src/H5Fistore.c
Fixed a memory bug in the raw data cache.
Diffstat (limited to 'src/H5Sall.c')
-rw-r--r-- | src/H5Sall.c | 55 |
1 files changed, 49 insertions, 6 deletions
diff --git a/src/H5Sall.c b/src/H5Sall.c index 467ed2e..df7b349 100644 --- a/src/H5Sall.c +++ b/src/H5Sall.c @@ -17,6 +17,49 @@ #define INTERFACE_INIT NULL static intn interface_initialize_g = FALSE; +static herr_t H5S_all_init (const struct H5O_layout_t *layout, + const H5S_t *space, H5S_sel_iter_t *iter); +static size_t H5S_all_favail (const H5S_t *space, const H5S_sel_iter_t *iter, + size_t max); +static size_t H5S_all_fgath (H5F_t *f, const struct H5O_layout_t *layout, + const struct H5O_pline_t *pline, + const struct H5O_efl_t *efl, size_t elmt_size, + const H5S_t *file_space, + H5S_sel_iter_t *file_iter, size_t nelmts, + const H5D_transfer_t xfer_mode, + void *buf/*out*/); +static herr_t H5S_all_fscat (H5F_t *f, const struct H5O_layout_t *layout, + const struct H5O_pline_t *pline, + const struct H5O_efl_t *efl, size_t elmt_size, + const H5S_t *file_space, + H5S_sel_iter_t *file_iter, size_t nelmts, + const H5D_transfer_t xfer_mode, + const void *buf); +static size_t H5S_all_mgath (const void *_buf, size_t elmt_size, + const H5S_t *mem_space, H5S_sel_iter_t *mem_iter, + size_t nelmts, void *_tconv_buf/*out*/); +static herr_t H5S_all_mscat (const void *_tconv_buf, size_t elmt_size, + const H5S_t *mem_space, H5S_sel_iter_t *mem_iter, + size_t nelmts, void *_buf/*out*/); + +const H5S_fconv_t H5S_ALL_FCONV[1] = {{ + "all", /*name */ + H5S_SEL_ALL, /*selection type */ + H5S_all_init, /*initialize */ + H5S_all_favail, /*available */ + H5S_all_fgath, /*gather */ + H5S_all_fscat, /*scatter */ +}}; + +const H5S_mconv_t H5S_ALL_MCONV[1] = {{ + "all", /*name */ + H5S_SEL_ALL, /*selection type */ + H5S_all_init, /*initialize */ + H5S_all_init, /*initialize background */ + H5S_all_mgath, /*gather */ + H5S_all_mscat, /*scatter */ +}}; + /*------------------------------------------------------------------------- * Function: H5S_all_init * @@ -31,7 +74,7 @@ static intn interface_initialize_g = FALSE; * *------------------------------------------------------------------------- */ -herr_t +static herr_t H5S_all_init (const struct H5O_layout_t __unused__ *layout, const H5S_t *space, H5S_sel_iter_t *sel_iter) { @@ -67,7 +110,7 @@ H5S_all_init (const struct H5O_layout_t __unused__ *layout, * *------------------------------------------------------------------------- */ -size_t +static size_t H5S_all_favail (const H5S_t *space, const H5S_sel_iter_t *sel_iter, size_t max) { hsize_t nelmts; @@ -123,7 +166,7 @@ H5S_all_favail (const H5S_t *space, const H5S_sel_iter_t *sel_iter, size_t max) * *------------------------------------------------------------------------- */ -size_t +static size_t H5S_all_fgath (H5F_t *f, const struct H5O_layout_t *layout, const struct H5O_pline_t *pline, const struct H5O_efl_t *efl, size_t elmt_size, const H5S_t *file_space, @@ -213,7 +256,7 @@ H5S_all_fgath (H5F_t *f, const struct H5O_layout_t *layout, * *------------------------------------------------------------------------- */ -herr_t +static herr_t H5S_all_fscat (H5F_t *f, const struct H5O_layout_t *layout, const struct H5O_pline_t *pline, const struct H5O_efl_t *efl, size_t elmt_size, const H5S_t *file_space, @@ -299,7 +342,7 @@ H5S_all_fscat (H5F_t *f, const struct H5O_layout_t *layout, * *------------------------------------------------------------------------- */ -size_t +static size_t H5S_all_mgath (const void *_buf, size_t elmt_size, const H5S_t *mem_space, H5S_sel_iter_t *mem_iter, size_t nelmts, void *_tconv_buf/*out*/) @@ -389,7 +432,7 @@ H5S_all_mgath (const void *_buf, size_t elmt_size, * *------------------------------------------------------------------------- */ -herr_t +static herr_t H5S_all_mscat (const void *_tconv_buf, size_t elmt_size, const H5S_t *mem_space, H5S_sel_iter_t *mem_iter, size_t nelmts, void *_buf/*out*/) |