summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-03-29 19:22:11 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-03-29 19:22:11 +0000
commitee6bb1b579654679e5d2405c6be135d7e9a0b66a (patch)
tree23d3068c5ed94a6cda04a0bea03aa00a5484b033 /firmware
parentd77274aeb9859cc26aa49201bb0938babbd44069 (diff)
downloadrockbox-ee6bb1b579654679e5d2405c6be135d7e9a0b66a.tar.gz
rockbox-ee6bb1b579654679e5d2405c6be135d7e9a0b66a.zip
Missed one variable declaration updating byteswapping functions. Not functionally different but keeps things consistent.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12965 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/coldfire/system-target.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/firmware/target/coldfire/system-target.h b/firmware/target/coldfire/system-target.h
index 06d2c2d603..3fbd24cbe4 100644
--- a/firmware/target/coldfire/system-target.h
+++ b/firmware/target/coldfire/system-target.h
@@ -126,8 +126,7 @@ static inline uint32_t swap_odd_even32(uint32_t value)
result[31..24],[15.. 8] = value[23..16],[ 7.. 0]
result[23..16],[ 7.. 0] = value[31..24],[15.. 8]
*/
- unsigned long mask = 0x00FF00FF;
-
+ uint32_t mask = 0x00FF00FF;
asm ( /* val = ABCD */
"and.l %[val],%[mask] \n" /* mask = .B.D */
"eor.l %[mask],%[val] \n" /* val = A.C. */
@@ -138,7 +137,6 @@ static inline uint32_t swap_odd_even32(uint32_t value)
[val] "+d"(value),
[mask]"+d"(mask)
);
-
return value;
}