Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
gdtoa.h File Reference
#include "arith.h"
Include dependency graph for gdtoa.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FPI
 

Macros

#define Long   long
 
#define ANSI(x)   x
 
#define Void   void
 
#define CONST   const
 

Typedefs

typedef unsigned Long ULong
 
typedef unsigned short UShort
 
typedef struct FPI FPI
 

Enumerations

enum  {
  STRTOG_Zero = 0, STRTOG_Normal = 1, STRTOG_Denormal = 2, STRTOG_Infinite = 3,
  STRTOG_NaN = 4, STRTOG_NaNbits = 5, STRTOG_NoNumber = 6, STRTOG_Retmask = 7,
  STRTOG_Neg = 0x08, STRTOG_Inexlo = 0x10, STRTOG_Inexhi = 0x20, STRTOG_Inexact = 0x30,
  STRTOG_Underflow = 0x40, STRTOG_Overflow = 0x80
}
 
enum  { FPI_Round_zero = 0, FPI_Round_near = 1, FPI_Round_up = 2, FPI_Round_down = 3 }
 

Functions

char *dtoa ANSI ((double d, int mode, int ndigits, int *decpt, int *sign, char **rve))
 
char *gdtoa ANSI ((FPI *fpi, int be, ULong *bits, int *kindp, int mode, int ndigits, int *decpt, char **rve))
 
void freedtoa ANSI ((char *))
 
float strtof ANSI ((CONST char *, char **))
 
int strtodg ANSI ((CONST char *, char **, FPI *, Long *, ULong *))
 
char *g_ddfmt ANSI ((char *, double *, int, unsigned))
 
char *g_ffmt ANSI ((char *, float *, int, unsigned))
 
char *g_Qfmt ANSI ((char *, void *, int, unsigned))
 
int strtoId ANSI ((CONST char *, char **, double *, double *))
 
int strtoIf ANSI ((CONST char *, char **, float *, float *))
 
int strtoIQ ANSI ((CONST char *, char **, void *, void *))
 
int strtord ANSI ((CONST char *, char **, int, double *))
 
int strtorf ANSI ((CONST char *, char **, int, float *))
 
int strtorQ ANSI ((CONST char *, char **, int, void *))
 
int strtodI ANSI ((CONST char *, char **, double *))
 
int strtopf ANSI ((CONST char *, char **, float *))
 
int strtopQ ANSI ((CONST char *, char **, void *))
 

Class Documentation

◆ FPI

struct FPI

Definition at line 86 of file gdtoa.h.

Collaboration diagram for FPI:
Collaboration graph
Class Members
int emax
int emin
int nbits
int rounding
int sudden_underflow

Macro Definition Documentation

◆ ANSI

#define ANSI (   x)    x

Definition at line 52 of file gdtoa.h.

◆ CONST

#define CONST   const

Definition at line 61 of file gdtoa.h.

◆ Long

#define Long   long

Definition at line 38 of file gdtoa.h.

◆ Void

#define Void   void

Definition at line 53 of file gdtoa.h.

Typedef Documentation

◆ FPI

typedef struct FPI FPI

◆ ULong

typedef unsigned Long ULong

Definition at line 41 of file gdtoa.h.

◆ UShort

typedef unsigned short UShort

Definition at line 44 of file gdtoa.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
STRTOG_Zero 
STRTOG_Normal 
STRTOG_Denormal 
STRTOG_Infinite 
STRTOG_NaN 
STRTOG_NaNbits 
STRTOG_NoNumber 
STRTOG_Retmask 
STRTOG_Neg 
STRTOG_Inexlo 
STRTOG_Inexhi 
STRTOG_Inexact 
STRTOG_Underflow 
STRTOG_Overflow 

Definition at line 65 of file gdtoa.h.

66 { /* return values from strtodg */
67  STRTOG_Zero = 0,
68  STRTOG_Normal = 1,
69  STRTOG_Denormal = 2,
70  STRTOG_Infinite = 3,
71  STRTOG_NaN = 4,
72  STRTOG_NaNbits = 5,
73  STRTOG_NoNumber = 6,
74  STRTOG_Retmask = 7,
75 
76  /* The following may be or-ed into one of the above values. */
77 
78  STRTOG_Neg = 0x08,
79  STRTOG_Inexlo = 0x10,
80  STRTOG_Inexhi = 0x20,
81  STRTOG_Inexact = 0x30,
82  STRTOG_Underflow = 0x40,
83  STRTOG_Overflow = 0x80
84 };

◆ anonymous enum

anonymous enum
Enumerator
FPI_Round_zero 
FPI_Round_near 
FPI_Round_up 
FPI_Round_down 

Definition at line 95 of file gdtoa.h.

96 { /* FPI.rounding values: same as FLT_ROUNDS */
97  FPI_Round_zero = 0,
98  FPI_Round_near = 1,
99  FPI_Round_up = 2,
100  FPI_Round_down = 3
101 };

Function Documentation

◆ ANSI() [1/17]

char* dtoa ANSI ( (double d, int mode, int ndigits, int *decpt, int *sign, char **rve)  )

◆ ANSI() [2/17]

char* gdtoa ANSI ( (FPI *fpi, int be, ULong *bits, int *kindp, int mode, int ndigits, int *decpt, char **rve)  )

◆ ANSI() [3/17]

void freedtoa ANSI ( (char *)  )

◆ ANSI() [4/17]

double strtod ANSI ( (CONST char *, char **)  )

◆ ANSI() [5/17]

int strtodg ANSI ( (CONST char *, char **, FPI *, Long *, ULong *)  )

◆ ANSI() [6/17]

char *g_dfmt ANSI ( (char *, double *, int, unsigned)  )

◆ ANSI() [7/17]

char* g_ffmt ANSI ( (char *, float *, int, unsigned)  )

◆ ANSI() [8/17]

char *g_xLfmt ANSI ( (char *, void *, int, unsigned)  )

◆ ANSI() [9/17]

int strtoIdd ANSI ( (CONST char *, char **, double *, double *)  )

◆ ANSI() [10/17]

int strtoIf ANSI ( (CONST char *, char **, float *, float *)  )

◆ ANSI() [11/17]

int strtoIxL ANSI ( (CONST char *, char **, void *, void *)  )

◆ ANSI() [12/17]

int strtordd ANSI ( (CONST char *, char **, int, double *)  )

◆ ANSI() [13/17]

int strtorf ANSI ( (CONST char *, char **, int, float *)  )

◆ ANSI() [14/17]

int strtorxL ANSI ( (CONST char *, char **, int, void *)  )

◆ ANSI() [15/17]

int strtopdd ANSI ( (CONST char *, char **, double *)  )

◆ ANSI() [16/17]

int strtopf ANSI ( (CONST char *, char **, float *)  )

◆ ANSI() [17/17]

int strtopxL ANSI ( (CONST char *, char **, void *)  )