mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-14 00:24:03 -04:00
26 lines
393 B
C
26 lines
393 B
C
/* $NetBSD: mfptoa.c,v 1.1.1.1 2009/12/13 16:55:03 kardel Exp $ */
|
|
|
|
/*
|
|
* mfptoa - Return an asciized representation of a signed long fp number
|
|
*/
|
|
#include "ntp_fp.h"
|
|
#include "ntp_stdlib.h"
|
|
|
|
char *
|
|
mfptoa(
|
|
u_long fpi,
|
|
u_long fpf,
|
|
short ndec
|
|
)
|
|
{
|
|
int isneg;
|
|
|
|
if (M_ISNEG(fpi, fpf)) {
|
|
isneg = 1;
|
|
M_NEG(fpi, fpf);
|
|
} else
|
|
isneg = 0;
|
|
|
|
return dolfptoa(fpi, fpf, isneg, ndec, 0);
|
|
}
|