From 430c45d618d758736de4c58f3915d30d9067d40b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 14 Feb 2014 14:06:39 -0800 Subject: [PATCH] Too much Python :snake: --- format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.h b/format.h index a3d4f9dc..6afee1ec 100644 --- a/format.h +++ b/format.h @@ -249,7 +249,7 @@ extern const uint64_t POWERS_OF_10[]; // Returns the number of decimal digits in n. Leading zeros are not counted // except for n == 0 in which case CountDigits returns 1. inline unsigned CountDigits(uint64_t n) { -#if FMT_GCC_VERSION >= 400 or __has_builtin(__builtin_clzll) +#if FMT_GCC_VERSION >= 400 || __has_builtin(__builtin_clzll) // Based on http://graphics.stanford.edu/~seander/bithacks.html#IntegerLog10 // and the benchmark https://github.com/localvoid/cxx-benchmark-count-digits. uint64_t t = (64 - __builtin_clzll(n | 1)) * 1233 >> 12;