Cleanup
This commit is contained in:
@@ -761,28 +761,22 @@ using is_integer =
|
||||
# define FMT_USE_LONG_DOUBLE 1
|
||||
#endif
|
||||
|
||||
#ifndef FMT_USE_FLOAT128
|
||||
# ifdef __clang__
|
||||
// Clang emulates GCC, so it has to appear early.
|
||||
# if FMT_HAS_INCLUDE(<quadmath.h>)
|
||||
# define FMT_USE_FLOAT128 1
|
||||
# endif
|
||||
# elif defined(__GNUC__)
|
||||
// GNU C++:
|
||||
# if defined(_GLIBCXX_USE_FLOAT128) && !defined(__STRICT_ANSI__)
|
||||
# define FMT_USE_FLOAT128 1
|
||||
# endif
|
||||
# endif
|
||||
# ifndef FMT_USE_FLOAT128
|
||||
# define FMT_USE_FLOAT128 0
|
||||
# endif
|
||||
#if defined(FMT_USE_FLOAT128)
|
||||
// Use the provided definition.
|
||||
#elif FMT_CLANG_VERSION && FMT_HAS_INCLUDE(<quadmath.h>)
|
||||
# define FMT_USE_FLOAT128 1
|
||||
#elif FMT_GCC_VERSION && defined(_GLIBCXX_USE_FLOAT128) && \
|
||||
!defined(__STRICT_ANSI__)
|
||||
# define FMT_USE_FLOAT128 1
|
||||
#else
|
||||
# define FMT_USE_FLOAT128 0
|
||||
#endif
|
||||
|
||||
#if FMT_USE_FLOAT128
|
||||
using float128 = __float128;
|
||||
#else
|
||||
using float128 = void;
|
||||
#endif
|
||||
|
||||
template <typename T> using is_float128 = std::is_same<T, float128>;
|
||||
|
||||
template <typename T>
|
||||
|
||||
Reference in New Issue
Block a user