MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bintime_mul

Function bintime_mul

freebsd/sys/time.h:95–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95static __inline void
96bintime_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
107static __inline void
108bintime_shift(struct bintime *_bt, int _exp)

Callers 9

vlapic_dcr_write_handlerFunction · 0.85
vlapic_reset_calloutFunction · 0.85
vlapic_snapshotFunction · 0.85
ffclock_abstimeFunction · 0.85
ffclock_difftimeFunction · 0.85
ffclock_convert_deltaFunction · 0.85
ffclock_windupFunction · 0.85
sysclock_getsnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected