Tianji Wu
/
syncSlave_2
syncSlave for problem 2
Diff: hdtimeval_math.h
- Revision:
- 0:988132ee7271
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hdtimeval_math.h Fri Dec 03 20:52:44 2010 +0000 @@ -0,0 +1,13 @@ +#ifndef HDTIMEVAL_MATH_H +#define HDTIMEVAL_MATH_H + +#include "timesync.h" + +void hdtv_add (hdtimeval_t * r, hdtimeval_t * v1, hdtimeval_t * v2); +void hdtv_div2 (hdtimeval_t * r, hdtimeval_t * v); +void hdtv_div8 (hdtimeval_t * r, hdtimeval_t * v); +void hdtv_sub (hdtimeval_t * r, hdtimeval_t * v1, hdtimeval_t * v2); +void hdtv_muldiv (hdtimeval_t * r, hdtimeval_t * v, hdtimeval_t * m, hdtimeval_t * d); +void hdtv_totv(timeval_t * r, hdtimeval_t * v); + +#endif //HDTIMEVAL_MATH_H