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

Unified Diff: runtime/platform/utils_fuchsia.h

Issue 2189973003: Fuchsia: Make some more VM tests pass (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
Index: runtime/platform/utils_fuchsia.h
diff --git a/runtime/platform/utils_fuchsia.h b/runtime/platform/utils_fuchsia.h
index 0129bfeb20187d849f9c201808707b81177662fb..4e8c4e97796c2483592c5602935fb67f86cd0e12 100644
--- a/runtime/platform/utils_fuchsia.h
+++ b/runtime/platform/utils_fuchsia.h
@@ -5,7 +5,7 @@
#ifndef PLATFORM_UTILS_FUCHSIA_H_
#define PLATFORM_UTILS_FUCHSIA_H_
-#include "platform/assert.h"
+#include <endian.h>
namespace dart {
@@ -32,38 +32,32 @@ inline int Utils::CountTrailingZeros(uword x) {
inline uint16_t Utils::HostToBigEndian16(uint16_t value) {
- UNIMPLEMENTED();
- return 0;
+ return htobe16(value);
}
inline uint32_t Utils::HostToBigEndian32(uint32_t value) {
- UNIMPLEMENTED();
- return 0;
+ return htobe32(value);
}
inline uint64_t Utils::HostToBigEndian64(uint64_t value) {
- UNIMPLEMENTED();
- return 0;
+ return htobe64(value);
}
inline uint16_t Utils::HostToLittleEndian16(uint16_t value) {
- UNIMPLEMENTED();
- return 0;
+ return htole16(value);
}
inline uint32_t Utils::HostToLittleEndian32(uint32_t value) {
- UNIMPLEMENTED();
- return 0;
+ return htole32(value);
}
inline uint64_t Utils::HostToLittleEndian64(uint64_t value) {
- UNIMPLEMENTED();
- return 0;
+ return htole64(value);
}

Powered by Google App Engine
This is Rietveld 408576698