Lines Matching +full:abs +full:- +full:range
2 * timespecops.h -- calculations on 'struct timespec' values
8 * ---------
52 /* predicate: returns TRUE if the nanoseconds are in nominal range */
54 ((x)->tv_nsec >= 0 && (x)->tv_nsec < NANOSECONDS)
56 /* predicate: returns TRUE if the nanoseconds are out-of-bounds */
62 /* make sure nanoseconds are in nominal range */
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()
141 /* x = abs(a) */
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