diff options
Diffstat (limited to 'firmware/target/coldfire')
-rw-r--r-- | firmware/target/coldfire/system-target.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/coldfire/system-target.h b/firmware/target/coldfire/system-target.h index 2de8fd06c2..d1a2a1f115 100644 --- a/firmware/target/coldfire/system-target.h +++ b/firmware/target/coldfire/system-target.h | |||
@@ -132,7 +132,7 @@ static inline void restore_irq(int oldlevel) | |||
132 | asm volatile ("move.w %0, %%sr" : : "d"(oldlevel)); | 132 | asm volatile ("move.w %0, %%sr" : : "d"(oldlevel)); |
133 | } | 133 | } |
134 | 134 | ||
135 | static inline uint16_t swap16(uint16_t value) | 135 | static inline uint16_t swap16_hw(uint16_t value) |
136 | /* | 136 | /* |
137 | result[15..8] = value[ 7..0]; | 137 | result[15..8] = value[ 7..0]; |
138 | result[ 7..0] = value[15..8]; | 138 | result[ 7..0] = value[15..8]; |
@@ -141,7 +141,7 @@ static inline uint16_t swap16(uint16_t value) | |||
141 | return (value >> 8) | (value << 8); | 141 | return (value >> 8) | (value << 8); |
142 | } | 142 | } |
143 | 143 | ||
144 | static inline uint32_t SWAW32(uint32_t value) | 144 | static inline uint32_t swaw32_hw(uint32_t value) |
145 | /* | 145 | /* |
146 | result[31..16] = value[15.. 0]; | 146 | result[31..16] = value[15.. 0]; |
147 | result[15.. 0] = value[31..16]; | 147 | result[15.. 0] = value[31..16]; |
@@ -151,7 +151,7 @@ static inline uint32_t SWAW32(uint32_t value) | |||
151 | return value; | 151 | return value; |
152 | } | 152 | } |
153 | 153 | ||
154 | static inline uint32_t swap32(uint32_t value) | 154 | static inline uint32_t swap32_hw(uint32_t value) |
155 | /* | 155 | /* |
156 | result[31..24] = value[ 7.. 0]; | 156 | result[31..24] = value[ 7.. 0]; |
157 | result[23..16] = value[15.. 8]; | 157 | result[23..16] = value[15.. 8]; |
@@ -174,7 +174,7 @@ static inline uint32_t swap32(uint32_t value) | |||
174 | return value; | 174 | return value; |
175 | } | 175 | } |
176 | 176 | ||
177 | static inline uint32_t swap_odd_even32(uint32_t value) | 177 | static inline uint32_t swap_odd_even32_hw(uint32_t value) |
178 | { | 178 | { |
179 | /* | 179 | /* |
180 | result[31..24],[15.. 8] = value[23..16],[ 7.. 0] | 180 | result[31..24],[15.. 8] = value[23..16],[ 7.. 0] |