cpu-6502: ntohs
authorAlan Cox <alan@linux.intel.com>
Thu, 1 Oct 2015 20:43:29 +0000 (21:43 +0100)
committerAlan Cox <alan@linux.intel.com>
Thu, 1 Oct 2015 20:43:29 +0000 (21:43 +0100)
Kernel/cpu-6502/cpu.h

index 1b9d830..4633186 100644 (file)
@@ -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))