Skip to content

Commit

Permalink
Add missing ansi_fp.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Antidote committed Oct 31, 2024
1 parent 4b972d2 commit 9dafdad
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions libc/ansi_fp.h
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9dafdad

Please sign in to comment.