Skip to content
Myr

jv_dtoa.h

This file

Path

src/jv_dtoa.h

22 lines · 603 bytes · C

Last changed by

Not known.

History of this file

Take it

1#ifndef JV_DTOA_H2#define JV_DTOA_H3#define Kmax 745struct Bigint;6struct dtoa_context {7  struct Bigint *freelist[Kmax+1];8  struct Bigint *p5s;9};1011void jvp_dtoa_context_init(struct dtoa_context* ctx);12void jvp_dtoa_context_free(struct dtoa_context* ctx);1314double jvp_strtod(struct dtoa_context* C, const char* s, char** se);151617char* jvp_dtoa(struct dtoa_context* C, double dd, int mode, int ndigits, int *decpt, int *sign, char **rve);18void jvp_freedtoa(struct dtoa_context* C, char *s);1920#define JVP_DTOA_FMT_MAX_LEN 6421char* jvp_dtoa_fmt(struct dtoa_context* C, register char *b, double x);22#endif