Lines Matching refs:hrt

981  *	tsp->sec  = hrt / NANOSEC;
982 * tsp->nsec = hrt % NANOSEC;
1047 * sec = hrt;
1048 * sec += (hrt << 6);
1049 * sec -= (hrt << 8);
1050 * sec += (hrt << 13);
1051 * sec += (hrt << 14);
1052 * sec -= (hrt << 20);
1053 * sec += (hrt << 23);
1054 * sec += (hrt << 24);
1055 * sec += (hrt << 27);
1056 * sec += (hrt << 31);
1059 * Voila! The only problem is, since hrt is 64 bits, we need to use 96-bit
1063 * The first thing we do is to realize that we don't need to use all of hrt
1066 * The highest 2 bits have to be zero, or hrt won't fit in a timestruc_t.
1067 * Thus, the only bits of hrt that matter for division are bits 30..61.
1068 * These 32 bits are just the lower-order word of (hrt >> 30). This brings
1071 * tmp = (uint32_t) (hrt >> 30);
1090 * tmp = (uint32_t) (hrt >> 30);
1128 * tmp = (uint32_t) (hrt >> 30);
1151 * Finally, we compute nsec = hrt - (sec * 1,000,000,000). nsec will always
1153 * the error in sec (times 1,000,000,000) plus the low-order 30 bits of hrt.
1173 hrt2ts(hrtime_t hrt, timestruc_t *tsp)
1177 tmp = (uint32_t)(hrt >> 30);
1189 nsec = (uint32_t)hrt - (tmp << 9);
1203 * hrt = tsp->tv_sec * NANOSEC + tsp->tv_nsec;
1210 hrtime_t hrt;
1212 hrt = tsp->tv_sec;
1213 hrt = (hrt << 7) - hrt - hrt - hrt;
1214 hrt = (hrt << 7) - hrt - hrt - hrt;
1215 hrt = (hrt << 7) - hrt - hrt - hrt;
1216 hrt = (hrt << 9) + tsp->tv_nsec;
1217 return (hrt);
1224 hrt2ts32(hrtime_t hrt, timestruc32_t *ts32p)
1228 hrt2ts(hrt, &ts);
1247 hrt2tv(hrtime_t hrt, struct timeval *tvp)
1252 tmp = (uint32_t)(hrt >> 30);
1264 nsec = (uint32_t)hrt - (tmp << 9);