From 9f0bad0efe46237c18d7fb7074bdc60afc42c2ca Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 25 Feb 2011 00:46:39 +0000 Subject: Byteswap routines don't really need 'asm volatile', just 'asm' since it should be safe to move them for optimizing. Clean up the line endings for ARM. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29394 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/sh/system-target.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'firmware/target/sh/system-target.h') diff --git a/firmware/target/sh/system-target.h b/firmware/target/sh/system-target.h index 1693a132a6..d78c0587fc 100644 --- a/firmware/target/sh/system-target.h +++ b/firmware/target/sh/system-target.h @@ -84,7 +84,7 @@ static inline uint16_t swap16_hw(uint16_t value) */ { uint16_t result; - asm volatile ("swap.b\t%1,%0" : "=r"(result) : "r"(value)); + asm ("swap.b\t%1,%0" : "=r"(result) : "r"(value)); return result; } @@ -95,7 +95,7 @@ static inline uint32_t swaw32_hw(uint32_t value) */ { uint32_t result; - asm volatile ("swap.w\t%1,%0" : "=r"(result) : "r"(value)); + asm ("swap.w\t%1,%0" : "=r"(result) : "r"(value)); return result; } @@ -107,9 +107,9 @@ static inline uint32_t swap32_hw(uint32_t value) result[ 7.. 0] = value[31..24]; */ { - asm volatile ("swap.b\t%0,%0\n" - "swap.w\t%0,%0\n" - "swap.b\t%0,%0\n" : "+r"(value)); + asm ("swap.b\t%0,%0\n" + "swap.w\t%0,%0\n" + "swap.b\t%0,%0\n" : "+r"(value)); return value; } @@ -119,10 +119,10 @@ static inline uint32_t swap_odd_even32_hw(uint32_t value) result[31..24],[15.. 8] = value[23..16],[ 7.. 0] result[23..16],[ 7.. 0] = value[31..24],[15.. 8] */ - asm volatile ("swap.b\t%0,%0\n" - "swap.w\t%0,%0\n" - "swap.b\t%0,%0\n" - "swap.w\t%0,%0\n" : "+r"(value)); + asm ("swap.b\t%0,%0\n" + "swap.w\t%0,%0\n" + "swap.b\t%0,%0\n" + "swap.w\t%0,%0\n" : "+r"(value)); return value; } -- cgit v1.2.3