SpeedCrunch  0.11
Classes | Defines | Typedefs | Functions
/usr/src/RPM/BUILD/speedcrunch-0.11/src/math/floatio.h File Reference
#include <core/errors.h>
Include dependency graph for floatio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  t_buffer
struct  t_seq_desc
struct  t_otokens
struct  t_itokens
struct  t_ext_seq_desc
struct  t_prefix
struct  t_number_desc
struct  t_ioparams

Defines

#define NO_DIGIT   0x7F
#define IO_BASE_ZERO   1
#define IO_BASE_NAN   0
#define IO_BASE_DEFAULT   (-1)
#define IO_SIGN_PLUS   1
#define IO_SIGN_NONE   0
#define IO_SIGN_MINUS   (-1)
#define IO_SIGN_COMPLEMENT   (-2)
#define IO_FLAG_SUPPRESS_PLUS   0x001
#define IO_FLAG_SUPPRESS_BASETAG   0x002
#define IO_FLAG_SUPPRESS_CMPL   0x004
#define IO_FLAG_SUPPRESS_LDG_ZERO   0x008
#define IO_FLAG_SUPPRESS_TRL_ZERO   0x010
#define IO_FLAG_SUPPRESS_DOT   0x020
#define IO_FLAG_SUPPRESS_EXPPLUS   0x040
#define IO_FLAG_SUPPRESS_EXPBASE   0x080
#define IO_FLAG_SUPPRESS_EXPZERO   0x100
#define IO_FLAG_SHOW_BASE   0x200
#define IO_FLAG_SHOW_EXPBASE   0x400

Typedefs

typedef t_bufferp_buffer
typedef t_seq_descp_seq_desc
typedef char(* t_getdigit )(int ofs, p_seq_desc param)
typedef t_otokensp_otokens
typedef t_itokensp_itokens
typedef t_ext_seq_descp_ext_seq_desc
typedef t_prefixp_prefix
typedef t_number_descp_number_desc
typedef t_ioparamsp_ioparams

Functions

int _significantdigits (p_seq_desc n)
void _clearnumber (p_number_desc n)
Error str2desc (p_number_desc n, p_itokens tokens)
Error desc2str (p_otokens tokens, p_number_desc n, int scale)
Error exp2str (p_buffer dest, int exp, char base)
const char * basePrefix (char base)
Error parse (p_itokens tokens, const char **buf)
int cattokens (char *buf, int bufsz, p_otokens tokens, signed char expbase, unsigned flags)
void float_stdconvert ()
char setioparams (p_ioparams params)
char delioparams (signed char base)
p_ioparams getioparams (signed char base)
signed char setdefaultbase (signed char base)

Define Documentation

#define IO_BASE_DEFAULT   (-1)
#define IO_BASE_NAN   0
#define IO_BASE_ZERO   1
#define IO_FLAG_SHOW_BASE   0x200
#define IO_FLAG_SHOW_EXPBASE   0x400
#define IO_FLAG_SUPPRESS_BASETAG   0x002
#define IO_FLAG_SUPPRESS_CMPL   0x004
#define IO_FLAG_SUPPRESS_DOT   0x020
#define IO_FLAG_SUPPRESS_EXPBASE   0x080
#define IO_FLAG_SUPPRESS_EXPPLUS   0x040
#define IO_FLAG_SUPPRESS_EXPZERO   0x100
#define IO_FLAG_SUPPRESS_LDG_ZERO   0x008
#define IO_FLAG_SUPPRESS_PLUS   0x001
#define IO_FLAG_SUPPRESS_TRL_ZERO   0x010
#define IO_SIGN_COMPLEMENT   (-2)
#define IO_SIGN_MINUS   (-1)
#define IO_SIGN_NONE   0
#define IO_SIGN_PLUS   1
#define NO_DIGIT   0x7F

Typedef Documentation

typedef t_buffer* p_buffer
typedef t_itokens* p_itokens
typedef t_otokens* p_otokens
typedef t_prefix* p_prefix
typedef char(* t_getdigit)(int ofs, p_seq_desc param)

Function Documentation

const char* basePrefix ( char  base)
int cattokens ( char *  buf,
int  bufsz,
p_otokens  tokens,
signed char  expbase,
unsigned  flags 
)
char delioparams ( signed char  base)
Error desc2str ( p_otokens  tokens,
p_number_desc  n,
int  scale 
)
Error exp2str ( p_buffer  dest,
int  exp,
char  base 
)
void float_stdconvert ( )
p_ioparams getioparams ( signed char  base)
Error parse ( p_itokens  tokens,
const char **  buf 
)
signed char setdefaultbase ( signed char  base)
char setioparams ( p_ioparams  params)
Error str2desc ( p_number_desc  n,
p_itokens  tokens 
)