Lines Matching +full:conversion +full:- +full:interval
2 * timespecops.h -- calculations on 'struct timespec' values
8 * ---------
13 * fraction is in the interval [0 .. 10^9[ ; there are multiple value
14 * pairs of seconds and nanoseconds that denote the same time interval,
54 ((x)->tv_nsec >= 0 && (x)->tv_nsec < NANOSECONDS)
56 /* predicate: returns TRUE if the nanoseconds are out-of-bounds */
96 /* x = a - b */
106 x.tv_sec -= b.tv_sec; in sub_tspec()
107 x.tv_nsec -= b.tv_nsec; in sub_tspec()
112 /* x = a - b, b is fraction only */
122 x.tv_nsec -= b; in sub_tspec_ns()
127 /* x = -a */
135 x.tv_sec = -a.tv_sec; in neg_tspec()
136 x.tv_nsec = -a.tv_nsec; in neg_tspec()
145 * compare previously-normalised a and b
146 * return 1 / 0 / -1 if a < / == / > b
151 * compare possibly-denormal a and b
152 * return 1 / 0 / -1 if a < / == / > b
164 * test previously-normalised a
165 * return 1 / 0 / -1 if a < / == / > 0
170 * test possibly-denormal a
171 * return 1 / 0 / -1 if a < / == / > 0
216 * absolute (timestamp) conversion. Input is time in NTP epoch, output