Lines Matching full:lhs
48 * lhs < rhs: return <0
49 * lhs == rhs: return 0
50 * lhs > rhs: return >0
52 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) in timespec64_compare() argument
54 if (lhs->tv_sec < rhs->tv_sec) in timespec64_compare()
56 if (lhs->tv_sec > rhs->tv_sec) in timespec64_compare()
58 return lhs->tv_nsec - rhs->tv_nsec; in timespec64_compare()
63 static inline struct timespec64 timespec64_add(struct timespec64 lhs, in timespec64_add() argument
67 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add()
68 lhs.tv_nsec + rhs.tv_nsec); in timespec64_add()
73 * sub = lhs - rhs, in normalized form
75 static inline struct timespec64 timespec64_sub(struct timespec64 lhs, in timespec64_sub() argument
79 set_normalized_timespec64(&ts_delta, lhs.tv_sec - rhs.tv_sec, in timespec64_sub()
80 lhs.tv_nsec - rhs.tv_nsec); in timespec64_sub()
160 extern struct timespec64 timespec64_add_safe(const struct timespec64 lhs,