summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/cpu/no_cpu/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/score/cpu/no_cpu/cpu.h')
-rw-r--r--c/src/exec/score/cpu/no_cpu/cpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/src/exec/score/cpu/no_cpu/cpu.h b/c/src/exec/score/cpu/no_cpu/cpu.h
index 36e5681709..0373e43fc7 100644
--- a/c/src/exec/score/cpu/no_cpu/cpu.h
+++ b/c/src/exec/score/cpu/no_cpu/cpu.h
@@ -859,6 +859,9 @@ static inline unsigned int CPU_swap_u32(
return( swapped );
}
+#define CPU_swap_u16( value ) \
+ (((value&0xff) << 8) | ((value >> 8)&0xff))
+
#ifdef __cplusplus
}
#endif