4 * tsftomsu - convert from a time stamp fraction to milliseconds
7 #include "ntp_stdlib.h"
15 register long val_ui
, val_uf
;
16 register long tmp_ui
, tmp_uf
;
20 * Essentially, multiply by 10 three times in l_fp form.
21 * The integral part is the milliseconds.
25 for (i
= 3; i
> 0; i
--) {
26 M_LSHIFT(val_ui
, val_uf
);
29 M_LSHIFT(val_ui
, val_uf
);
30 M_LSHIFT(val_ui
, val_uf
);
31 M_ADD(val_ui
, val_uf
, tmp_ui
, tmp_uf
);
35 * Round the value if need be, then return it.
37 if (round
&& (val_uf
& 0x80000000))