26 __typeof__(a) _a = (a); \
27 __typeof__(b) _b = (b); \
37 __typeof__(a) _a = (a); \
38 __typeof__(b) _b = (b); \
42 #ifndef CACHE_LINE_SIZE
44 #define CACHE_LINE_SIZE 64
49 #define likely(exp) __builtin_expect(!!(exp), 1)
51 #define unlikely(exp) __builtin_expect((exp), 0)
53 #define likely(exp) (exp)
54 #define unlikely(exp) (exp)
58 #define SIMTIME_MAX DBL_MAX
62 #define MAX_NODES (1 << 16)
65 #define MAX_THREADS_EXP 12
67 #define MAX_THREADS (1 << MAX_THREADS_EXP)
ROOT-Sim header for model development.
uint64_t lp_id_t
Logical Process ID data type.
Definition: ROOT-Sim.h:33
char * core_version
A string keeping the textual representation of the version of the core.
Definition: core.c:17
int nid_t
Used to identify MPI nodes in a distributed environment.
Definition: core.h:72
lp_id_t n_lps_node
The total number of LPs hosted in the node.
Definition: lp.c:29
nid_t n_nodes
The total number of MPI nodes in the simulation.
Definition: core.c:14
__thread rid_t rid
The identifier of the thread.
Definition: core.c:13
unsigned rid_t
Used to identify in a node the computing resources (threads at the moment)
Definition: core.h:70
struct simulation_configuration global_config
The global configuration of the simulation, passed by the model.
Definition: init.c:27
nid_t nid
The node identifier of the node.
Definition: core.c:15
A set of configurable values used by other modules.
Definition: ROOT-Sim.h:210