@@ -270,13 +270,7 @@ template<> struct fp_traits_non_native<double, double_precision>
270270
271271// long double (64 bits) -------------------------------------------------------
272272
273- #if defined(BOOST_NO_INT64_T) || defined(BOOST_NO_INCLASS_MEMBER_INITIALIZATION)\
274- || defined (BOOST_BORLANDC) || defined (__CODEGEAR__) || (defined (__APPLE__) && defined (__aarch64__)) || defined (_MSC_VER)\
275- || (defined (__GNUC__) && defined (__aarch64__) && defined (_WIN32))\
276- || (defined (__GNUC__) && (defined (__arm__) || defined (__thumb__)))\
277- || defined (__SYCL_DEVICE_ONLY__) || (LDBL_MANT_DIG == 53 )
278-
279- static_assert (LDBL_MANT_DIG == 53 , " Oops, assumption that long double is a 64-bit quantity is incorrect!!" );
273+ #if LDBL_MANT_DIG == 53 || defined(__SYCL_DEVICE_ONLY__)
280274
281275template <> struct fp_traits_non_native <long double , double_precision>
282276{
@@ -305,14 +299,10 @@ template<> struct fp_traits_non_native<long double, double_precision>
305299
306300// long double (>64 bits), x86 and x64 -----------------------------------------
307301
308- #elif defined(__i386) || defined(__i386__) || defined(_M_IX86) \
309- || defined (__amd64) || defined (__amd64__) || defined (_M_AMD64) \
310- || defined (__x86_64) || defined (__x86_64__) || defined (_M_X64)
302+ #elif LDBL_MANT_DIG == 64
311303
312304// Intel extended double precision format (80 bits)
313305
314- static_assert (LDBL_MANT_DIG == 64 , " Oops, assumption that long double is an 80-bit quantity is incorrect!!" );
315-
316306template <>
317307struct fp_traits_non_native <long double , extended_double_precision>
318308{
@@ -440,8 +430,6 @@ struct fp_traits_non_native<long double, extended_double_precision>
440430
441431// IEEE extended double precision format with 15 exponent bits (128 bits)
442432
443- static_assert (LDBL_MANT_DIG == 113 , " Oops, assumption that long double is a 128-bit quantity is incorrect!!" );
444-
445433template <>
446434struct fp_traits_non_native <long double , extended_double_precision>
447435{
0 commit comments