cosmopolitan/third_party/python/Modules/cjkcodecs/gb18030ext_decmap.c
Justine Tunney e522aa3a07
Make more threading improvements
- 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
2022-11-01 23:28:26 -07:00

20 lines
946 B
C

#include "libc/x/x.h"
/* clang-format off */
static _Atomic(void *) gb18030ext_decmap_ptr;
static const unsigned char gb18030ext_decmap_rodata[] = {
0x63, 0x60, 0x18, 0x05, 0xa3, 0x60, 0x60, 0x01, 0x23, 0x83, 0xc3, 0x82, 0x24,
0x06, 0x87, 0x7f, 0x8a, 0x8c, 0x0e, 0x0b, 0x9a, 0x18, 0x1d, 0xfe, 0x39, 0x32,
0x39, 0xfc, 0x63, 0x60, 0x76, 0xf8, 0xb7, 0x1f, 0x88, 0xeb, 0x58, 0xa6, 0xfd,
0x7b, 0xce, 0x12, 0xf1, 0xaf, 0x8f, 0x75, 0xe1, 0xbf, 0x37, 0x40, 0xec, 0xc5,
0xb6, 0xf0, 0xdf, 0x0a, 0x20, 0x66, 0x63, 0x5f, 0xf8, 0x2f, 0x05, 0x88, 0x07,
0xb3, 0xbf, 0x0e, 0xb1, 0xff, 0x1a, 0x70, 0xf7, 0x1d, 0x07, 0x86, 0x91, 0x2a,
0xc7, 0xc2, 0x7f, 0xcd, 0x40, 0xfc, 0x10, 0x88, 0xed, 0x39, 0x17, 0xfe, 0x9b,
0x0b, 0xc4, 0xbf, 0x39, 0x03, 0xc0, 0x6e, 0x03, 0x00,
};
optimizesize void *gb18030ext_decmap(void) {
return xload(&gb18030ext_decmap_ptr,
gb18030ext_decmap_rodata,
100, 1024); /* 9.76562% profit */
}