From e87a24633bb73d9121820111d557bbaa9357414f Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 21 Feb 2015 06:16:49 -0800 Subject: [PATCH] Don't use builtin_ in function names as they are not builtins --- format.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/format.h b/format.h index b8d81c14..cfad735f 100644 --- a/format.h +++ b/format.h @@ -50,20 +50,20 @@ namespace fmt { namespace internal { # pragma intrinsic(_BitScanReverse) -inline uint32_t builtin_clz(uint32_t x) { +inline uint32_t clz(uint32_t x) { unsigned long r = 0; _BitScanReverse(&r, x); return 31 - r; } -# define FMT_BUILTIN_CLZ(n) fmt::internal::builtin_clz(n) +# define FMT_BUILTIN_CLZ(n) fmt::internal::clz(n) # ifdef _WIN64 # pragma intrinsic(_BitScanReverse64) -inline uint32_t builtin_clzll(uint64_t n) { +inline uint32_t clzll(uint64_t n) { unsigned long r = 0; _BitScanReverse64(&r, x); return 63 - r; } -# define FMT_BUILTIN_CLZLL(n) fmt::internal::builtin_clzll(n) +# define FMT_BUILTIN_CLZLL(n) fmt::internal::clzll(n) # endif } }