forked from boostorg/config
Merge pull request #330 from eldiener/develop
Turn off 128-bit integer for Embarcadero C++ clang-based compilers. U…
This commit is contained in:
@ -26,6 +26,15 @@
|
|||||||
# define BOOST_NO_CXX11_THREAD_LOCAL
|
# define BOOST_NO_CXX11_THREAD_LOCAL
|
||||||
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
||||||
|
|
||||||
|
// This bug has been reported to Embarcadero
|
||||||
|
|
||||||
|
#if defined(BOOST_HAS_INT128)
|
||||||
|
#undef BOOST_HAS_INT128
|
||||||
|
#endif
|
||||||
|
#if defined(BOOST_HAS_FLOAT128)
|
||||||
|
#undef BOOST_HAS_FLOAT128
|
||||||
|
#endif
|
||||||
|
|
||||||
// 32 functions are missing from the current RTL in cwchar, so it really can not be used even if it exists
|
// 32 functions are missing from the current RTL in cwchar, so it really can not be used even if it exists
|
||||||
|
|
||||||
# define BOOST_NO_CWCHAR
|
# define BOOST_NO_CWCHAR
|
||||||
|
@ -22,6 +22,10 @@ int test()
|
|||||||
__float128 big_float = 0.0Q;
|
__float128 big_float = 0.0Q;
|
||||||
#endif
|
#endif
|
||||||
(void)&big_float;
|
(void)&big_float;
|
||||||
|
|
||||||
|
__float128 i(2.00), j(1.00), k;
|
||||||
|
k = i / j;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,6 +63,9 @@ int test()
|
|||||||
fputs("Incorrect computation result.", stderr);
|
fputs("Incorrect computation result.", stderr);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my_uint128_t ii(2), jj(1), kk;
|
||||||
|
kk = ii / jj;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user