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

Unified Diff: runtime/platform/utils_linux.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_fuchsia.h ('k') | runtime/platform/utils_macos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/utils_linux.h
diff --git a/runtime/platform/utils_linux.h b/runtime/platform/utils_linux.h
index b5214fdce3cd3cddb26759fd69274f2fe382f271..a754ef4145905204885221865a3e286b39d4de36 100644
--- a/runtime/platform/utils_linux.h
+++ b/runtime/platform/utils_linux.h
@@ -19,7 +19,6 @@ inline int Utils::CountLeadingZeros(uword x) {
#endif
}
-
inline int Utils::CountTrailingZeros(uword x) {
#if defined(ARCH_IS_32_BIT)
return __builtin_ctzl(x);
@@ -30,37 +29,30 @@ inline int Utils::CountTrailingZeros(uword x) {
#endif
}
-
inline uint16_t Utils::HostToBigEndian16(uint16_t value) {
return htobe16(value);
}
-
inline uint32_t Utils::HostToBigEndian32(uint32_t value) {
return htobe32(value);
}
-
inline uint64_t Utils::HostToBigEndian64(uint64_t value) {
return htobe64(value);
}
-
inline uint16_t Utils::HostToLittleEndian16(uint16_t value) {
return htole16(value);
}
-
inline uint32_t Utils::HostToLittleEndian32(uint32_t value) {
return htole32(value);
}
-
inline uint64_t Utils::HostToLittleEndian64(uint64_t value) {
return htole64(value);
}
-
inline char* Utils::StrError(int err, char* buffer, size_t bufsize) {
#if !defined(__GLIBC__) || \
((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE)
« no previous file with comments | « runtime/platform/utils_fuchsia.h ('k') | runtime/platform/utils_macos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698