Lines Matching refs:rv
46 double rv; in ts2double() local
48 rv = val->tv_sec; in ts2double()
49 rv += (double) val->tv_nsec / nSecsPerSec; in ts2double()
51 return rv; in ts2double()
57 double rv; in tv2double() local
59 rv = val->tv_sec; in tv2double()
60 rv += (double) val->tv_usec / uSecsPerSec; in tv2double()
62 return rv; in tv2double()
68 struct timespec rv; in double2ts() local
70 rv.tv_sec = floor(amt); in double2ts()
71 rv.tv_nsec = (amt - rv.tv_sec) * nSecsPerSec; in double2ts()
73 while ((unsigned) rv.tv_nsec >= nSecsPerSec) { in double2ts()
74 rv.tv_nsec -= nSecsPerSec; in double2ts()
75 rv.tv_sec++; in double2ts()
78 return rv; in double2ts()
84 struct timeval rv; in double2tv() local
86 rv.tv_sec = floor(amt); in double2tv()
87 rv.tv_usec = (amt - rv.tv_sec) * uSecsPerSec; in double2tv()
89 while ((unsigned) rv.tv_usec >= uSecsPerSec) { in double2tv()
90 rv.tv_usec -= uSecsPerSec; in double2tv()
91 rv.tv_sec++; in double2tv()
94 return rv; in double2tv()
103 struct timespec rv; in tsDelta() local
109 rv.tv_sec = second->tv_sec - first->tv_sec; in tsDelta()
111 rv.tv_nsec = second->tv_nsec - first->tv_nsec; in tsDelta()
113 rv.tv_nsec = (second->tv_nsec + nSecsPerSec) - first->tv_nsec; in tsDelta()
114 rv.tv_sec--; in tsDelta()
117 return rv; in tsDelta()
126 struct timeval rv; in tvDelta() local
132 rv.tv_sec = second->tv_sec - first->tv_sec; in tvDelta()
134 rv.tv_usec = second->tv_usec - first->tv_usec; in tvDelta()
136 rv.tv_usec = (second->tv_usec + uSecsPerSec) - first->tv_usec; in tvDelta()
137 rv.tv_sec--; in tvDelta()
140 return rv; in tvDelta()
320 int rv; in testXDump() local
332 rv = snprintf(linep, ALEN(line) - (linep - line), in testXDump()
335 linep += rv; in testXDump()
343 rv = snprintf(linep, ALEN(line) - (linep - line), in testXDump()
345 linep += rv; in testXDump()