diff --git a/i2pd b/i2pd index abf0f5a..4448884 160000 --- a/i2pd +++ b/i2pd @@ -1 +1 @@ -Subproject commit abf0f5ac8780c9cb0088e4ccefcd0d0274e63965 +Subproject commit 4448884a3ebf822ecca7b39f2fe9777a79ae1863 diff --git a/src/util.h b/src/util.h index d07df12..7269dd7 100644 --- a/src/util.h +++ b/src/util.h @@ -552,8 +552,18 @@ void RenameThread(const char* name); inline uint32_t ByteReverse(uint32_t value) { +#if 0 +// #if defined(__x86_64__) + __asm__ + ( + "bswap %%eax" + : "=a"(value) :: + ); + return value; +#else value = ((value & 0xFF00FF00) >> 8) | ((value & 0x00FF00FF) << 8); return (value<<16) | (value>>16); +#endif } // Standard wrapper for do-something-forever thread functions.