Home | History | Annotate | Download | only in sys

Lines Matching refs:vsp

116 #define timespecadd(tsp, usp, vsp)          \

118 (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \
119 (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \
120 if ((vsp)->tv_nsec >= 1000000000L) { \
121 (vsp)->tv_sec++; \
122 (vsp)->tv_nsec -= 1000000000L; \
126 #define timespecsub(tsp, usp, vsp) \
128 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
129 (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
130 if ((vsp)->tv_nsec < 0) { \
131 (vsp)->tv_sec--; \
132 (vsp)->tv_nsec += 1000000000L; \