summaryrefslogtreecommitdiffstats
path: root/src/H5Tpkg.h
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-12-14 16:19:21 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-12-14 16:19:21 (GMT)
commit28e684b0af6f181b2a1acc662d6ed2cc67ca97fb (patch)
treea5d6954568d8cca7a313dbb92c623a1cf9ec88eb /src/H5Tpkg.h
parent16b789409def33adf5a64ba0adaeaf6204a20dad (diff)
downloadhdf5-28e684b0af6f181b2a1acc662d6ed2cc67ca97fb.zip
hdf5-28e684b0af6f181b2a1acc662d6ed2cc67ca97fb.tar.gz
hdf5-28e684b0af6f181b2a1acc662d6ed2cc67ca97fb.tar.bz2
[svn-r968] Changes since 19981207
---------------------- ./MANIFEST Added tcompound2.{dmp,h5} and tdset2.{dmp,h5} used by the h5toh4 testing. ./configure.in ./configure [REGENERATED] ./src/H5config.h.in [REGENERATED] Added check for <sys/timeb.h> for Win32. Determines sizeof(char) just so we have a complete list of type sizes defined as preprocessor symbols. ./src/H5detect.c ./src/H5T.c ./src/H5Tpkg.h Detects alignment constraints. In order for this to work the operating system must not correct unaligned data (for instance, on the DEC Alpha one might need to say `uac p sigbus' before running H5detect). ./src/H5private.h Includes <signal.h> because it's needed by H5detect.c to detect alignment constraints. ./src/H5Tconv.c Added extra checks to all hardware conversion functions so they align data when necessary before the conversion. This slows down the conversions somewhat but they're still much faster than the software conversions. ./test/dtypes.c By setting a constant at the top of the source you can test conversions where the data is aligned on various byte boundaries. By setting a constant at the top of the source you can simulate architectures that have alignment constraints on architectures that don't. Changed typo SIZEOF_LDOUBLE to SIZEOF_LONG_DOUBLE in a few places.
Diffstat (limited to 'src/H5Tpkg.h')
-rw-r--r--src/H5Tpkg.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/H5Tpkg.h b/src/H5Tpkg.h
index 950d5a5..d31e6ff 100644
--- a/src/H5Tpkg.h
+++ b/src/H5Tpkg.h
@@ -130,6 +130,26 @@ extern H5T_overflow_t H5T_overflow_g;
H5T_path_t *H5T_path_find (const char *name, const H5T_t *src,
const H5T_t *dst, hbool_t create, H5T_conv_t func);
+/*
+ * Alignment information for native types. A value of N indicates that the
+ * data must be aligned on an address ADDR such that 0 == ADDR mod N. When
+ * N=1 no alignment is required; N=0 implies that alignment constraints were
+ * not calculated.
+ */
+extern size_t H5T_NATIVE_SCHAR_ALIGN_g;
+extern size_t H5T_NATIVE_UCHAR_ALIGN_g;
+extern size_t H5T_NATIVE_SHORT_ALIGN_g;
+extern size_t H5T_NATIVE_USHORT_ALIGN_g;
+extern size_t H5T_NATIVE_INT_ALIGN_g;
+extern size_t H5T_NATIVE_UINT_ALIGN_g;
+extern size_t H5T_NATIVE_LONG_ALIGN_g;
+extern size_t H5T_NATIVE_ULONG_ALIGN_g;
+extern size_t H5T_NATIVE_LLONG_ALIGN_g;
+extern size_t H5T_NATIVE_ULLONG_ALIGN_g;
+extern size_t H5T_NATIVE_FLOAT_ALIGN_g;
+extern size_t H5T_NATIVE_DOUBLE_ALIGN_g;
+extern size_t H5T_NATIVE_LDOUBLE_ALIGN_g;
+
/* Conversion functions */
herr_t H5T_conv_order (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
size_t nelmts, void *_buf, void *bkg);