![]() |
GnuCOBOL
2.0
A free COBOL compiler
|
#include "isinternal.h"
Go to the source code of this file.
Data Structures | |
| struct | decacc |
Macros | |
| #define | ACCSIZE (DECSIZE + 1) |
Functions | |
| static void | comp100 (unsigned char *cp, int count) |
| static int | round100 (unsigned char *cp, int len) |
| static int | deccvfix (long i, dec_t *dp) |
| static void | dectofix (dec_t *dp, long *ip) |
| static int | deccvreal (double dbl, dec_t *dp, int ndigits) |
| static int | dectoreal (dec_t *dp, double *dblp, int valid) |
| static char * | decefcvt (dec_t *np, int dg, int *pt, int *sg, int fl) |
| static int | dec_round (struct decacc *s, int c) |
| void | deccopy (dec_t *src, dec_t *dst) |
| int | deccvint (int i, dec_t *dp) |
| int | dectoint (dec_t *dp, int *ip) |
| int | deccvlong (long i, dec_t *dp) |
| int | dectolong (dec_t *dp, long *ip) |
| int | deccvdbl (double dbl, dec_t *dp) |
| int | dectodbl (dec_t *dp, double *dblp) |
| int | deccvflt (float flt, dec_t *dp) |
| int | dectoflt (dec_t *dp, float *fltp) |
| void | stdecimal (dec_t *dp, unsigned char *cp, int len) |
| int | lddecimal (unsigned char *cp, int len, dec_t *dp) |
| int | decsub (dec_t *x, dec_t *y, dec_t *r) |
| int | decadd (dec_t *x, dec_t *y, dec_t *r) |
| int | decmul (dec_t *x, dec_t *y, dec_t *r) |
| int | decdiv (dec_t *x, dec_t *y, dec_t *r) |
| int | deccmp (dec_t *x, dec_t *y) |
| int | dectoasc (dec_t *np, char *cp, int ln, int dg) |
| int | deccvasc (char *cp, int ln, dec_t *rp) |
| char * | dececvt (dec_t *np, int dg, int *pt, int *sg) |
| char * | decfcvt (dec_t *np, int dg, int *pt, int *sg) |
| #define ACCSIZE (DECSIZE + 1) |
Definition at line 22 of file isdecimal.c.
Referenced by dec_round(), decadd(), deccvasc(), decdiv(), and decmul().
|
static |
Definition at line 34 of file isdecimal.c.
Referenced by lddecimal(), and stdecimal().

|
static |
Definition at line 278 of file isdecimal.c.
References ACCSIZE, decacc::dec_dgts, decacc::dec_exp, decacc::dec_ndgts, and decacc::dec_pos.
Referenced by decadd(), deccvasc(), decdiv(), and decmul().

| int decadd | ( | dec_t * | x, |
| dec_t * | y, | ||
| dec_t * | r | ||
| ) |
Definition at line 541 of file isdecimal.c.
References ACCSIZE, decacc::dec_dgts, decacc::dec_ndgts, decacc::dec_pos, dec_round(), and deccmp().
Referenced by decefcvt(), and decsub().


| int deccmp | ( | dec_t * | x, |
| dec_t * | y | ||
| ) |
Definition at line 770 of file isdecimal.c.
References decacc::dec_ndgts.
Referenced by decadd().

| void deccopy | ( | dec_t * | src, |
| dec_t * | dst | ||
| ) |
Definition at line 354 of file isdecimal.c.
| int deccvasc | ( | char * | cp, |
| int | ln, | ||
| dec_t * | rp | ||
| ) |
Definition at line 945 of file isdecimal.c.
References ACCSIZE, decacc::dec_dgts, decacc::dec_exp, decacc::dec_ndgts, decacc::dec_pos, and dec_round().

| int deccvdbl | ( | double | dbl, |
| dec_t * | dp | ||
| ) |
Definition at line 410 of file isdecimal.c.
References deccvreal().

|
static |
Definition at line 81 of file isdecimal.c.
Referenced by deccvint(), and deccvlong().

| int deccvflt | ( | float | flt, |
| dec_t * | dp | ||
| ) |
Definition at line 422 of file isdecimal.c.
References deccvreal().

| int deccvint | ( | int | i, |
| dec_t * | dp | ||
| ) |
Definition at line 360 of file isdecimal.c.
References deccvfix().

| int deccvlong | ( | long | i, |
| dec_t * | dp | ||
| ) |
Definition at line 386 of file isdecimal.c.
References deccvfix().

|
static |
Definition at line 130 of file isdecimal.c.
References sign.
Referenced by deccvdbl(), and deccvflt().

| int decdiv | ( | dec_t * | x, |
| dec_t * | y, | ||
| dec_t * | r | ||
| ) |
Definition at line 654 of file isdecimal.c.
References ACCSIZE, decacc::dec_dgts, decacc::dec_exp, decacc::dec_ndgts, decacc::dec_pos, and dec_round().

| char* dececvt | ( | dec_t * | np, |
| int | dg, | ||
| int * | pt, | ||
| int * | sg | ||
| ) |
Definition at line 1051 of file isdecimal.c.
References decefcvt().
Referenced by dectoasc().


|
static |
Definition at line 203 of file isdecimal.c.
References decadd(), and NULL.
Referenced by dececvt(), and decfcvt().


| char* decfcvt | ( | dec_t * | np, |
| int | dg, | ||
| int * | pt, | ||
| int * | sg | ||
| ) |
Definition at line 1057 of file isdecimal.c.
References decefcvt().
Referenced by dectoasc().


| int decmul | ( | dec_t * | x, |
| dec_t * | y, | ||
| dec_t * | r | ||
| ) |
Definition at line 615 of file isdecimal.c.
References ACCSIZE, decacc::dec_dgts, decacc::dec_exp, decacc::dec_ndgts, decacc::dec_pos, and dec_round().

| int decsub | ( | dec_t * | x, |
| dec_t * | y, | ||
| dec_t * | r | ||
| ) |
Definition at line 522 of file isdecimal.c.
References decadd().

| int dectoasc | ( | dec_t * | np, |
| char * | cp, | ||
| int | ln, | ||
| int | dg | ||
| ) |
Definition at line 804 of file isdecimal.c.
References dececvt(), and decfcvt().

| int dectodbl | ( | dec_t * | dp, |
| double * | dblp | ||
| ) |
Definition at line 416 of file isdecimal.c.
References dectoreal().

|
static |
Definition at line 113 of file isdecimal.c.
Referenced by dectoint(), and dectolong().

| int dectoflt | ( | dec_t * | dp, |
| float * | fltp | ||
| ) |
Definition at line 428 of file isdecimal.c.
References dectoreal().

| int dectoint | ( | dec_t * | dp, |
| int * | ip | ||
| ) |
Definition at line 372 of file isdecimal.c.
References dectofix().

| int dectolong | ( | dec_t * | dp, |
| long * | ip | ||
| ) |
Definition at line 399 of file isdecimal.c.
References dectofix().

|
static |
Definition at line 164 of file isdecimal.c.
Referenced by dectodbl(), and dectoflt().

| int lddecimal | ( | unsigned char * | cp, |
| int | len, | ||
| dec_t * | dp | ||
| ) |
Definition at line 478 of file isdecimal.c.
References comp100().

|
static |
Definition at line 53 of file isdecimal.c.
Referenced by stdecimal().

| void stdecimal | ( | dec_t * | dp, |
| unsigned char * | cp, | ||
| int | len | ||
| ) |
Definition at line 439 of file isdecimal.c.
References comp100(), and round100().
