mirror of
https://github.com/fmtlib/fmt.git
synced 2025-02-05 00:40:12 +00:00
Move definition of FMT_USE_INT128 to core.h
This commit is contained in:
parent
8ce5f680f2
commit
16e3c48bb0
@ -195,6 +195,14 @@
|
|||||||
# define FMT_USE_EXPERIMENTAL_STRING_VIEW
|
# define FMT_USE_EXPERIMENTAL_STRING_VIEW
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef FMT_USE_INT128
|
||||||
|
// Do nothing.
|
||||||
|
#elif defined(__SIZEOF_INT128__)
|
||||||
|
# define FMT_USE_INT128 1
|
||||||
|
#else
|
||||||
|
# define FMT_USE_INT128 0
|
||||||
|
#endif
|
||||||
|
|
||||||
FMT_BEGIN_NAMESPACE
|
FMT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
// Implementations of enable_if_t and other types for pre-C++14 systems.
|
// Implementations of enable_if_t and other types for pre-C++14 systems.
|
||||||
|
@ -123,14 +123,6 @@ FMT_END_NAMESPACE
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef FMT_USE_INT128
|
|
||||||
// Do nothing.
|
|
||||||
#elif defined(__SIZEOF_INT128__)
|
|
||||||
# define FMT_USE_INT128 1
|
|
||||||
#else
|
|
||||||
# define FMT_USE_INT128 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// __builtin_clz is broken in clang with Microsoft CodeGen:
|
// __builtin_clz is broken in clang with Microsoft CodeGen:
|
||||||
// https://github.com/fmtlib/fmt/issues/519
|
// https://github.com/fmtlib/fmt/issues/519
|
||||||
#if (FMT_GCC_VERSION || FMT_HAS_BUILTIN(__builtin_clz)) && !FMT_MSC_VER
|
#if (FMT_GCC_VERSION || FMT_HAS_BUILTIN(__builtin_clz)) && !FMT_MSC_VER
|
||||||
|
Loading…
x
Reference in New Issue
Block a user