| Index: runtime/platform/utils_fuchsia.h
|
| diff --git a/runtime/platform/utils_fuchsia.h b/runtime/platform/utils_fuchsia.h
|
| index 4143daff12566e1bde514cd2d97ea4b6e7f7bec9..c82c797b0bb53b0cea5c1c0153f078b4167b721e 100644
|
| --- a/runtime/platform/utils_fuchsia.h
|
| +++ b/runtime/platform/utils_fuchsia.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 (strerror_r(err, buffer, bufsize) != 0) {
|
| snprintf(buffer, bufsize, "%s", "strerror_r failed");
|
|
|