mirror of
https://github.com/zeldaret/st
synced 2026-05-24 07:10:56 -04:00
66ad81ba15
* move nitro headers to libs/nitro/include and setup sbc.c Co-authored-by: enzofc708 <47937189+enzofc708@users.noreply.github.com> * sbc.c 95% * move sbc in the right folder (and fix a warning) * revert formating changes --------- Co-authored-by: enzofc708 <47937189+enzofc708@users.noreply.github.com>
36 lines
577 B
C
36 lines
577 B
C
#ifndef _C_ANSI_FP_H
|
|
#define _C_ANSI_FP_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define FLOATDECIMAL ((char) (0))
|
|
#define FIXEDDECIMAL ((char) (1))
|
|
|
|
typedef struct decimal {
|
|
unsigned char sgn;
|
|
char unused;
|
|
short exp;
|
|
struct {
|
|
unsigned char length;
|
|
unsigned char text[32];
|
|
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);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|