Tianji Wu
/
syncMaster_3
syncMaster for problem 3
Diff: hdtimeval_math.h
- Revision:
- 0:b9f06a7ae791
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hdtimeval_math.h Fri Dec 03 20:53:21 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