Tianji Wu
/
syncMaster_2
syncMaster for problem 2
hdtimeval_math.h@0:6a0716eb2e73, 2010-12-03 (annotated)
- Committer:
- the729
- Date:
- Fri Dec 03 20:52:00 2010 +0000
- Revision:
- 0:6a0716eb2e73
working
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
the729 | 0:6a0716eb2e73 | 1 | #ifndef HDTIMEVAL_MATH_H |
the729 | 0:6a0716eb2e73 | 2 | #define HDTIMEVAL_MATH_H |
the729 | 0:6a0716eb2e73 | 3 | |
the729 | 0:6a0716eb2e73 | 4 | #include "timesync.h" |
the729 | 0:6a0716eb2e73 | 5 | |
the729 | 0:6a0716eb2e73 | 6 | void hdtv_add (hdtimeval_t * r, hdtimeval_t * v1, hdtimeval_t * v2); |
the729 | 0:6a0716eb2e73 | 7 | void hdtv_div2 (hdtimeval_t * r, hdtimeval_t * v); |
the729 | 0:6a0716eb2e73 | 8 | void hdtv_div8 (hdtimeval_t * r, hdtimeval_t * v); |
the729 | 0:6a0716eb2e73 | 9 | void hdtv_sub (hdtimeval_t * r, hdtimeval_t * v1, hdtimeval_t * v2); |
the729 | 0:6a0716eb2e73 | 10 | void hdtv_muldiv (hdtimeval_t * r, hdtimeval_t * v, hdtimeval_t * m, hdtimeval_t * d); |
the729 | 0:6a0716eb2e73 | 11 | void hdtv_totv(timeval_t * r, hdtimeval_t * v); |
the729 | 0:6a0716eb2e73 | 12 | |
the729 | 0:6a0716eb2e73 | 13 | #endif //HDTIMEVAL_MATH_H |