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

Unified Diff: runtime/platform/utils_win.h

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 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 | « runtime/platform/utils_macos.h ('k') | runtime/vm/allocation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/utils_win.h
diff --git a/runtime/platform/utils_win.h b/runtime/platform/utils_win.h
index 92b7f98a60e2e2cd2a5b7ada77ba2a02933dad6f..c3a67e79fae6a77fad2f2499768b158b448bb8cc 100644
--- a/runtime/platform/utils_win.h
+++ b/runtime/platform/utils_win.h
@@ -22,7 +22,6 @@ inline int Utils::CountLeadingZeros(uword x) {
return kBitsPerWord - static_cast<int>(position) - 1;
}
-
inline int Utils::CountTrailingZeros(uword x) {
unsigned long result; // NOLINT
#if defined(ARCH_IS_32_BIT)
@@ -35,32 +34,26 @@ inline int Utils::CountTrailingZeros(uword x) {
return static_cast<int>(result);
}
-
inline uint16_t Utils::HostToBigEndian16(uint16_t value) {
return _byteswap_ushort(value);
}
-
inline uint32_t Utils::HostToBigEndian32(uint32_t value) {
return _byteswap_ulong(value);
}
-
inline uint64_t Utils::HostToBigEndian64(uint64_t value) {
return _byteswap_uint64(value);
}
-
inline uint16_t Utils::HostToLittleEndian16(uint16_t value) {
return value;
}
-
inline uint32_t Utils::HostToLittleEndian32(uint32_t value) {
return value;
}
-
inline uint64_t Utils::HostToLittleEndian64(uint64_t value) {
return value;
}
« no previous file with comments | « runtime/platform/utils_macos.h ('k') | runtime/vm/allocation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698