Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: src/utils/SkTextureCompressor_ASTC.cpp

Issue 458663004: Replace LLU with ULL to make VS2012 work again. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698