Home | History | Annotate | Download | only in sys

Lines Matching refs:res

56 #define timeradd(a, b, res)                           \
58 (res)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
59 (res)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
60 if ((res)->tv_usec >= 1000000) { \
61 (res)->tv_usec -= 1000000; \
62 (res)->tv_sec += 1; \
66 #define timersub(a, b, res) \
68 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
69 (res)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
70 if ((res)->tv_usec < 0) { \
71 (res)->tv_usec += 1000000; \
72 (res)->tv_sec -= 1; \