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 | |||
| ) |
Definition at line 149 of file _hdtoa.c.
References IEEEd2bits::bits, IEEEd2bits::d, DBL_ADJ, DBL_MANL_SIZE, dorounding(), IEEEd2bits::exp, INFSTR, IEEEd2bits::manh, IEEEd2bits::manl, NANSTR, and IEEEd2bits::sign.
Referenced by __hldtoa(), and vsnprintf().
| 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] |
1.5.1