mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 23:13:34 +00:00
24 lines
1 KiB
C
24 lines
1 KiB
C
|
#include "libc/x/x.h"
|
||
|
/* clang-format off */
|
||
|
|
||
|
static bool gb18030ext_decmap_once;
|
||
|
static 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) {
|
||
|
if (gb18030ext_decmap_once) return gb18030ext_decmap_ptr;
|
||
|
return xload(&gb18030ext_decmap_once,
|
||
|
&gb18030ext_decmap_ptr,
|
||
|
gb18030ext_decmap_rodata,
|
||
|
100, 1024); /* 9.76562% profit */
|
||
|
}
|