diff --git a/src/util-inl.h b/src/util-inl.h index 669b7e7535..69dc5b2a61 100644 --- a/src/util-inl.h +++ b/src/util-inl.h @@ -199,15 +199,8 @@ TypeName* Unwrap(v8::Local object) { } void SwapBytes(uint16_t* dst, const uint16_t* src, size_t buflen) { - for (size_t i = 0; i < buflen; i++) { - // __builtin_bswap16 generates more efficient code with - // g++ 4.8 on PowerPC and other big-endian archs -#ifdef __GNUC__ - dst[i] = __builtin_bswap16(src[i]); -#else + for (size_t i = 0; i < buflen; i += 1) dst[i] = (src[i] << 8) | (src[i] >> 8); -#endif - } }