summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/cpu/a29k/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/score/cpu/a29k/cpu.h')
-rw-r--r--c/src/exec/score/cpu/a29k/cpu.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/c/src/exec/score/cpu/a29k/cpu.h b/c/src/exec/score/cpu/a29k/cpu.h
index 326abaab5c..bf7f5230b9 100644
--- a/c/src/exec/score/cpu/a29k/cpu.h
+++ b/c/src/exec/score/cpu/a29k/cpu.h
@@ -961,7 +961,11 @@ void _CPU_Context_restore_fp(
*/
#define CPU_swap_u32( value ) \
- ((value&0xff) << 24) | (((value >> 8)&0xff) << 16) | (((value >> 16)&0xff) << 8) | ((value>>24)&0xff)
+ ((value&0xff) << 24) | (((value >> 8)&0xff) << 16) | \
+ (((value >> 16)&0xff) << 8) | ((value>>24)&0xff)
+
+#define CPU_swap_u16( value ) \
+ (((value&0xff) << 8) | ((value >> 8)&0xff))
#ifdef __cplusplus
}