diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2003-11-21 17:07:25 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2003-11-21 17:07:25 (GMT) |
commit | c1e333f00650b2b06d1705a4198a772e3adb91cd (patch) | |
tree | 27cbaedd444b80a97c7c8e83ebde41ad6edb1298 /src/H5Tpkg.h | |
parent | 22a36e9d59269874316c2bddff979fcce71c8d68 (diff) | |
download | hdf5-c1e333f00650b2b06d1705a4198a772e3adb91cd.zip hdf5-c1e333f00650b2b06d1705a4198a772e3adb91cd.tar.gz hdf5-c1e333f00650b2b06d1705a4198a772e3adb91cd.tar.bz2 |
[svn-r7868] Purpose: new feature
Description: data type conversion between integers and float numbers.
(Cover your ears. It's going to explode.:)
Solution: covers all native type conversion. Mainly uses hardware
conversion but handles overflow more gracefully.
Platforms tested: h5committest
Diffstat (limited to 'src/H5Tpkg.h')
-rw-r--r-- | src/H5Tpkg.h | 200 |
1 files changed, 200 insertions, 0 deletions
diff --git a/src/H5Tpkg.h b/src/H5Tpkg.h index 01465ef..9058d90 100644 --- a/src/H5Tpkg.h +++ b/src/H5Tpkg.h @@ -843,6 +843,206 @@ H5_DLL herr_t H5T_conv_double_float(hid_t src_id, hid_t dst_id, size_t buf_stride, size_t bkg_stride, void *buf, void *bkg, hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_char_float(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_char_double(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_uchar_float(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_uchar_double(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_short_float(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_short_double(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_ushort_float(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_ushort_double(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_int_float(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_int_double(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_uint_float(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_uint_double(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_long_float(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_long_double(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_ulong_float(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_ulong_double(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_llong_float(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_llong_double(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_ullong_float(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_ullong_double(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_float_char(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_float_uchar(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_float_short(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_float_ushort(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_float_int(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_float_uint(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_float_long(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_float_ulong(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_float_llong(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_float_ullong(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_double_char(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_double_uchar(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_double_short(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_double_ushort(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_double_int(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_double_uint(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_double_long(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_double_ulong(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_double_llong(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); +H5_DLL herr_t H5T_conv_double_ullong(hid_t src_id, hid_t dst_id, + H5T_cdata_t *cdata, hsize_t nelmts, + size_t buf_stride, size_t bkg_stride, + void *buf, void *bkg, + hid_t dset_xfer_plist); H5_DLL herr_t H5T_conv_i32le_f64le(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, hsize_t nelmts, size_t buf_stride, size_t bkg_stride, |