summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/cpu/i960
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/i960
parenteac9871aa29f8a8079d2cd0f9cd7c12c006cf3d9 (diff)
downloadrtems-b0aba4c46b14204f7de6471512136de7003877c4.tar.bz2
Added swap of unsigned16
Diffstat (limited to 'c/src/exec/score/cpu/i960')
-rw-r--r--c/src/exec/score/cpu/i960/i960.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/src/exec/score/cpu/i960/i960.h b/c/src/exec/score/cpu/i960/i960.h
index 5f67f72fb6..78260a5a57 100644
--- a/c/src/exec/score/cpu/i960/i960.h
+++ b/c/src/exec/score/cpu/i960/i960.h
@@ -255,6 +255,9 @@ static inline unsigned int CPU_swap_u32(
return( swapped );
}
+#define CPU_swap_u16( value ) \
+ (((value&0xff) << 8) | ((value >> 8)&0xff))
+
#ifdef __cplusplus
}
#endif