Optimize grisu using uint128_t

This commit is contained in:
Victor Zverovich
2019-04-13 13:04:27 -07:00
parent 41fbaeb3b1
commit bade46aae5
2 changed files with 15 additions and 3 deletions

View File

@@ -176,8 +176,12 @@ FMT_END_NAMESPACE
# define FMT_USE_TRAILING_RETURN 0
#endif
#ifndef FMT_USE_INT128
# define FMT_USE_INT128 (__SIZEOF_INT128__ != 0)
#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: