mirror of https://github.com/PrimeDecomp/prime.git
Add missing ansi_fp.h
This commit is contained in:
parent
4b972d2a4e
commit
9dafdadac7
|
@ -0,0 +1,26 @@
|
|||
#ifndef _ANSI_FP
|
||||
#define _ANSI_FP
|
||||
|
||||
#define SIGDIGLEN 36
|
||||
typedef struct decimal {
|
||||
char sgn;
|
||||
char unused;
|
||||
short exp;
|
||||
struct {
|
||||
unsigned char length;
|
||||
unsigned char text[SIGDIGLEN];
|
||||
unsigned char unused;
|
||||
} sig;
|
||||
} decimal;
|
||||
|
||||
typedef struct decform {
|
||||
char style;
|
||||
char unused;
|
||||
short digits;
|
||||
} decform;
|
||||
|
||||
|
||||
void __num2dec(const decform* f, double x, decimal* d);
|
||||
double __dec2num(const decimal* d);
|
||||
|
||||
#endif // _ANSI_FP
|
Loading…
Reference in New Issue