Embedded Artistry Framework
Embedded Systems C++ Framework
Functions | Variables
strtodg.c File Reference
#include "gdtoaimp.h"
#include <stdint.h>
Include dependency graph for strtodg.c:

Functions

Bigintincrement (Bigint *b)
 
int decrement (Bigint *b)
 
static int all_on (Bigint *b, int n)
 
Bigintset_ones (Bigint *b, int n)
 
static int rvOK (double d, FPI *fpi, Long *exp, ULong *bits, int exact, int rd, int *irv)
 
static int mantbits (double d)
 
int strtodg (CONST char *s00, char **se, FPI *fpi, Long *exp, ULong *bits)
 

Variables

static CONST int fivesbits []
 

Function Documentation

◆ all_on()

static int all_on ( Bigint b,
int  n 
)
static

References ALL_ON, b, kmask, kshift, and n.

Referenced by strtodg().

◆ decrement()

int decrement ( Bigint b)

References b, and STRTOG_Inexlo.

Referenced by strtodg(), and strtoIg().

◆ increment()

Bigint* increment ( Bigint b)

References b, b1, Balloc(), Bcopy, and Bfree().

Referenced by gethex(), rvOK(), strtodg(), and strtoIg().

◆ mantbits()

static int mantbits ( double  d)
static

References Exp_msk1, Exp_msk11, lo0bits(), P, word0, and word1.

Referenced by strtodg().

◆ rvOK()

static int rvOK ( double  d,
FPI fpi,
Long exp,
ULong bits,
int  exact,
int  rd,
int *  irv 
)
static

◆ set_ones()

Bigint* set_ones ( Bigint b,
int  n 
)

References ALL_ON, b, Balloc(), Bfree(), k, kmask, kshift, n, and ULbits.

Referenced by strtodg(), and strtoIg().

◆ strtodg()

int strtodg ( CONST char *  s00,
char **  se,
FPI fpi,
Long exp,
ULong bits 
)

Variable Documentation

◆ fivesbits

CONST int fivesbits[]
static
Initial value:
= {0,
3,
5,
7,
10,
12,
14,
17,
19,
21,
24,
26,
28,
31,
33,
35,
38,
40,
42,
45,
47,
49,
52
}

Referenced by strtodg().