_hdtoa.c File Reference


Detailed Description

This file is largely identical to the FreeBSD 6.1 distribution, in /usr/src/lib/libc/gdtoa/_hdtoa.c.

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 Documentation

#define __FBSDID (  ) 

Definition at line 53 of file _hdtoa.c.

#define _GNU_SOURCE

Definition at line 49 of file _hdtoa.c.

#define DBL_ADJ   (DBL_MAX_EXP - 2 + ((DBL_MANT_DIG - 1) % 4))

Definition at line 66 of file _hdtoa.c.

Referenced by __hdtoa().

#define INFSTR   "Infinity"

Definition at line 63 of file _hdtoa.c.

Referenced by __hdtoa().

#define LDBL_ADJ   (LDBL_MAX_EXP - 2 + ((LDBL_MANT_DIG - 1) % 4))

Definition at line 67 of file _hdtoa.c.

#define NANSTR   "NaN"

Definition at line 64 of file _hdtoa.c.

Referenced by __hdtoa().


Function Documentation

__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.

Referenced by __hldtoa(), and vsnprintf().

char* __hldtoa ( long double  e,
const char *  xdigs,
int  ndigits,
int *  decpt,
int *  sign,
char **  rve 
)

Definition at line 338 of file _hdtoa.c.

Referenced by vsnprintf().

static void dorounding ( char *  s0,
int  ndigits,
int  sign,
int *  decpt 
) [static]

Definition at line 97 of file _hdtoa.c.

References roundup().

Referenced by __hdtoa().

static int roundup ( char *  s0,
int  ndigits 
) [static]

Definition at line 75 of file _hdtoa.c.

Referenced by dorounding().


Generated on Sat Sep 8 08:36:18 2007 for DTN Reference Implementation by  doxygen 1.5.3