aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/core/src/firebase/firestore/util/bits.h
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/core/src/firebase/firestore/util/bits.h')
-rw-r--r--Firestore/core/src/firebase/firestore/util/bits.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Firestore/core/src/firebase/firestore/util/bits.h b/Firestore/core/src/firebase/firestore/util/bits.h
index 94a018f..591c306 100644
--- a/Firestore/core/src/firebase/firestore/util/bits.h
+++ b/Firestore/core/src/firebase/firestore/util/bits.h
@@ -24,13 +24,13 @@
#include <cstdint>
-class Bits_Port32_Test;
-class Bits_Port64_Test;
-
namespace firebase {
namespace firestore {
namespace util {
+class Bits_Port32_Test;
+class Bits_Port64_Test;
+
class Bits {
public:
/** Return floor(log2(n)) for positive integer n. Returns -1 iff n == 0. */
@@ -81,9 +81,9 @@ inline int Bits::Log2FloorNonZero64(uint64_t n) {
return 63 ^ __builtin_clzll(n);
}
-#elif defined(COMPILER_MSVC)
+#elif defined(_MSC_VER)
-inline int Bits::Log2FloorNonZero(uint32 n) {
+inline int Bits::Log2FloorNonZero(uint32_t n) {
#ifdef _M_IX86
_asm {
bsr ebx, n
@@ -95,7 +95,7 @@ inline int Bits::Log2FloorNonZero(uint32 n) {
#endif
}
-inline int Bits::Log2Floor(uint32 n) {
+inline int Bits::Log2Floor(uint32_t n) {
#ifdef _M_IX86
_asm {
xor ebx, ebx
@@ -120,7 +120,7 @@ inline int Bits::Log2FloorNonZero64(uint64_t n) {
return Bits::Log2FloorNonZero64_Portable(n);
}
-#else // !__GNUC__ && !COMPILER_MSVC
+#else // !__GNUC__ && !_MSC_VER
inline int Bits::Log2Floor64(uint64_t n) {
return Bits::Log2Floor64_Portable(n);