summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/cpu/mips64orion/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/score/cpu/mips64orion/cpu.h')
-rw-r--r--c/src/exec/score/cpu/mips64orion/cpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/src/exec/score/cpu/mips64orion/cpu.h b/c/src/exec/score/cpu/mips64orion/cpu.h
index 7868c88ddd..75809b3384 100644
--- a/c/src/exec/score/cpu/mips64orion/cpu.h
+++ b/c/src/exec/score/cpu/mips64orion/cpu.h
@@ -941,6 +941,9 @@ static inline unsigned int CPU_swap_u32(
return( swapped );
}
+#define CPU_swap_u16( value ) \
+ (((value&0xff) << 8) | ((value >> 8)&0xff))
+
/*
* Miscellaneous prototypes
*