mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-07-06 18:35:51 +00:00
Add missing ansi_fp.h
This commit is contained in:
parent
4b972d2a4e
commit
9dafdadac7
26
libc/ansi_fp.h
Normal file
26
libc/ansi_fp.h
Normal file
@ -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…
x
Reference in New Issue
Block a user