mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
- ASAN memory morgue is now lockless - Make C11 atomics header more portable - Rewrote pthread keys support to be lockless - Simplify Python's unicode table unpacking code - Make crash report write(2) closer to being atomic - Make it possible to strace/ftrace a single thread - ASAN now checks nul-terminated strings fast and properly - Windows fork() now restores TLS memory of calling thread
19 lines
831 B
C
19 lines
831 B
C
#include "libc/x/x.h"
|
|
/* clang-format off */
|
|
|
|
static _Atomic(void *) cp950ext_encmap_ptr;
|
|
static const unsigned char cp950ext_encmap_rodata[] = {
|
|
0x63, 0x64, 0x58, 0xbf, 0x9e, 0x61, 0x00, 0x01, 0x13, 0x83, 0xfa, 0x1a, 0x10,
|
|
0xdd, 0xc1, 0x20, 0x3a, 0x13, 0x26, 0xc6, 0xcb, 0x18, 0x38, 0x99, 0x61, 0x98,
|
|
0x80, 0x00, 0xc6, 0xdd, 0xbb, 0x41, 0x74, 0x20, 0xe3, 0xaf, 0x5f, 0xd8, 0xe4,
|
|
0x83, 0x18, 0x83, 0x82, 0x68, 0x69, 0x7f, 0x30, 0x63, 0x63, 0x23, 0x32, 0x3f,
|
|
0x84, 0x71, 0xf9, 0x72, 0x52, 0xf4, 0x87, 0x32, 0x9e, 0x3f, 0x4f, 0x8c, 0xba,
|
|
0x30, 0xc6, 0x9d, 0x3b, 0x19, 0x46, 0xc1, 0x90, 0x01, 0xe1, 0x8c, 0x81, 0x19,
|
|
0xf9, 0x8c, 0xfc, 0x4f, 0x01,
|
|
};
|
|
|
|
optimizesize void *cp950ext_encmap(void) {
|
|
return xload(&cp950ext_encmap_ptr,
|
|
cp950ext_encmap_rodata,
|
|
83, 1024); /* 8.10547% profit */
|
|
}
|