{"id":7236,"date":"2019-04-14T02:07:14","date_gmt":"2019-04-13T17:07:14","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=7236"},"modified":"2019-04-19T00:34:49","modified_gmt":"2019-04-18T15:34:49","slug":"utf-8%e3%81%ae%e3%82%b3%e3%83%bc%e3%83%89%e3%83%9d%e3%82%a4%e3%83%b3%e3%83%88%e3%81%af%e3%81%a9%e3%81%86%e3%82%84%e3%81%a3%e3%81%a6%e3%82%82%e3%81%a3%e3%81%a8%e9%ab%98%e9%80%9f%e3%81%ab%e6%95%b0","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=7236","title":{"rendered":"UTF-8\u306e\u30b3\u30fc\u30c9\u30dd\u30a4\u30f3\u30c8\u306f\u3069\u3046\u3084\u3063\u3066\u3082\u3063\u3068\u9ad8\u901f\u306b\u6570\u3048\u308b\u304b"},"content":{"rendered":"<p>Qiita \u306b <a href=\"https:\/\/qiita.com\/saka1_p\/items\/ff49d981cfd56f3588cc\">UTF-8\u306e\u30b3\u30fc\u30c9\u30dd\u30a4\u30f3\u30c8\u306f\u3069\u3046\u3084\u3063\u3066\u9ad8\u901f\u306b\u6570\u3048\u308b\u304b<\/a>\u3068\u3044\u3046\u8a18\u4e8b\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u30b3\u30fc\u30c9\u3092\u773a\u3081\u306a\u304c\u3089\u3082\u3063\u3068\u901f\u304f\u306a\u308b\u3093\u3058\u3083\u306a\u3044\u306e\u3068\u601d\u3063\u305f\u306e\u3067\u3001\u3084\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u5143\u306e\u30b3\u30fc\u30c9\u306f\u3053\u3046\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>\r\ninline int32_t avx2_horizontal_sum_epi8(__m256i x)\r\n{\r\n    __m256i sumhi = _mm256_unpackhi_epi8(x, _mm256_setzero_si256());\r\n    __m256i sumlo = _mm256_unpacklo_epi8(x, _mm256_setzero_si256());\r\n    __m256i sum16x16 = _mm256_add_epi16(sumhi, sumlo);\r\n    __m256i sum16x8 = _mm256_add_epi16(sum16x16, _mm256_permute2x128_si256(sum16x16, sum16x16, 1));\r\n    __m256i sum16x4 = _mm256_add_epi16(sum16x8, _mm256_shuffle_epi32(sum16x8, _MM_SHUFFLE(0, 0, 2, 3)));\r\n    uint64_t tmp = _mm256_extract_epi64(sum16x4, 0);\r\n    int32_t result = 0;\r\n    result += (tmp &gt;&gt; 0 ) & 0xffff;\r\n    result += (tmp &gt;&gt; 16) & 0xffff;\r\n    result += (tmp &gt;&gt; 32) & 0xffff;\r\n    result += (tmp &gt;&gt; 48) & 0xffff;\r\n    return result;\r\n}\r\n\r\nint64_t avx_count_utf8_codepoint(const char *p,  const char *e)\r\n{\r\n    \/\/ `p` must be 32B-aligned pointer\r\n    p = static_cast&lt;const char *&gt;(__builtin_assume_aligned(p, 32));\r\n    const size_t size = e - p;\r\n    int64_t result = 0;\r\n    for (size_t i = 0; i + 31 &lt; size;) {\r\n        __m256i sum = _mm256_setzero_si256();\r\n        size_t j = 0;\r\n        for (; j &lt; 255 * 32 && (i + 31) + j &lt; size; j += 32) {\r\n            const __m256i table = _mm256_setr_epi8(\r\n                    1, 1, 1, 1, 1, 1, 1, 1, \/\/     .. 0x7\r\n                    0, 0, 0, 0,             \/\/ 0x8 .. 0xB\r\n                    1, 1, 1, 1,             \/\/ 0xC .. 0xF\r\n                    1, 1, 1, 1, 1, 1, 1, 1, \/\/     .. 0x7\r\n                    0, 0, 0, 0,             \/\/ 0x8 .. 0xB\r\n                    1, 1, 1, 1              \/\/ 0xC .. 0xF\r\n                    );\r\n            __m256i s = _mm256_load_si256(reinterpret_cast&lt;const __m256i *&gt;(p + i + j));\r\n            s = _mm256_and_si256(_mm256_srli_epi16(s, 4), _mm256_set1_epi8(0x0F));\r\n            s = _mm256_shuffle_epi8(table, s);\r\n            sum = _mm256_add_epi8(sum, s);\r\n        }\r\n        i += j;\r\n        result += avx2_horizontal_sum_epi8(sum);\r\n    }\r\n    return result;\r\n}\r\n<\/pre>\n<\/blockquote>\n<p>\u306a\u304a\u3001\u9ad8\u901f\u5316\u3059\u308b\u524d\u306b\u3001\u5f15\u6570\u3084\u8fd4\u308a\u5024\u3092\u3061\u3087\u3053\u3063\u3068\u3060\u3051\u5909\u3048\u3066\u3042\u308a\u307e\u3059\u3002\u95a2\u6570\u306e\u982d\u3067\u8a08\u7b97\u3057\u3066\u3044\u305f\u5024\u3092\u5f15\u6570\u3067\u6e21\u3057\u305f\u308a int64_t \u304c size_t \u306b\u306a\u3063\u305f\u308a\u3057\u3066\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u901f\u5ea6\u306b\u306f\u5f71\u97ff\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<blockquote>\n<pre>\r\nsize_t avx_count_utf8_codepoint(const char *p, size_t sz)\r\n{\r\n    size_t result = 0;\r\n    for (size_t i = 0; i + 31 &lt; sz;) {\r\n        __m256i sum = _mm256_setzero_si256();\r\n        size_t j = 0;\r\n        for (; j &lt; 255 * 32 && (i + 31) + j &lt; sz; j += 32) {\r\n            const __m256i table = _mm256_setr_epi8(\r\n                1, 1, 1, 1, 1, 1, 1, 1, \/\/     .. 0x7\r\n                0, 0, 0, 0,             \/\/ 0x8 .. 0xB\r\n                1, 1, 1, 1,             \/\/ 0xC .. 0xF\r\n                1, 1, 1, 1, 1, 1, 1, 1, \/\/     .. 0x7\r\n                0, 0, 0, 0,             \/\/ 0x8 .. 0xB\r\n                1, 1, 1, 1              \/\/ 0xC .. 0xF\r\n            );\r\n            __m256i s = _mm256_load_si256(reinterpret_cast&lt;const __m256i *&gt;(p + i + j));\r\n            s = _mm256_and_si256(_mm256_srli_epi16(s, 4), _mm256_set1_epi8(0x0F));\r\n            s = _mm256_shuffle_epi8(table, s);\r\n            sum = _mm256_add_epi8(sum, s);\r\n        }\r\n        i += j;\r\n        result += avx2_horizontal_sum_epi8(sum);\r\n    }\r\n    return result;\r\n}\r\n<\/pre>\n<\/blockquote>\n<h3>\u30eb\u30fc\u30d7\u5185\u306e\u51e6\u7406<\/h3>\n<p>\u3053\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3067\u306f 0x00\uff5e0x7f \u307e\u305f\u306f 0xc0\uff5e0xff \u3067\u3042\u308b\u30d0\u30a4\u30c8\u3092\u6570\u3048\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u3053\u308c\u306f signed byte \u3068\u3057\u3066\u898b\u308b\u3068 -0x40\uff5e0x7f \u3068\u306a\u308a\u307e\u3059\u3002\u306a\u306e\u3067\u3001 VPSHUFB \u3067\u30c6\u30fc\u30d6\u30eb\u3092\u5f15\u304b\u306a\u304f\u3066\u3082 VPCMPGTB \u547d\u4ee4\u4e00\u767a\u3067\u5224\u5b9a\u3067\u304d\u307e\u3059\uff08\u305f\u3076\u3093\u5143\u306e\u8a18\u4e8b\u306e\u524d\u306e\u8a18\u4e8b\u306b\u3042\u308b UTF-8 \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u30b3\u30fc\u30c9\u3092\u6539\u9020\u3057\u305f\u304b\u3089\u3053\u3046\u306a\u3063\u3066\u308b\u3093\u3060\u3068\u601d\u3046\uff09\u3002\u3053\u306e\u5834\u5408\u5224\u5b9a\u3092\u901a\u3063\u305f\u30d0\u30a4\u30c8\u306f 1 \u3067\u306f\u306a\u304f 0xff (=-1) \u306b\u306a\u308a\u307e\u3059\u304c\u3001\u96c6\u8a08\u3059\u308b\u969b\u306b VPADDB \u3067\u306f\u306a\u304f VPSUBB \u306b\u3059\u308c\u3070\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<blockquote>\n<pre>\r\nsize_t opt_innermost_content(const char *p, size_t sz)\r\n{\r\n    size_t result = 0;\r\n    for (size_t i = 0; i + 31 &lt; sz;) {\r\n        __m256i sum = _mm256_setzero_si256();\r\n        size_t j = 0;\r\n        for (; j &lt; 255 * 32 && (i + 31) + j &lt; sz; j += 32) {\r\n            __m256i s = _mm256_load_si256(reinterpret_cast&lt;const __m256i *&gt;(p + i + j));\r\n            sum = _mm256_sub_epi8(sum, _mm256_cmpgt_epi8(s, _mm256_set1_epi8(-0x41)));\r\n        }\r\n        i += j;\r\n        result += avx2_horizontal_sum_epi8(sum);\r\n    }\r\n    return result;\r\n}\r\n<\/pre>\n<\/blockquote>\n<p>\u3053\u3046\u3059\u308b\u3068\u30ed\u30fc\u30c9\u3001\u5224\u5b9a\u3001\u96c6\u8a08\u304c\u305d\u308c\u305e\u308c1\u547d\u4ee4 (1uOP) \u306b\u306a\u308a\u307e\u3059\u3002\u3055\u3059\u304c\u306b\u3053\u308c\u4ee5\u4e0a\u547d\u4ee4\u6570\u306f\u6e1b\u3089\u306a\u3044\u3067\u3057\u3087\u3046\u3002\u307e\u305f\u3001Haswell \u306e\u5834\u5408 VPCMPGTB \u3068 VPADDB \u306f\u4e21\u65b9\u3068\u3082 port1\/5 \u3067\u767a\u884c\u3067\u304d\u3066\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u304c 0.5 \u3067\u3059\u3002\u3053\u306e\u30b3\u30fc\u30c9\u306f sum \u306b VPADDB \u3059\u308b\u3068\u3053\u308d\u306b\u30eb\u30fc\u30d7\u9593\u306e\u4f9d\u5b58\u95a2\u4fc2\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u6a2a\u3067 VPCMPGTB \u3057\u3066\u3044\u3066\u30eb\u30fc\u30d7\u9593\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u6539\u5584\u3057\u3066\u3082\u5b9f\u884c\u30e6\u30cb\u30c3\u30c8\u304c\u8db3\u308a\u306a\u304f\u3066\u901f\u304f\u306a\u3089\u306a\u3044\u306e\u3067\u3001\u30eb\u30fc\u30d7\u5185\u306e\u30b3\u30fc\u30c9\u306b\u95a2\u3057\u3066\u306f\u7406\u8ad6\u4e0a\u306f\u6700\u901f\u306b\u306a\u308a\u307e\u3059\u3002<a href=\"https:\/\/dic.nicovideo.jp\/a\/%E5%A4%9A%E5%88%86%E3%81%93%E3%82%8C%E3%81%8C%E4%B8%80%E7%95%AA%E6%97%A9%E3%81%84%E3%81%A8%E6%80%9D%E3%81%84%E3%81%BE%E3%81%99\">\u591a\u5206\u3053\u308c\u304c\u4e00\u756a\u901f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/a><\/p>\n<p>\u3044\u304d\u306a\u308a\u6700\u901f\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001\u3053\u3053\u304b\u3089\u306f UTF-8 \u306f\u95a2\u4fc2\u306a\u304f\u6761\u4ef6\u3092\u6e80\u305f\u3059\u30d0\u30a4\u30c8\u3092\u3069\u3046\u9ad8\u901f\u306b\u6570\u3048\u308b\u304b\u3068\u3044\u3046\u8a71\u306b\u79fb\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30eb\u30fc\u30d7\u7d42\u4e86\u6761\u4ef6<\/h3>\n<p>\u5185\u5074\u306e\u30eb\u30fc\u30d7\u306e\u7d42\u4e86\u6761\u4ef6\u304c and \u306b\u306a\u3063\u3066\u3044\u3066\u3044\u304b\u306b\u3082\u5224\u5b9a\u304c\u9045\u305d\u3046\u3067\u3059\u3002\u5224\u5b9a\u306f\u30b7\u30f3\u30d7\u30eb\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u3061\u306a\u307f\u306b 31 \u3092\u8db3\u3057\u3066\u5224\u5b9a\u3057\u3066\u3044\u308b\u90e8\u5206\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u95a2\u6570\u306f32\u30d0\u30a4\u30c8\u5358\u4f4d\u3067\u3057\u304b\u51e6\u7406\u3057\u306a\u3044\u306e\u3067\u3084\u3089\u306a\u304f\u3066\u3082\u540c\u3058\u3067\u3059\u3002<\/p>\n<blockquote>\n<pre>\r\nsize_t opt_innermost_content_loopend(const char *p, size_t sz)\r\n{\r\n    size_t result = 0;\r\n    for (size_t i = 0; i &lt; sz;) {\r\n        __m256i sum = _mm256_setzero_si256();\r\n        size_t j = 0;\r\n        size_t limit = std::min&lt;size_t&gt;(255 * 32, sz - i);\r\n        for (; j &lt; limit; j += 32) {\r\n            __m256i s = _mm256_load_si256(reinterpret_cast&lt;const __m256i *&gt;(p + i + j));\r\n            sum = _mm256_sub_epi8(sum, _mm256_cmpgt_epi8(s, _mm256_set1_epi8(-0x41)));\r\n        }\r\n        i += j;\r\n        result += avx2_horizontal_sum_epi8(sum);\r\n    }\r\n    return result;\r\n}\r\n<\/pre>\n<\/blockquote>\n<p>\u3053\u306e\u8a18\u4e8b\u306b\u306f\u66f8\u304d\u307e\u305b\u3093\u304c\u5143\u306e\u30b3\u30fc\u30c9\u306b\u9069\u7528\u3057\u305f\u3082\u306e\u3082\u5b9f\u88c5\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h3>\u3068\u308a\u3042\u3048\u305a\u8a08\u6e2c<\/h3>\n<p>\u8a08\u6e2c\u6761\u4ef6\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>CPU: Core i7-4770 @3.4GHz (Haswell) TB\/EIST off<\/li>\n<li>RAM: DDR3-1600 (PC3-12800) CL9 dual channel<\/li>\n<li>\u30ab\u30a6\u30f3\u30c8\u5bfe\u8c61\u306f 16K, 224K, 6M, 128M \u3002\u3053\u308c\u306f\u305d\u308c\u305e\u308c L1 (32K), L2 (256K), L3 (8M) \u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u53ce\u307e\u308b\u30b5\u30a4\u30ba\u3068\u3001\u53ce\u307e\u3089\u305a\u306b\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u304b\u3089\u8aad\u3080\u72b6\u614b\u3092\u8a08\u6e2c\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>\u30b3\u30f3\u30d1\u30a4\u30e9\u306f Clang 8.0.0 \u306e Visual Studio 2017 integration (clang-cl)\n<ul>\n<li>\u30aa\u30d7\u30b7\u30e7\u30f3\u306f \/Arch:AVX2 \/O2 \uff08-mavx2 -O2 \u76f8\u5f53\uff09<\/li>\n<li>\u306a\u3093\u3067\u3053\u3093\u306a\u73cd\u3057\u3044\u74b0\u5883\u306a\u306e\u304b\u3068\u3044\u3046\u3068\u4e0a\u8a18\u30de\u30b7\u30f3\u306f Windows \u3060\u304b\u3089\u3002\u4e00\u5fdc\u6bd4\u8f03\u3068\u3057\u3066 opt_innermost_content_loopend \u3092 MS \u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u6642\u306e\u7d50\u679c\u3082\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u3067\u3001\u7d50\u679c\u3067\u3059\u3002\u4e0a\u6bb5\u304c\u51e6\u7406\u901f\u5ea6\u3001\u4e0b\u6bb5\u304c32\u30d0\u30a4\u30c8\u51e6\u7406\u3059\u308b\u306e\u306b\u304b\u304b\u3063\u305f\u30af\u30ed\u30c3\u30af\u6570\u3067\u3059\u3002<\/p>\n<table border=\"border\">\n<tr>\n<td>\u5b9f\u88c5\uff3c\u30b5\u30a4\u30ba<\/td>\n<td>16384<br \/>(16*1024)<\/td>\n<td>229376<br \/>(224*1024)<\/td>\n<td>6291456<br \/>(6144*1024)<\/td>\n<td>134217728<br \/>(128*1024*1024)<\/td>\n<\/tr>\n<tr>\n<td>avx_count_utf8_codepoint<\/td>\n<td> 34.7GB\/s<br \/>3.13<\/td>\n<td>33.9GB\/s<br \/>3.21<\/td>\n<td>29.7GB\/s<br \/>3.66<\/td>\n<td>15.5GB\/s<br \/>7.03<\/td>\n<\/tr>\n<tr>\n<td>avx_count_utf8_codepoint_loopend<\/td>\n<td> 61.3GB\/s<br \/>1.77<\/td>\n<td>52.5GB\/s<br \/>2.07<\/td>\n<td>35.9GB\/s<br \/>3.03<\/td>\n<td>15.8GB\/s<br \/>6.86<\/td>\n<\/tr>\n<tr>\n<td>opt_innermost_content<\/td>\n<td> 43.6GB\/s<br \/>2.49<\/td>\n<td>41.1GB\/s<br \/>2.65<\/td>\n<td>33.3GB\/s<br \/>3.27<\/td>\n<td>16.0GB\/s<br \/>6.80<\/td>\n<\/tr>\n<tr>\n<td>opt_innermost_content_loopend<\/td>\n<td>100.2GB\/s<br \/>1.09<\/td>\n<td>77.7GB\/s<br \/>1.40<\/td>\n<td>38.4GB\/s<br \/>2.83<\/td>\n<td>16.8GB\/s<br \/>6.49<\/td>\n<\/tr>\n<tr>\n<td>opt_innermost_content_loopend (cl.exe)<\/td>\n<td>72.4GB\/s<br \/>1.49<\/td>\n<td>64.4GB\/s<br \/>1.69<\/td>\n<td>37.3GB\/s<br \/>2.90<\/td>\n<td>16.7GB\/s<br \/>6.52<\/td>\n<\/tr>\n<\/table>\n<p>\u4e0b\u9650\u3067\u3042\u308b32\u30d0\u30a4\u30c8\u3042\u305f\u308a1\u30af\u30ed\u30c3\u30af\u306b\u8fd1\u3044\u901f\u5ea6\u304c\u51fa\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u3067\u30821\u5272\u5f31\u901f\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002memtest86+ \u306b\u3088\u308c\u3070\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u306f 20GB\/s \u51fa\u308b\u3089\u3057\u3044\u306e\u3067\u3059\u304c\u3001\u305d\u3053\u307e\u3067\u306f\u5230\u9054\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u5143\u30b3\u30fc\u30c9\u306e128MB\u304c\u5143\u8a18\u4e8b\u3088\u308a\u901f\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u306e\u9055\u3044\u306b\u3088\u308b\u73fe\u8c61\u3060\u3068\u601d\u3063\u3066\u3044\u307e\u3059\uff08\u540c\u3058 DDR3-1600 \u3067\u3082\u30a2\u30af\u30bb\u30b9\u30bf\u30a4\u30df\u30f3\u30b0\u304c\u9055\u3046\uff09\u3002<\/p>\n<h3>\u3055\u3089\u306b\u901f\u304f\u306a\u308b\u304b\u3069\u3046\u304b<\/h3>\n<p>opt_innermost_content_loopend \u306b\u5bfe\u3057\u3066 Clang \u304c\u5410\u3044\u305f\u30d0\u30a4\u30ca\u30ea\u3092\u898b\u308b\u30688\u500d\u306b\u30eb\u30fc\u30d7\u30a2\u30f3\u30ed\u30fc\u30ea\u30f3\u30b0\u3057\u3066\u3044\u307e\u3059\u3002\u30a2\u30f3\u30ed\u30fc\u30ea\u30f3\u30b0\u3059\u308b\u3068\u5206\u5c90\u306e\u5272\u5408\u304c\u4e0b\u304c\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u4ee5\u4e0a\u306e\u6539\u5584\u306f\u30eb\u30fc\u30d7\u7d42\u4e86\u6761\u4ef6\u306e\u52b9\u7387\u5316\u306b\u3088\u308b\u3057\u304b\u306a\u3044\u306e\u3067\u3001\u6700\u9069\u5316\u4f59\u5730\u306f\u304b\u306a\u308a\u5c0f\u3055\u304f\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002\u5927\u304d\u306a\u30c7\u30fc\u30bf\u3092\u76f8\u624b\u306b\u3059\u308b\u5834\u5408\u306f\u3055\u3089\u306b\u30a2\u30f3\u30ed\u30fc\u30ea\u30f3\u30b0\u3059\u308b\u3053\u3068\u3082\u8003\u3048\u3089\u308c\u307e\u3059\u304c\u3001\u5927\u304d\u306a\u30c7\u30fc\u30bf\u306f L1 \u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u8f09\u3089\u305a\u30e1\u30e2\u30ea\u5074\u306e\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u304c\u4e0b\u304c\u308b\u306e\u3067\u3001\u3084\u3063\u3066\u3082\u610f\u5473\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u304b\u5341\u5206\u901f\u304f\u306a\u3063\u3061\u3083\u3063\u305f\u3057\u4e0b\u9650\u304c32\u30d0\u30a4\u30c8\u3042\u305f\u308a1\u30af\u30ed\u30c3\u30af\u3067\u3042\u308b\u3053\u3068\u306f\u5206\u304b\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u3042\u3093\u307e\u308a\u3084\u308b\u6c17\u304c\u51fa\u306a\u3044\u3068\u3044\u3046\u306e\u304c\u5b9f\u969b\u306e\u3068\u3053\u308d\u3067\u3059\u3002\u901f\u304f\u3057\u3066\u3082\u3053\u308c\u3058\u3083\u8a08\u6e2c\u8aa4\u5dee\u306b\u57cb\u3082\u308c\u3061\u3083\u3046\u3057\u2026\u3002\uff08\u5b9f\u969b\u306b\u306f\u3084\u3063\u305f\u3051\u3069\u901f\u304f\u306a\u3089\u306a\u304b\u3063\u305f\uff09<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<ul>\n<li>UTF-8 \u306e\u30b3\u30fc\u30c9\u30dd\u30a4\u30f3\u30c8\u6570\u3092\u30ab\u30a6\u30f3\u30c8\u3059\u308b\u30b3\u30fc\u30c9\u3092\u6700\u9069\u5316\u3057\u307e\u3057\u305f\u3002\u975e\u5e38\u306b\u5927\u304d\u306a\u30c7\u30fc\u30bf\u306e\u5834\u5408\u306f\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u3067\u5f8b\u901f\u3059\u308b\u305f\u3081\u305d\u308c\u307b\u3069\u52b9\u679c\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30b3\u30a2\u306b\u8fd1\u3044\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u53ce\u307e\u308b\u30b5\u30a4\u30ba\u3067\u3042\u308b\u307b\u3069\u52b9\u679c\u304c\u5927\u304d\u304f\u51fa\u307e\u3059\u3002<\/li>\n<li>\u5b9f\u969b\u306e\u3068\u3053\u308d\u4eba\u9593\u304c\u9811\u5f35\u308b\u90e8\u5206\u306f\u305d\u308c\u307b\u3069\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002 Clang \u3059\u3054\u3044\u3063\u3059\u306d\u3002<\/li>\n<\/ul>\n<h3>Appendix<\/h3>\n<p><a href=\"https:\/\/gist.github.com\/umezawatakeshi\/407b1607b880c5c6a6257d80e61d8353\">\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\uff08Windows + Visual Studio 2017 + LLVM integration \u5411\u3051\u306a\u306e\u3067 Unix \u5411\u3051\u306b\u306f\u591a\u5c11\u4fee\u6b63\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff09<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Qiita \u306b UTF-8\u306e\u30b3\u30fc\u30c9\u30dd\u30a4\u30f3\u30c8\u306f\u3069\u3046\u3084\u3063\u3066\u9ad8\u901f\u306b\u6570\u3048\u308b\u304b\u3068\u3044\u3046\u8a18\u4e8b\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u30b3\u30fc\u30c9\u3092\u773a\u3081\u306a\u304c\u3089\u3082\u3063\u3068\u901f\u304f\u306a\u308b\u3093\u3058\u3083\u306a\u3044\u306e\u3068\u601d\u3063\u305f\u306e\u3067\u3001\u3084\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-7236","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7236"}],"version-history":[{"count":15,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7236\/revisions"}],"predecessor-version":[{"id":7251,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7236\/revisions\/7251"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7236"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}