summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/cpu/a29k
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-04-27 16:10:16 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-04-27 16:10:16 +0000
commitb0aba4c46b14204f7de6471512136de7003877c4 (patch)
treec3128754275e49fb155f41a327d5938385395cb8 /c/src/exec/score/cpu/a29k
parentFixed spelling errors. (diff)
downloadrtems-b0aba4c46b14204f7de6471512136de7003877c4.tar.bz2
Added swap of unsigned16
Diffstat (limited to 'c/src/exec/score/cpu/a29k')
-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
}