mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +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
|
@ -19,6 +19,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "dsp/core/core.h"
|
||||
#include "dsp/core/q.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/testlib/ezbench.h"
|
||||
#include "libc/testlib/testlib.h"
|
||||
|
@ -49,7 +50,8 @@ TEST(GetIntegerCoefficients8, testBt601Vectors) {
|
|||
for (i = 0; i < ARRAYLEN(V); ++i) {
|
||||
GetIntegerCoefficients8(got, V[i].r, V[i].m, V[i].L, V[i].H);
|
||||
EXPECT_EQ(0, memcmp(V[i].n, got, sizeof(got)),
|
||||
"got={%ld,%ld,%ld,%ld,%ld,%ld}, want={%ld,%ld,%ld,%ld,%ld,%ld}",
|
||||
"got={%ld,%ld,%ld,%ld,%ld,%ld}, want = { % ld, % ld, % ld, % ld, "
|
||||
"% ld, % ld } ",
|
||||
got[0], got[1], got[2], got[3], got[4], got[5], V[i].n[0],
|
||||
V[i].n[1], V[i].n[2], V[i].n[3], V[i].n[4], V[i].n[5]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue