mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 08:52:46 +00:00
24 lines
323 B
C
24 lines
323 B
C
/*
|
|
* 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,
|
|
int ndec
|
|
)
|
|
{
|
|
int isneg;
|
|
|
|
if (M_ISNEG(fpi, fpf)) {
|
|
isneg = 1;
|
|
M_NEG(fpi, fpf);
|
|
} else
|
|
isneg = 0;
|
|
|
|
return dolfptoa(fpi, fpf, isneg, ndec, 0);
|
|
}
|