Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
tmacro.h File Reference
#include "ttype.h"

Go to the source code of this file.

Macros

#define LOBYTE(w)   ((BYTE)(w))
 
#define HIBYTE(w)   ((BYTE)(((WORD)(w) >> 8) & 0xFF))
 
#define LOWORD(d)   ((WORD)(d))
 
#define HIWORD(d)   ((WORD)((((DWORD)(d)) >> 16) & 0xFFFF))
 
#define LODWORD(q)   ((q).u.dwLowDword)
 
#define HIDWORD(q)   ((q).u.dwHighDword)
 
#define MAKEWORD(lb, hb)   ((WORD)(((BYTE)(lb)) | (((WORD)((BYTE)(hb))) << 8)))
 
#define MAKEDWORD(lw, hw)   ((DWORD)(((WORD)(lw)) | (((DWORD)((WORD)(hw))) << 16)))
 

Macro Definition Documentation

#define HIBYTE (   w)    ((BYTE)(((WORD)(w) >> 8) & 0xFF))

Definition at line 40 of file tmacro.h.

#define HIDWORD (   q)    ((q).u.dwHighDword)

Definition at line 51 of file tmacro.h.

#define HIWORD (   d)    ((WORD)((((DWORD)(d)) >> 16) & 0xFFFF))

Definition at line 47 of file tmacro.h.

#define LOBYTE (   w)    ((BYTE)(w))

Definition at line 37 of file tmacro.h.

#define LODWORD (   q)    ((q).u.dwLowDword)

Definition at line 50 of file tmacro.h.

#define LOWORD (   d)    ((WORD)(d))

Definition at line 44 of file tmacro.h.

#define MAKEDWORD (   lw,
  hw 
)    ((DWORD)(((WORD)(lw)) | (((DWORD)((WORD)(hw))) << 16)))

Definition at line 57 of file tmacro.h.

#define MAKEWORD (   lb,
  hb 
)    ((WORD)(((BYTE)(lb)) | (((WORD)((BYTE)(hb))) << 8)))

Definition at line 54 of file tmacro.h.