|
#define | master_kernel() (kid == 0) |
| This macro expands to true if the local kernel is the master kernel.
|
|
#define | N_KER_MAX 128 |
| Maximum number of kernels the distributed simulator can handle.
|
|
#define | MAX_LPs 250000 |
| Maximum number of LPs the simulator will handle.
|
|
#define | likely(exp) __builtin_expect(exp, 1) |
| Optimize the branch as likely taken.
|
|
#define | unlikely(exp) __builtin_expect(exp, 0) |
| Optimize the branch as likely not taken.
|
|
#define | F_EQUAL(a, b) (fabsf((a) - (b)) < FLT_EPSILON) |
| Equality condition for floats.
|
|
#define | F_EQUAL_ZERO(a) (fabsf(a) < FLT_EPSILON) |
| Equality to zero condition for floats.
|
|
#define | F_DIFFER(a, b) (fabsf((a) - (b)) >= FLT_EPSILON) |
| Difference condition for floats.
|
|
#define | F_DIFFER_ZERO(a) (fabsf(a) >= FLT_EPSILON) |
| Difference from zero condition for floats.
|
|
#define | D_EQUAL(a, b) (fabs((a) - (b)) < DBL_EPSILON) |
| Equality condition for doubles.
|
|
#define | D_EQUAL_ZERO(a) (fabs(a) < DBL_EPSILON) |
| Equality to zero condition for doubles.
|
|
#define | D_DIFFER(a, b) (fabs((a) - (b)) >= DBL_EPSILON) |
| Difference condition for doubles.
|
|
#define | D_DIFFER_ZERO(a) (fabs(a) >= DBL_EPSILON) |
| Difference from zero condition for doubles.
|
|
#define | max(a, b) |
| Macro to find the maximum among two values. More...
|
|
#define | min(a, b) |
| Macro to find the minimum among two values. More...
|
|
#define | UNION_CAST(x, destType) (((union {__typeof__(x) a; destType b;})x).b) |
| Macro to "legitimately" pun a type.
|
|
#define | is_lid(val) __builtin_types_compatible_p(__typeof__ (val), LID_t) |
|
#define | is_gid(val) __builtin_types_compatible_p(__typeof__ (val), GID_t) |
|
#define | set_lid(lid, value) (__builtin_choose_expr(is_lid(lid), lid.to_int, (void)0) = (value)) |
|
#define | set_gid(gid, value) (__builtin_choose_expr(is_gid(gid), gid.to_int, (void)0) = (value)) |
|
#define | MSG_PADDING offsetof(msg_t, sender) |
|
#define | MSG_META_SIZE (offsetof(msg_t, event_content) - MSG_PADDING) |
|
#define | rootsim_error(fatal, msg, ...) _rootsim_error(fatal, "%s:%d: %s(): " msg, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__) |
|
|
void | ProcessEvent_light (unsigned int me, simtime_t now, int event_type, void *event_content, unsigned int size, void *state) |
|
bool | OnGVT_light (unsigned int me, void *snapshot) |
|
void | ProcessEvent_inc (unsigned int me, simtime_t now, int event_type, void *event_content, unsigned int size, void *state) |
|
bool | OnGVT_inc (unsigned int me, void *snapshot) |
|
void | base_init (void) |
|
void | base_fini (void) |
|
unsigned int | find_kernel_by_gid (GID_t gid) |
|
void | _rootsim_error (bool fatal, const char *msg,...) |
|
void | distribute_lps_on_kernels (void) |
|
void | simulation_shutdown (int code) |
|
bool | user_requested_exit (void) |
|
bool | simulation_error (void) |
|
void | initialization_complete (void) |
|
Core ROOT-Sim functionalities.
Core ROOT-Sim functionalities
- Copyright
- Copyright (C) 2008-2019 HPDCS Group https://hpdcs.github.io
This file is part of ROOT-Sim (ROme OpTimistic Simulator).
ROOT-Sim is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; only version 3 of the License applies.
ROOT-Sim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with ROOT-Sim; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- Author
- Francesco Quaglia
-
Alessandro Pellegrini
-
Roberto Vitali
- Date
- 3/18/2011
Definition in file core.h.