public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28090af
)
cpu-6502: ntohs
author
Alan Cox
<alan@linux.intel.com>
Thu, 1 Oct 2015 20:43:29 +0000
(21:43 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Thu, 1 Oct 2015 20:43:29 +0000
(21:43 +0100)
Kernel/cpu-6502/cpu.h
patch
|
blob
|
history
diff --git
a/Kernel/cpu-6502/cpu.h
b/Kernel/cpu-6502/cpu.h
index
1b9d830
..
4633186
100644
(file)
--- 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))