summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-02-03 22:52:16 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-02-03 22:52:16 (GMT)
commitb14417185c487c900ea210f346c910a9bfe1d506 (patch)
treed05924e04e40a6eab431b00d9230a2432faa4608 /src
parentfed785b2eba72881bdde911c6fbadb4fa51f1dcb (diff)
downloadhdf5-b14417185c487c900ea210f346c910a9bfe1d506.zip
hdf5-b14417185c487c900ea210f346c910a9bfe1d506.tar.gz
hdf5-b14417185c487c900ea210f346c910a9bfe1d506.tar.bz2
[svn-r6373] Purpose:
Update Description: Added support for defining what the haddr type is in terms of MPI types. Solution: Include some #defines when we typedef haddr... Platforms tested: Linux (For FPHDF5 stuff)...
Diffstat (limited to 'src')
-rw-r--r--src/H5public.h35
1 files changed, 25 insertions, 10 deletions
diff --git a/src/H5public.h b/src/H5public.h
index ccf0fb8..62238cf 100644
--- a/src/H5public.h
+++ b/src/H5public.h
@@ -159,20 +159,35 @@ typedef ssize_t hssize_t;
* File addresses have there own types.
*/
#if H5_SIZEOF_UINT64_T>=8
- typedef uint64_t haddr_t;
-# define HADDR_UNDEF ((haddr_t)(int64_t)(-1))
+ typedef uint64_t haddr_t;
+# define HADDR_UNDEF ((haddr_t)(int64_t)(-1))
+# ifdef H5_HAVE_PARALLEL
+# define HADDR_AS_MPI_TYPE MPI_LONG_LONG_INT
+# endif /* H5_HAVE_PARALLEL */
#elif H5_SIZEOF_INT>=8
- typedef unsigned haddr_t;
-# define HADDR_UNDEF ((haddr_t)(-1))
+ typedef unsigned haddr_t;
+# define HADDR_UNDEF ((haddr_t)(-1))
+# ifdef H5_HAVE_PARALLEL
+# define HADDR_AS_MPI_TYPE MPI_UNSIGNED
+# endif /* H5_HAVE_PARALLEL */
#elif H5_SIZEOF_LONG>=8
- typedef unsigned long haddr_t;
-# define HADDR_UNDEF ((haddr_t)(long)(-1))
+ typedef unsigned long haddr_t;
+# define HADDR_UNDEF ((haddr_t)(long)(-1))
+# ifdef H5_HAVE_PARALLEL
+# define HADDR_AS_MPI_TYPE MPI_UNSIGNED_LONG
+# endif /* H5_HAVE_PARALLEL */
#elif H5_SIZEOF_LONG_LONG>=8
- typedef unsigned long long haddr_t;
-# define HADDR_UNDEF ((haddr_t)(long long)(-1))
+ typedef unsigned long long haddr_t;
+# define HADDR_UNDEF ((haddr_t)(long long)(-1))
+# ifdef H5_HAVE_PARALLEL
+# define HADDR_AS_MPI_TYPE MPI_LONG_LONG_INT
+# endif /* H5_HAVE_PARALLEL */
#elif H5_SIZEOF___INT64>=8
- typedef unsigned __int64 haddr_t;
-# define HADDR_UNDEF ((haddr_t)(__int64)(-1))
+ typedef unsigned __int64 haddr_t;
+# define HADDR_UNDEF ((haddr_t)(__int64)(-1))
+# ifdef H5_HAVE_PARALLEL
+# define HADDR_AS_MPI_TYPE MPI_LONG_LONG_INT
+# endif /* H5_HAVE_PARALLEL */
#else
# error "nothing appropriate for haddr_t"
#endif