Make improvements
- Emulator can now test the αcτµαlly pδrταblε εxεcµταblε bootloader - Whipped up a webserver named redbean. It services 150k requests per second on a single core. Bundling assets inside zip enables extremely fast serving for two reasons. The first is that zip central directory lookups go faster than stat() system calls. The second is that both zip and gzip content-encoding use DEFLATE, therefore, compressed responses can be served via the sendfile() system call which does an in-kernel copy directly from the zip executable structure. Also note that red bean zip executables can be deployed easily to all platforms, since these native executables work on Linux, Mac, BSD, and Windows. - Address sanitizer now works very well
This commit is contained in:
24
libc/math.h
24
libc/math.h
@ -312,30 +312,6 @@ void sincosl(long double, long double *, long double *);
|
||||
#define __X87_CONST(OP, VALUE) VALUE
|
||||
#endif
|
||||
|
||||
#define fnstsw() __X87_FPU_STATUS("fnstsw")
|
||||
#define fstsw() __X87_FPU_STATUS("fstsw")
|
||||
#define __X87_FPU_STATUS(OP) \
|
||||
({ \
|
||||
unsigned short fpsr; \
|
||||
asm volatile(OP "\t%0" : "=am"(fpsr)); \
|
||||
fpsr; \
|
||||
})
|
||||
|
||||
#define finit() __X87_INIT("finit")
|
||||
#define fninit() __X87_INIT("fninit")
|
||||
#define __X87_INIT(OP) \
|
||||
({ \
|
||||
long double st0, stm; \
|
||||
asm volatile(OP \
|
||||
: "=t"(st0) \
|
||||
: /* no inputs */ \
|
||||
: "st(1)", "st(2)", "st(3)", "st(4)", "st(5)", "st(6)", \
|
||||
"st(7)", "fpsr"); \
|
||||
/* assume(!fpsr && fpcr == FPU_DEFAULT); */ \
|
||||
asm("fst\t%0" : "=m"(stm) : "t"(st0)); \
|
||||
st0; \
|
||||
})
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_MATH_H_ */
|
||||
|
||||
Reference in New Issue
Block a user