#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... |
|
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 |
|
|
|
|
|
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. |
|
Type for indices (variables and clocks).
|
|
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). |