collect and emit fp constants

This commit is contained in:
Quentin Carbonneaux 2016-02-15 14:22:22 -05:00
parent 916555cb10
commit 16e430935d
4 changed files with 71 additions and 5 deletions

View file

@ -386,8 +386,7 @@ struct Con {
double d;
float s;
} bits;
char flt; /* 1 for single precision, 2 for double */
char emit;
char flt; /* for printing, see parse.c */
};
typedef struct Addr Addr;
@ -511,3 +510,5 @@ void rega(Fn *);
/* emit.c */
void emitfn(Fn *, FILE *);
void emitdat(Dat *, FILE *);
int stashfp(int64_t, int);
void emitfin(FILE *);