File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / libntp / mfptoms.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:38 2012 UTC (12 years, 5 months ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

    1: /*
    2:  * mfptoms - Return an asciized signed long fp number in milliseconds
    3:  */
    4: #include "ntp_fp.h"
    5: #include "ntp_stdlib.h"
    6: 
    7: char *
    8: mfptoms(
    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: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>