diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2015-03-25 21:33:48 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2015-03-25 21:33:48 (GMT) |
commit | d3114a96da64de8ea987f7c1714f8ad4a2474f4e (patch) | |
tree | 5f55455b9e0520291f52daed4d5d28348a189578 /config/cmake/ConversionTests.c | |
parent | 597c3c089b022d967a59b0ab199c73e144417c79 (diff) | |
download | hdf5-d3114a96da64de8ea987f7c1714f8ad4a2474f4e.zip hdf5-d3114a96da64de8ea987f7c1714f8ad4a2474f4e.tar.gz hdf5-d3114a96da64de8ea987f7c1714f8ad4a2474f4e.tar.bz2 |
[svn-r26591] Description:
Bring r26492 from autotools_rework branch back to trunk:
Remove the FP_TO_ULLONG_ACCURATE and FP_TO_ULLONG_RIGHT_MAXIMUM
macros/defines, which were added to address problems with older PGI
compilers and HP-UX systems and are no longer supported.
Tested on:
Linux/32 2.6.18 (jam) w/serial & parallel
(daily tested on branch for >1 week)
Diffstat (limited to 'config/cmake/ConversionTests.c')
-rw-r--r-- | config/cmake/ConversionTests.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/config/cmake/ConversionTests.c b/config/cmake/ConversionTests.c index 82342a4..3b9b416 100644 --- a/config/cmake/ConversionTests.c +++ b/config/cmake/ConversionTests.c @@ -13,54 +13,6 @@ done: #endif -#ifdef H5_FP_TO_ULLONG_ACCURATE_TEST - -int main(void) -{ - float f = 111.60f; - double d = 222.55L; - unsigned long long l1 = (unsigned long long)f; - unsigned long long l2 = (unsigned long long)d; - int ret = 0; - - if(l1 == 112) - ret = 1; - if(l2 == 223) - ret = 1; - -done: - exit(ret); -} - -#endif - -#ifdef H5_FP_TO_ULLONG_RIGHT_MAXIMUM_TEST -int main(void) -{ - float f = 9701917572145405952.00f; - double d1 = 9701917572145405952.00L; - long double d2 = 9701917572145405952.00L; - double d3 = 2e40L; - unsigned long long l1 = (unsigned long long)f; - unsigned long long l2 = (unsigned long long)d1; - unsigned long long l3 = (unsigned long long)d2; - unsigned long long l4; - unsigned long long l5 = 0x7fffffffffffffffULL; - int ret = 0; - - if(l1 <= l5 || l2 <= l5 || l3 <= l5) - ret = 1; - - l4 = (unsigned long long)d3; - if(l4 <= l5) - ret = 1; - -done: - exit(ret); -} - -#endif - #ifdef H5_LDOUBLE_TO_LONG_SPECIAL_TEST int main(void) |