diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-06-04 15:33:24 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-06-04 15:33:24 (GMT) |
commit | a3f07ee9279362db7791ed92a0c37cb9c2a1e634 (patch) | |
tree | 1e324d857455e885923f11d08af0ff48c9cc045a | |
parent | 99f66946f1ac4fc05fc1a213b2026c5d6a721d33 (diff) | |
download | hdf5-a3f07ee9279362db7791ed92a0c37cb9c2a1e634.zip hdf5-a3f07ee9279362db7791ed92a0c37cb9c2a1e634.tar.gz hdf5-a3f07ee9279362db7791ed92a0c37cb9c2a1e634.tar.bz2 |
[svn-r6955] Purpose:
Code cleanup
Description:
Tweak HSIZET_MAX macro and add HSSIZE_MAX and HSSIZET_MIN macros.
Platforms tested:
FreeBSD 4.8 (sleipnir) w/C++
FreeBSD 4.8 (sleipnir) w/parallel
h5committested
-rw-r--r-- | src/H5private.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/H5private.h b/src/H5private.h index ec08f0f..7a52698 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -430,8 +430,14 @@ # define SIZET_MAX ((hsize_t)(size_t)(ssize_t)(-1)) # define SSIZET_MAX ((hsize_t)(ssize_t)((size_t)1<<(8*sizeof(ssize_t)-1))) #endif -#define HSIZET_MAX ((hsize_t)(hssize_t)(-1)) -#define HSSIZET_MAX ((hsize_t)1<<(8*sizeof(hssize_t)-1)) +#ifdef H5_HAVE_LARGE_HSIZET +#define HSIZET_MAX 0xffffffffffffffffULL +#define HSSIZET_MAX 0x7fffffffffffffffLL +#else /* H5_HAVE_LARGE_HSIZET */ +#define HSIZET_MAX SIZET_MAX +#define HSSIZET_MAX SSIZET_MAX +#endif /* H5_HAVE_LARGE_HSIZET */ +#define HSSIZET_MIN ((-HSSIZET_MAX)-1) /* * Some compilers have problems declaring auto variables that point |