Lines Matching refs:right
117 timespec_compare (const struct timespec *left, const struct timespec *right) in timespec_compare() argument
119 if (left->tv_sec < right->tv_sec) in timespec_compare()
121 if (left->tv_sec > right->tv_sec) in timespec_compare()
124 if (left->tv_nsec < right->tv_nsec) in timespec_compare()
126 if (left->tv_nsec > right->tv_nsec) in timespec_compare()
134 const struct timespec *right) in timespec_add() argument
136 sum->tv_sec = left->tv_sec + right->tv_sec; in timespec_add()
137 sum->tv_nsec = left->tv_nsec + right->tv_nsec; in timespec_add()
148 const struct timespec *right) in timespec_sub() argument
150 diff->tv_sec = left->tv_sec - right->tv_sec; in timespec_sub()
151 diff->tv_nsec = left->tv_nsec - right->tv_nsec; in timespec_sub()