Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs
types.h File Reference

Go to the source code of this file.

Macros

#define ARRAY_SIZE(x)   (sizeof(x) / sizeof((x)[0]))
 
#define min(x, y)
 
#define max(x, y)
 

Typedefs

typedef unsigned char u8
 
typedef unsigned short u16
 
typedef unsigned int u32
 
typedef unsigned long long u64
 
typedef signed char s8
 
typedef short s16
 
typedef int s32
 
typedef long long s64
 

Macro Definition Documentation

#define ARRAY_SIZE (   x)    (sizeof(x) / sizeof((x)[0]))

Definition at line 4 of file types.h.

#define max (   x,
  y 
)
Value:
({ \
typeof(x) _x = (x); \
typeof(y) _y = (y); \
(void) (&_x == &_y); \
_x > _y ? _x : _y; })

Definition at line 21 of file types.h.

#define min (   x,
  y 
)
Value:
({ \
typeof(x) _x = (x); \
typeof(y) _y = (y); \
(void) (&_x == &_y); \
_x < _y ? _x : _y; })

Definition at line 15 of file types.h.

Typedef Documentation

typedef short s16

Definition at line 11 of file types.h.

typedef int s32

Definition at line 12 of file types.h.

typedef long long s64

Definition at line 13 of file types.h.

typedef signed char s8

Definition at line 10 of file types.h.

typedef unsigned short u16

Definition at line 7 of file types.h.

typedef unsigned int u32

Definition at line 8 of file types.h.

typedef unsigned long long u64

Definition at line 9 of file types.h.

typedef unsigned char u8

Definition at line 6 of file types.h.