From 1456f8fc79164f86b21b647031bc15a3600e14a4 Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Fri, 3 May 2019 05:50:27 +0000 Subject: [PATCH] removed experimental arm code used in moo_bswapNN() functions --- moo/lib/moo-utl.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/moo/lib/moo-utl.h b/moo/lib/moo-utl.h index fb339bf..509e179 100644 --- a/moo/lib/moo-utl.h +++ b/moo/lib/moo-utl.h @@ -748,9 +748,6 @@ static MOO_INLINE moo_uint16_t moo_bswap16 (moo_uint16_t x) #elif defined(__GNUC__) && (defined(__x86_64) || defined(__amd64) || defined(__i386) || defined(i386)) __asm__ volatile ("xchgb %b0, %h0" : "=Q"(x): "0"(x)); return x; -#elif defined(__GNUC__) && defined(__arm__) && (defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_8__)) - __asm__ volatile ("rev16 %0, %1" : "=&r"(x): "+r"(x)); - return x; #else return (x << 8) | (x >> 8); #endif @@ -765,9 +762,6 @@ static MOO_INLINE moo_uint32_t moo_bswap32 (moo_uint32_t x) #elif defined(__GNUC__) && (defined(__x86_64) || defined(__amd64) || defined(__i386) || defined(i386)) __asm__ volatile ("bswapl %0" : "=r"(x) : "0"(x)); return x; -#elif defined(__GNUC__) && defined(__arm__) && (defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_8__)) - __asm__ volatile ("rev32 %0, %1" : "=&r"(x): "+r"(x)); - return x; #else return ((x >> 24)) | ((x >> 8) & ((moo_uint32_t)0xff << 8)) |