#include <stdio.h>
#include <assert.h>
Go to the source code of this file.
|
#define | MAIN(argc, argv) int main (int argc, char** argv) |
|
#define | MAIN_RETURN(val) return val |
|
#define | GOTO_SIM() /* nothing */ |
|
#define | GOTO_REAL() /* nothing */ |
|
#define | IS_IN_SIM() (0) |
|
#define | SIM_GET_NUM_CPU(var) /* nothing */ |
|
#define | TM_PRINTF printf |
|
#define | TM_PRINT0 printf |
|
#define | TM_PRINT1 printf |
|
#define | TM_PRINT2 printf |
|
#define | TM_PRINT3 printf |
|
#define | P_MEMORY_STARTUP(numThread) /* nothing */ |
|
#define | P_MEMORY_SHUTDOWN() /* nothing */ |
|
#define | TM_ARG /* nothing */ |
|
#define | TM_ARG_ALONE /* nothing */ |
|
#define | TM_ARGDECL /* nothing */ |
|
#define | TM_ARGDECL_ALONE /* nothing */ |
|
#define | TM_CALLABLE /* nothing */ |
|
#define | TM_STARTUP(numThread) /* nothing */ |
|
#define | TM_SHUTDOWN() /* nothing */ |
|
#define | TM_THREAD_ENTER() /* nothing */ |
|
#define | TM_THREAD_EXIT() /* nothing */ |
|
#define | P_MALLOC(size) malloc(size) |
|
#define | P_FREE(ptr) free(ptr) |
|
#define | TM_MALLOC(size) malloc(size) |
|
#define | TM_FREE(ptr) free(ptr) |
|
#define | TM_BEGIN() /* nothing */ |
|
#define | TM_BEGIN_RO() /* nothing */ |
|
#define | TM_END() /* nothing */ |
|
#define | TM_RESTART() assert(0) |
|
#define | TM_EARLY_RELEASE(var) /* nothing */ |
|
#define | TM_SHARED_READ_I(var) (var) |
|
#define | TM_SHARED_READ_L(var) (var) |
|
#define | TM_SHARED_READ_P(var) (var) |
|
#define | TM_SHARED_READ_F(var) (var) |
|
#define | TM_SHARED_WRITE_I(var, val) ({var = val; var;}) |
|
#define | TM_SHARED_WRITE_L(var, val) ({var = val; var;}) |
|
#define | TM_SHARED_WRITE_P(var, val) ({var = val; var;}) |
|
#define | TM_SHARED_WRITE_F(var, val) ({var = val; var;}) |
|
#define | TM_LOCAL_WRITE_I(var, val) ({var = val; var;}) |
|
#define | TM_LOCAL_WRITE_L(var, val) ({var = val; var;}) |
|
#define | TM_LOCAL_WRITE_P(var, val) ({var = val; var;}) |
|
#define | TM_LOCAL_WRITE_F(var, val) ({var = val; var;}) |
|
#define GOTO_REAL |
( |
| ) |
/* nothing */ |
#define GOTO_SIM |
( |
| ) |
/* nothing */ |
#define IS_IN_SIM |
( |
| ) |
(0) |
#define MAIN |
( |
|
argc, |
|
|
|
argv |
|
) |
| int main (int argc, char** argv) |
#define MAIN_RETURN |
( |
|
val | ) |
return val |
#define P_FREE |
( |
|
ptr | ) |
free(ptr) |
#define P_MALLOC |
( |
|
size | ) |
malloc(size) |
#define P_MEMORY_SHUTDOWN |
( |
| ) |
/* nothing */ |
#define P_MEMORY_STARTUP |
( |
|
numThread | ) |
/* nothing */ |
#define SIM_GET_NUM_CPU |
( |
|
var | ) |
/* nothing */ |
#define TM_ARG /* nothing */ |
#define TM_ARG_ALONE /* nothing */ |
#define TM_ARGDECL /* nothing */ |
#define TM_ARGDECL_ALONE /* nothing */ |
#define TM_BEGIN |
( |
| ) |
/* nothing */ |
#define TM_BEGIN_RO |
( |
| ) |
/* nothing */ |
#define TM_CALLABLE /* nothing */ |
#define TM_EARLY_RELEASE |
( |
|
var | ) |
/* nothing */ |
#define TM_END |
( |
| ) |
/* nothing */ |
#define TM_FREE |
( |
|
ptr | ) |
free(ptr) |
#define TM_LOCAL_WRITE_F |
( |
|
var, |
|
|
|
val |
|
) |
| ({var = val; var;}) |
#define TM_LOCAL_WRITE_I |
( |
|
var, |
|
|
|
val |
|
) |
| ({var = val; var;}) |
#define TM_LOCAL_WRITE_L |
( |
|
var, |
|
|
|
val |
|
) |
| ({var = val; var;}) |
#define TM_LOCAL_WRITE_P |
( |
|
var, |
|
|
|
val |
|
) |
| ({var = val; var;}) |
#define TM_MALLOC |
( |
|
size | ) |
malloc(size) |
#define TM_RESTART |
( |
| ) |
assert(0) |
#define TM_SHARED_READ_F |
( |
|
var | ) |
(var) |
#define TM_SHARED_READ_I |
( |
|
var | ) |
(var) |
#define TM_SHARED_READ_L |
( |
|
var | ) |
(var) |
#define TM_SHARED_READ_P |
( |
|
var | ) |
(var) |
#define TM_SHARED_WRITE_F |
( |
|
var, |
|
|
|
val |
|
) |
| ({var = val; var;}) |
#define TM_SHARED_WRITE_I |
( |
|
var, |
|
|
|
val |
|
) |
| ({var = val; var;}) |
#define TM_SHARED_WRITE_L |
( |
|
var, |
|
|
|
val |
|
) |
| ({var = val; var;}) |
#define TM_SHARED_WRITE_P |
( |
|
var, |
|
|
|
val |
|
) |
| ({var = val; var;}) |
#define TM_SHUTDOWN |
( |
| ) |
/* nothing */ |
#define TM_STARTUP |
( |
|
numThread | ) |
/* nothing */ |
#define TM_THREAD_ENTER |
( |
| ) |
/* nothing */ |
#define TM_THREAD_EXIT |
( |
| ) |
/* nothing */ |