Definition in file _hdtoa.c.
#include "compat/fpclassify.h"
#include <sys/cdefs.h>
#include <float.h>
#include <limits.h>
#include <math.h>
#include "fpmath.h"
#include "gdtoaimp.h"
Go to the source code of this file.
Defines | |
#define | _GNU_SOURCE |
#define | __FBSDID(x) |
#define | INFSTR "Infinity" |
#define | NANSTR "NaN" |
#define | DBL_ADJ (DBL_MAX_EXP - 2 + ((DBL_MANT_DIG - 1) % 4)) |
#define | LDBL_ADJ (LDBL_MAX_EXP - 2 + ((LDBL_MANT_DIG - 1) % 4)) |
Functions | |
__FBSDID ("$FreeBSD: src/lib/libc/gdtoa/_hdtoa.c,v 1.3 2005/01/18 18:44:07 das Exp $") | |
static int | roundup (char *s0, int ndigits) |
static void | dorounding (char *s0, int ndigits, int sign, int *decpt) |
char * | __hdtoa (double d, const char *xdigs, int ndigits, int *decpt, int *sign, char **rve) |
char * | __hldtoa (long double e, const char *xdigs, int ndigits, int *decpt, int *sign, char **rve) |
#define DBL_ADJ (DBL_MAX_EXP - 2 + ((DBL_MANT_DIG - 1) % 4)) |
#define LDBL_ADJ (LDBL_MAX_EXP - 2 + ((LDBL_MANT_DIG - 1) % 4)) |
__FBSDID | ( | "$FreeBSD: src/lib/libc/gdtoa/_hdtoa. | c, | |
v 1.3 2005/01/18 18:44:07 das Exp $" | ||||
) |
char* __hdtoa | ( | double | d, | |
const char * | xdigs, | |||
int | ndigits, | |||
int * | decpt, | |||
int * | sign, | |||
char ** | rve | |||
) |
char* __hldtoa | ( | long double | e, | |
const char * | xdigs, | |||
int | ndigits, | |||
int * | decpt, | |||
int * | sign, | |||
char ** | rve | |||
) |
static void dorounding | ( | char * | s0, | |
int | ndigits, | |||
int | sign, | |||
int * | decpt | |||
) | [static] |
static int roundup | ( | char * | s0, | |
int | ndigits | |||
) | [static] |