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)   ((unsigned char)(w))
 
#define HIBYTE(w)   ((unsigned char)(((unsigned short)(w) >> 8) & 0xFF))
 
#define LOWORD(d)   ((unsigned short)(d))
 
#define HIWORD(d)   ((unsigned short)((((unsigned long)(d)) >> 16) & 0xFFFF))
 
#define LODWORD(q)   ((q).u.dwLowDword)
 
#define HIDWORD(q)   ((q).u.dwHighDword)
 
#define MAKEWORD(lb, hb)   ((unsigned short)(((unsigned char)(lb)) | (((unsigned short)((unsigned char)(hb))) << 8)))
 
#define MAKEDWORD(lw, hw)   ((unsigned long)(((unsigned short)(lw)) | (((unsigned long)((unsigned short)(hw))) << 16)))
 

Macro Definition Documentation

#define HIBYTE (   w)    ((unsigned char)(((unsigned short)(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)    ((unsigned short)((((unsigned long)(d)) >> 16) & 0xFFFF))

Definition at line 47 of file tmacro.h.

#define LOBYTE (   w)    ((unsigned char)(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)    ((unsigned short)(d))

Definition at line 44 of file tmacro.h.

#define MAKEDWORD (   lw,
  hw 
)    ((unsigned long)(((unsigned short)(lw)) | (((unsigned long)((unsigned short)(hw))) << 16)))

Definition at line 57 of file tmacro.h.

#define MAKEWORD (   lb,
  hb 
)    ((unsigned short)(((unsigned char)(lb)) | (((unsigned short)((unsigned char)(hb))) << 8)))

Definition at line 54 of file tmacro.h.