Add missing ansi_fp.h

This commit is contained in:
Phillip Stephens 2024-10-30 23:56:02 -07:00
parent 4b972d2a4e
commit 9dafdadac7
1 changed files with 26 additions and 0 deletions

26
libc/ansi_fp.h Normal file
View 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