Home | History | Annotate | Download | only in dhcpcd-6.8.2

Lines Matching refs:vsp

68 #define timespecadd(tsp, usp, vsp)                                      \
70 (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \
71 (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \
72 if ((vsp)->tv_nsec >= 1000000000L) { \
73 (vsp)->tv_sec++; \
74 (vsp)->tv_nsec -= 1000000000L; \
77 #define timespecsub(tsp, usp, vsp) \
79 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
80 (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
81 if ((vsp)->tv_nsec < 0) { \
82 (vsp)->tv_sec--; \
83 (vsp)->tv_nsec += 1000000000L; \