mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 07:18:30 +00:00
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:
parent
7327c345f9
commit
416fd86676
230 changed files with 9835 additions and 5682 deletions
|
@ -58,6 +58,12 @@ o/$(MODE)/dsp/core/det3.o: \
|
|||
OVERRIDE_CFLAGS += \
|
||||
-ffast-math
|
||||
|
||||
ifeq (,$(MODE))
|
||||
$(DSP_CORE_OBJS): \
|
||||
OVERRIDE_CFLAGS += \
|
||||
-fsanitize=address
|
||||
endif
|
||||
|
||||
DSP_CORE_LIBS = $(foreach x,$(DSP_CORE_ARTIFACTS),$($(x)))
|
||||
DSP_CORE_SRCS = $(foreach x,$(DSP_CORE_ARTIFACTS),$($(x)_SRCS))
|
||||
DSP_CORE_HDRS = $(foreach x,$(DSP_CORE_ARTIFACTS),$($(x)_HDRS))
|
||||
|
|
|
@ -102,7 +102,7 @@ struct SamplingSolution *ComputeSamplingSolution(long dn, long sn, double dar,
|
|||
if (!dar) dar = sn, dar /= dn;
|
||||
if (!off) off = (dar - 1) / 2;
|
||||
f = dar < 1 ? 1 / dar : dar;
|
||||
s = 3 * f + 1;
|
||||
s = 3 * f + 4;
|
||||
fweights = gc(xcalloc(s, sizeof(double)));
|
||||
res = NewSamplingSolution(dn, s);
|
||||
weights = res->weights;
|
||||
|
@ -147,9 +147,9 @@ static int Sharpen(int ax, int bx, int cx) {
|
|||
|
||||
static void GyaradosImpl(long dyw, long dxw, int dst[dyw][dxw], long syw,
|
||||
long sxw, const int src[syw][sxw], long dyn, long dxn,
|
||||
long syn, long sxn, short tmp0[restrict dyn][sxn],
|
||||
short tmp1[restrict dyn][sxn],
|
||||
short tmp2[restrict dyn][dxn], long yfn, long xfn,
|
||||
long syn, long sxn, int tmp0[restrict dyn][sxn],
|
||||
int tmp1[restrict dyn][sxn],
|
||||
int tmp2[restrict dyn][dxn], long yfn, long xfn,
|
||||
const short fyi[dyn][yfn], const short fyw[dyn][yfn],
|
||||
const short fxi[dxn][xfn], const short fxw[dxn][xfn],
|
||||
bool sharpen) {
|
||||
|
@ -216,9 +216,9 @@ void *Gyarados(long dyw, long dxw, int dst[dyw][dxw], long syw, long sxw,
|
|||
CHECK_LE(syn, 0x7fff);
|
||||
CHECK_LE(sxn, 0x7fff);
|
||||
GyaradosImpl(dyw, dxw, dst, syw, sxw, src, dyn, dxn, syn, sxn,
|
||||
gc(xmemalign(64, sizeof(short) * dyn * sxn)),
|
||||
gc(xmemalign(64, sizeof(short) * dyn * sxn)),
|
||||
gc(xmemalign(64, sizeof(short) * dyn * dxn)), cy->s, cx->s,
|
||||
gc(xmemalign(64, sizeof(int) * dyn * sxn)),
|
||||
gc(xmemalign(64, sizeof(int) * dyn * sxn)),
|
||||
gc(xmemalign(64, sizeof(int) * dyn * dxn)), cy->s, cx->s,
|
||||
cy->indices, cy->weights, cx->indices, cx->weights, sharpen);
|
||||
} else {
|
||||
ZeroMatrix(dyw, dxw, dst, dyn, dxn);
|
||||
|
|
|
@ -59,6 +59,12 @@ o/$(MODE)/dsp/tty/ttyraster.o: \
|
|||
OVERRIDE_CFLAGS += \
|
||||
$(MATHEMATICAL)
|
||||
|
||||
ifeq (,$(MODE))
|
||||
$(DSP_TTY_OBJS): \
|
||||
OVERRIDE_CFLAGS += \
|
||||
-fsanitize=address
|
||||
endif
|
||||
|
||||
DSP_TTY_LIBS = $(foreach x,$(DSP_TTY_ARTIFACTS),$($(x)))
|
||||
DSP_TTY_SRCS = $(foreach x,$(DSP_TTY_ARTIFACTS),$($(x)_SRCS))
|
||||
DSP_TTY_HDRS = $(foreach x,$(DSP_TTY_ARTIFACTS),$($(x)_HDRS))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue