mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-25 07:19:02 +00:00
23 lines
949 B
C
23 lines
949 B
C
|
#include "libc/x/x.h"
|
||
|
/* clang-format off */
|
||
|
|
||
|
static bool cp950ext_encmap_once;
|
||
|
static 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) {
|
||
|
if (cp950ext_encmap_once) return cp950ext_encmap_ptr;
|
||
|
return xload(&cp950ext_encmap_once,
|
||
|
&cp950ext_encmap_ptr,
|
||
|
cp950ext_encmap_rodata,
|
||
|
83, 1024); /* 8.10547% profit */
|
||
|
}
|