ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

net_wh.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 #ifdef i386
00004 
00005 /* DWORD network to host byte order conversion for i386 */
00006 #define DN2H(dw) \
00007     ((((dw) & 0xFF000000L) >> 24) | \
00008      (((dw) & 0x00FF0000L) >> 8) | \
00009      (((dw) & 0x0000FF00L) << 8) | \
00010      (((dw) & 0x000000FFL) << 24))
00011 
00012 /* DWORD host to network byte order conversion for i386 */
00013 #define DH2N(dw) \
00014     ((((dw) & 0xFF000000L) >> 24) | \
00015      (((dw) & 0x00FF0000L) >> 8) | \
00016      (((dw) & 0x0000FF00L) << 8) | \
00017      (((dw) & 0x000000FFL) << 24))
00018 
00019 /* WORD network to host order conversion for i386 */
00020 #define WN2H(w) \
00021     ((((w) & 0xFF00) >> 8) | \
00022      (((w) & 0x00FF) << 8))
00023 
00024 /* WORD host to network byte order conversion for i386 */
00025 #define WH2N(w) \
00026     ((((w) & 0xFF00) >> 8) | \
00027      (((w) & 0x00FF) << 8))
00028 
00029 #else /* i386 */
00030 
00031 /* DWORD network to host byte order conversion for other architectures */
00032 #define DN2H(dw) \
00033     (dw)
00034 
00035 /* DWORD host to network byte order conversion for other architectures */
00036 #define DH2N(dw) \
00037     (dw)
00038 
00039 /* WORD network to host order conversion for other architectures */
00040 #define WN2H(w) \
00041     (w)
00042 
00043 /* WORD host to network byte order conversion for other architectures */
00044 #define WH2N(w) \
00045     (w)
00046 
00047 #endif /* i386 */

Generated on Sun May 27 2012 04:28:04 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.