Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

inttypes.h File Reference

#include "config.h"
#include "base/platform.h"
#include <inttypes.h>

Go to the source code of this file.

Defines

#define bits2intsize(X)   (((X) + 31) >> 5)
 Size computation in "int" units to avoid any alignment problem.
#define bytes2intsize(X)   (((X) + 3) >> 2)
#define intsizeof(X)   bytes2intsize(sizeof(X))
#define POINTERS_OF(_TYPE, _NAME, _SIZE)   _TYPE *_NAME[_SIZE]
 Hack to get around icc failure to recognize property POD types (plain old data): if TYPE is a class, then TYPE* is not considered as POD.

Typedefs

typedef uint32_t cindex_t
 Type for indices (variables and clocks).

Enumerations

enum  BOOL { FALSE = 0, TRUE = 1 }
 Define BOOL for C compilers. More...


Define Documentation

#define bits2intsize  )     (((X) + 31) >> 5)
 

Size computation in "int" units to avoid any alignment problem.

intsizeof : as sizeof but result in "int" units bits2intsize : convert # of bits to # of int (size+31)/32 bytes2intsize: convert # of bytes to # of int (size+3)/4

#define bytes2intsize  )     (((X) + 3) >> 2)
 

#define intsizeof  )     bytes2intsize(sizeof(X))
 

#define POINTERS_OF _TYPE,
_NAME,
_SIZE   )     _TYPE *_NAME[_SIZE]
 

Hack to get around icc failure to recognize property POD types (plain old data): if TYPE is a class, then TYPE* is not considered as POD.

Here we allocate on the stack an array of (icc-non POD) TYPE* via a cast.


Typedef Documentation

typedef uint32_t cindex_t
 

Type for indices (variables and clocks).


Enumeration Type Documentation

enum BOOL
 

Define BOOL for C compilers.

NOTE: we could define bool for C compilers only but the type may not be compatible with the C++ compiler (as defined in stdbool.h).

Enumeration values:
FALSE 
TRUE 


Generated on Fri Jun 30 00:02:30 2006 for Module base by  doxygen 1.4.2