#include <stdlib.h>
#include <string.h>
#include <float.h>
#include <math.h>
Go to the source code of this file.
|
| NO_SANITIZE ("unsigned-integer-overflow", static Bigint *diff(Bigint *a, Bigint *b)) |
|
| NO_SANITIZE ("unsigned-integer-overflow", double strtod(const char *s00, char **se)) |
|
double | strtod (const char *s00, char **se) |
|
| NO_SANITIZE ("unsigned-integer-overflow", static int quorem(Bigint *b, Bigint *S)) |
|
char * | dtoa (double d_, int mode, int ndigits, int *decpt, int *sign, char **rve) |
|
char * | hdtoa (double d, const char *xdigs, int ndigits, int *decpt, int *sign, char **rve) |
|
◆ ACQUIRE_DTOA_LOCK
#define ACQUIRE_DTOA_LOCK |
( |
|
n | ) |
/*unused right now*/ |
◆ Avoid_Underflow
◆ Bcopy
Value:memcpy((
char *)&(x)->sign, (
char *)&(y)->sign, \
(y)->wds*sizeof(Long) + 2*sizeof(int))
Definition at line 554 of file dtoa.c.
◆ Bias
◆ Big0
◆ Big1
◆ Bletch
◆ Bndry_mask
#define Bndry_mask 0xfffff |
◆ Bndry_mask1
#define Bndry_mask1 0xfffff |
◆ d0 [1/2]
◆ d0 [2/2]
◆ d1 [1/2]
◆ d1 [2/2]
◆ DBL_ADJ
◆ DBL_MANH_SIZE
◆ DBL_MANL_SIZE
◆ dexp_get
◆ dexp_set
◆ dmanh_get
◆ dmanl_get
◆ dval
#define dval |
( |
|
x | ) |
((x).d) |
◆ Ebits
◆ Emin
◆ Exp_1
◆ Exp_11
#define Exp_11 0x3ff00000 |
◆ Exp_mask
#define Exp_mask 0x7ff00000 |
◆ Exp_msk1
#define Exp_msk1 0x100000 |
◆ Exp_msk11
#define Exp_msk11 0x100000 |
◆ Exp_shift
◆ Exp_shift1
◆ FFFFFFFF
#define FFFFFFFF 0xffffffffUL |
◆ Flt_Rounds
◆ Frac_mask
#define Frac_mask 0xfffff |
◆ Frac_mask1
#define Frac_mask1 0xfffff |
◆ FREE
◆ FREE_DTOA_LOCK
#define FREE_DTOA_LOCK |
( |
|
n | ) |
/*unused right now*/ |
◆ IEEE_Arith
◆ IEEE_LITTLE_ENDIAN
#define IEEE_LITTLE_ENDIAN |
◆ Int_max
◆ Kmax
◆ Log2P
◆ LSB
◆ MALLOC
◆ MULTIPLE_THREADS
#define MULTIPLE_THREADS 1 |
◆ n_bigtens
◆ NO_LONG_LONG
◆ Pack_32
◆ PRIVATE_MEM
◆ PRIVATE_mem
◆ Quick_max
◆ rounded_product
#define rounded_product |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) *= (b)) |
◆ rounded_quotient
#define rounded_quotient |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) /= (b)) |
◆ Rounding
◆ rv_alloc
◆ rv_strdup
#define rv_strdup |
( |
|
s, |
|
|
|
rve |
|
) |
| nrv_alloc((s), (rve), strlen(s)+1) |
◆ Scale_Bit
◆ SIGFIGS
◆ Sign_bit
#define Sign_bit 0x80000000 |
◆ Storeinc
#define Storeinc |
( |
|
a, |
|
|
|
b, |
|
|
|
c |
|
) |
| |
Value:(((unsigned short *)(a))[1] = (unsigned short)(b), \
((
unsigned short *)(a))[0] = (
unsigned short)(c), (a)++)
Definition at line 319 of file dtoa.c.
◆ Ten_pmax
◆ Tiny0
◆ Tiny1
◆ word0
#define word0 |
( |
|
x | ) |
((x).L[1]) |
◆ word1
#define word1 |
( |
|
x | ) |
((x).L[0]) |
◆ Bigint
◆ double_u
◆ dtoa()
Definition at line 2597 of file dtoa.c.
References dval, Exp_mask, i, j1(), Bigint::k, L, rv_strdup, S, s2, Bigint::sign, Sign_bit, word0, word1, and Bigint::x.
◆ hdtoa()
◆ NO_SANITIZE() [1/3]
NO_SANITIZE |
( |
"unsigned-integer-overflow" |
, |
|
|
double |
strtodconst char *s00, char **se |
|
) |
| |
◆ NO_SANITIZE() [2/3]
NO_SANITIZE |
( |
"unsigned-integer-overflow" |
, |
|
|
static Bigint * |
diffBigint *a, Bigint *b |
|
) |
| |
◆ NO_SANITIZE() [3/3]
NO_SANITIZE |
( |
"unsigned-integer-overflow" |
, |
|
|
static int |
quoremBigint *b, Bigint *S |
|
) |
| |
◆ strtod()
Definition at line 1445 of file dtoa.c.
References abs(), DBL_DIG, dval, errno, hexdigit, i, int, ISDIGIT, Bigint::k, L, ldexp(), NULL, s2, Bigint::sign, and strchr().