Lines Matching refs:t1
91 /* t1 <=> t2, also (t1 - t2) in nsec with max of +- 1 sec */
92 #define CMP_MACH_TIMESPEC(t1, t2) \
93 ((t1)->tv_sec > (t2)->tv_sec ? +NSEC_PER_SEC : \
94 ((t1)->tv_sec < (t2)->tv_sec ? -NSEC_PER_SEC : \
95 (t1)->tv_nsec - (t2)->tv_nsec))
97 /* t1 += t2 */
98 #define ADD_MACH_TIMESPEC(t1, t2) \
100 if (((t1)->tv_nsec += (t2)->tv_nsec) >= NSEC_PER_SEC) { \
101 (t1)->tv_nsec -= NSEC_PER_SEC; \
102 (t1)->tv_sec += 1; \
104 (t1)->tv_sec += (t2)->tv_sec; \
107 /* t1 -= t2 */
108 #define SUB_MACH_TIMESPEC(t1, t2) \
110 if (((t1)->tv_nsec -= (t2)->tv_nsec) < 0) { \
111 (t1)->tv_nsec += NSEC_PER_SEC; \
112 (t1)->tv_sec -= 1; \
114 (t1)->tv_sec -= (t2)->tv_sec; \