2020-08-25 11:23:25 +00:00
|
|
|
#ifndef COSMOPOLITAN_TOOL_BUILD_LIB_FPU_H_
|
|
|
|
#define COSMOPOLITAN_TOOL_BUILD_LIB_FPU_H_
|
|
|
|
#include "tool/build/lib/machine.h"
|
|
|
|
|
|
|
|
#define kFpuTagValid 0b00
|
|
|
|
#define kFpuTagZero 0b01
|
|
|
|
#define kFpuTagSpecial 0b10
|
|
|
|
#define kFpuTagEmpty 0b11
|
|
|
|
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
|
|
|
void OpFpu(struct Machine *);
|
|
|
|
void OpFinit(struct Machine *);
|
|
|
|
void OpFwait(struct Machine *);
|
|
|
|
void FpuPush(struct Machine *, long double);
|
|
|
|
long double FpuPop(struct Machine *);
|
2020-08-27 06:08:08 +00:00
|
|
|
long double *FpuSt(struct Machine *, unsigned);
|
|
|
|
int FpuGetTag(struct Machine *, unsigned);
|
|
|
|
void FpuSetTag(struct Machine *, unsigned, unsigned);
|
2020-08-25 11:23:25 +00:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_TOOL_BUILD_LIB_FPU_H_ */
|