simtimemath.h Source File¶
|
API
|
simtimemath.h
134SIM_API int64_t preciseDiv(int64_t x, const SimTime& y, int64_t& fractionNumerator, int64_t& fractionDenominator);
SIM_API int64_t preciseDiv(int64_t x, const SimTime &y, int64_t &fractionNumerator, int64_t &fractionDenominator)
Precise division of an integer and a simulation time.
const SimTime floor(const SimTime &x)
simtime_t version of floor(double) from math.h.
Definition simtimemath.h:38
const SimTime fabs(const SimTime &x)
Returns the absolute value of the simulation time x.
Definition simtimemath.h:85
const SimTime fmod(const SimTime &x, const SimTime &y)
Computes the remainder of the division of two simulation times.
Definition simtimemath.h:120
int64_t div(const SimTime &x, const SimTime &y)
Computes the quotient of the simulation times x and y. The quotient is the algebraic quotient with an...
Definition simtimemath.h:100
const SimTime ceil(const SimTime &x)
simtime_t version of ceil(double) from math.h.
Definition simtimemath.h:63
Generated on for API by