From ab8ad3c18b55ce2614b7d86e9482e947c042b793 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 1 Oct 2015 21:43:29 +0100 Subject: [PATCH] cpu-6502: ntohs --- Kernel/cpu-6502/cpu.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Kernel/cpu-6502/cpu.h b/Kernel/cpu-6502/cpu.h index 1b9d8304..4633186c 100644 --- a/Kernel/cpu-6502/cpu.h +++ b/Kernel/cpu-6502/cpu.h @@ -58,4 +58,6 @@ typedef union { /* this structure is endian dependent */ #define used(x) /* No support for inline */ -#define inline \ No newline at end of file +#define inline + +#define ntohs(x) ((((x) & 0xFF) << 8) | (((x) & 0xFF00) >> 8)) -- 2.34.1