mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Incorporate Z80 bugfixes reported by Phillip Klaus Krause
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4270 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+4
-4
@@ -69,10 +69,10 @@
|
||||
((((unsigned short)(ns)) >> 8) & 0x00ff))
|
||||
# define HTONL(nl) \
|
||||
(unsigned long) \
|
||||
(((((unsigned long)(nl)) & 0x000000ffL) << 24) | \
|
||||
((((unsigned long)(nl)) & 0x0000ff00L) << 8) | \
|
||||
((((unsigned long)(nl)) & 0x00ff0000L) >> 8) | \
|
||||
((((unsigned long)(nl)) & 0xff000000L) >> 24))
|
||||
(((((unsigned long)(nl)) & 0x000000ffUL) << 24) | \
|
||||
((((unsigned long)(nl)) & 0x0000ff00UL) << 8) | \
|
||||
((((unsigned long)(nl)) & 0x00ff0000UL) >> 8) | \
|
||||
((((unsigned long)(nl)) & 0xff000000UL) >> 24))
|
||||
#endif
|
||||
|
||||
#define NTOHS(hs) HTONS(hs)
|
||||
|
||||
Reference in New Issue
Block a user