Index: src/utils/SkTextureCompressor_ASTC.cpp |
diff --git a/src/utils/SkTextureCompressor_ASTC.cpp b/src/utils/SkTextureCompressor_ASTC.cpp |
index c7c7f1401950c201fb93f668f154f777c2464092..7c77c6bcd6cb0dc789a8c58510b7d41a85e0588b 100644 |
--- a/src/utils/SkTextureCompressor_ASTC.cpp |
+++ b/src/utils/SkTextureCompressor_ASTC.cpp |
@@ -285,10 +285,10 @@ static inline T swap_bits(T p) { |
} |
static inline uint64_t reverse64(uint64_t n) { |
- static const uint64_t m0 = 0x5555555555555555LLU; |
- static const uint64_t m1 = 0x0300c0303030c303LLU; |
- static const uint64_t m2 = 0x00c0300c03f0003fLLU; |
- static const uint64_t m3 = 0x00000ffc00003fffLLU; |
+ static const uint64_t m0 = 0x5555555555555555ULL; |
+ static const uint64_t m1 = 0x0300c0303030c303ULL; |
+ static const uint64_t m2 = 0x00c0300c03f0003fULL; |
+ static const uint64_t m3 = 0x00000ffc00003fffULL; |
n = ((n>>1)&m0) | (n&m0)<<1; |
n = swap_bits<uint64_t, m1, 4>(n); |
n = swap_bits<uint64_t, m2, 8>(n); |