Lines Matching +full:max +full:- +full:cur
1 /*-
21 #define F_INIT(p, f) FL_INIT((p)->flags, f) /* Structure element flags. */
22 #define F_SET(p, f) FL_SET((p)->flags, f)
23 #define F_CLR(p, f) FL_CLR((p)->flags, f)
24 #define F_ISSET(p, f) FL_ISSET((p)->flags, f)
27 #define COL_OFF(c, stop) ((stop) - ((c) % (stop)))
41 #define NNFITS(min, cur, add) \ argument
42 (((long)(min)) - (cur) <= (add))
43 #define NPFITS(max, cur, add) \ argument
44 (((unsigned long)(max)) - (cur) >= (add))
56 /* Macros for min/max. */
58 #undef MAX
60 #define MAX(_a,_b) ((_a)<(_b)?(_b):(_a)) macro
68 #define timespecclear(tvp) ((tvp)->tv_sec = (tvp)->tv_nsec = 0)
69 #define timespecisset(tvp) ((tvp)->tv_sec || (tvp)->tv_nsec)
71 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
72 ((tvp)->tv_nsec cmp (uvp)->tv_nsec) : \
73 ((tvp)->tv_sec cmp (uvp)->tv_sec))
76 (vvp)->tv_sec += (uvp)->tv_sec; \
77 (vvp)->tv_nsec += (uvp)->tv_nsec; \
78 if ((vvp)->tv_nsec >= 1000000000) { \
79 (vvp)->tv_sec++; \
80 (vvp)->tv_nsec -= 1000000000; \
85 (vvp)->tv_sec -= (uvp)->tv_sec; \
86 (vvp)->tv_nsec -= (uvp)->tv_nsec; \
87 if ((vvp)->tv_nsec < 0) { \
88 (vvp)->tv_sec--; \
89 (vvp)->tv_nsec += 1000000000; \