Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
strtopd.c File Reference
#include "gdtoaimp.h"
Include dependency graph for strtopd.c:

Go to the source code of this file.

Functions

int strtopd (CONST char *s, char **sp, double *d)
 

Function Documentation

◆ strtopd()

int strtopd ( CONST char *  s,
char **  sp,
double *  d 
)

Definition at line 40 of file strtopd.c.

42 {
43  static FPI fpi0 = {53, 1 - 1023 - 53 + 1, 2046 - 1023 - 53 + 1, 1, SI};
44  ULong bits[2];
45  Long exp;
46  int k;
47 
48  k = strtodg(s, sp, &fpi0, &exp, bits);
49  ULtod((ULong*)d, bits, exp, k);
50  return k;
51 }
#define SI
Definition: gdtoaimp.h:635
unsigned Long ULong
Definition: gdtoa.h:41
void ULtod(ULong *L, const ULong *bits, Long exp, int k)
Definition: strtord.c:41
Definition: gdtoa.h:86
#define Long
Definition: gdtoa.h:38
int strtodg(CONST char *s00, char **se, FPI *fpi, Long *exp, ULong *bits)
Definition: strtodg.c:443

References Long, SI, strtodg(), and ULtod().