36 constexpr unsigned int PXidx= 0;
37 constexpr unsigned int PYidx= 1;
38 constexpr unsigned int PZidx= 2;
40 constexpr unsigned int VXidx= 3;
41 constexpr unsigned int VYidx= 4;
42 constexpr unsigned int VZidx= 5;
52#if defined(WIN32) || defined(__MINGW32__)
53#define unlikely(x) (x)
56#define unlikely(x) __builtin_expect((x),0)
57#define likely(x) __builtin_expect((x),1)
68#define SUBSTEP_STRUCT(sim, i) (sim->substeps[i])
69#define SUBSTEP_START(sim, i) (sim->substeps[(i)].start_time)
70#define SUBSTEP_X(sim, i) (sim->substeps[(i)].x)
71#define SUBSTEP_TX(sim, i) (sim->substeps[(i)].tx)
72#define SUBSTEP_LEN(sim, i) (sim->substeps[(i)].len)
74#define LAST_SUBSTEP_STRUCT(sim) (SUBSTEP_STRUCT(sim, sim->cur_substep_idx-1))
76#define CUR_SUBSTEP_START(sim) (SUBSTEP_START(sim, sim->cur_substep_idx))
77#define CUR_SUBSTEP_X(sim) (SUBSTEP_X(sim, sim->cur_substep_idx))
78#define CUR_SUBSTEP_TX(sim) (SUBSTEP_TX(sim, sim->cur_substep_idx))
79#define CUR_SUBSTEP_LEN(sim) (SUBSTEP_LEN(sim, sim->cur_substep_idx))
81#define CUR_SUBSTEP(sim) (sim->cur_substep_idx)
82#define LAST_SUBSTEP(sim) (sim->cur_substep_idx-1)
83#define MAX_SUBSTEP(sim) (sim->max_substep_idx)
84#define SUBSTEPS(sim) (sim->substeps)
struct QSS_simulator_ * QSS_simulator
struct QSSSubstep_ * QSSSubstep
constexpr unsigned int PZidx
constexpr unsigned int PYidx
constexpr unsigned int VZidx
constexpr unsigned int VXidx
constexpr unsigned int VAR_IDX_END
constexpr unsigned int MIN_SUBSTEPS
constexpr unsigned int PXidx
constexpr unsigned int MAX_QSS_STEPPER_ORDER
constexpr unsigned int VYidx
double tx[Qss_misc::VAR_IDX_END]
double x[Qss_misc::VAR_IDX_END *(Qss_misc::MAX_QSS_STEPPER_ORDER+1)]
double tx[Qss_misc::VAR_IDX_END]
double q[Qss_misc::VAR_IDX_END *(Qss_misc::MAX_QSS_STEPPER_ORDER+1)]
double alg[Qss_misc::VAR_IDX_END]
double dQRel[Qss_misc::VAR_IDX_END]
double tq[Qss_misc::VAR_IDX_END]
double nextStateTime[Qss_misc::VAR_IDX_END]
double dQMin[Qss_misc::VAR_IDX_END]
double x[Qss_misc::VAR_IDX_END *(Qss_misc::MAX_QSS_STEPPER_ORDER+1)]
double lqu[Qss_misc::VAR_IDX_END]
int * SD[Qss_misc::VAR_IDX_END]