| 93 | } |
| 94 | |
| 95 | static __inline void |
| 96 | bintime_mul(struct bintime *_bt, u_int _x) |
| 97 | { |
| 98 | uint64_t _p1, _p2; |
| 99 | |
| 100 | _p1 = (_bt->frac & 0xffffffffull) * _x; |
| 101 | _p2 = (_bt->frac >> 32) * _x + (_p1 >> 32); |
| 102 | _bt->sec *= _x; |
| 103 | _bt->sec += (_p2 >> 32); |
| 104 | _bt->frac = (_p2 << 32) | (_p1 & 0xffffffffull); |
| 105 | } |
| 106 | |
| 107 | static __inline void |
| 108 | bintime_shift(struct bintime *_bt, int _exp) |
no outgoing calls
no test coverage detected