PageRenderTime 39ms CodeModel.GetById 34ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/ntp/libntp/mfptoms.c

https://bitbucket.org/freebsd/freebsd-head/
C | 23 lines | 17 code | 3 blank | 3 comment | 1 complexity | b648a3549099481c4bb2a938b769cd72 MD5 | raw file
 1/*
 2 * mfptoms - Return an asciized signed long fp number in milliseconds
 3 */
 4#include "ntp_fp.h"
 5#include "ntp_stdlib.h"
 6
 7char *
 8mfptoms(
 9	u_long fpi,
10	u_long fpf,
11	short ndec
12	)
13{
14	int isneg;
15
16	if (M_ISNEG(fpi, fpf)) {
17		isneg = 1;
18		M_NEG(fpi, fpf);
19	} else
20	    isneg = 0;
21
22	return dolfptoa(fpi, fpf, isneg, ndec, 1);
23}