From b0aba4c46b14204f7de6471512136de7003877c4 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 27 Apr 1998 16:10:16 +0000 Subject: Added swap of unsigned16 --- c/src/exec/score/cpu/hppa1.1/cpu.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'c/src/exec/score/cpu/hppa1.1') diff --git a/c/src/exec/score/cpu/hppa1.1/cpu.h b/c/src/exec/score/cpu/hppa1.1/cpu.h index 3df9215730..91dbdc8cad 100644 --- a/c/src/exec/score/cpu/hppa1.1/cpu.h +++ b/c/src/exec/score/cpu/hppa1.1/cpu.h @@ -599,6 +599,9 @@ CPU_swap_u32(unsigned32 value) return( swapped ); } +#define CPU_swap_u16( value ) \ + (((value&0xff) << 8) | ((value >> 8)&0xff)) + #endif /* ! ASM */ #ifdef __cplusplus -- cgit v1.2.3