The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 18:15 UTC
perf(mobile): highlight code with native @pierre/highlights instead of Shiki (#24544)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 24, 2026 at 16:15 UTC
76da264a0ccaeff5fa88bcb5cfada1be6ae320c4
65 files changed
+118377
-1963
.macroscope/ignore.md
+5
@@ -274,3 +274,8 @@ infra/relay/migrations/**/snapshot.json
274
# Ghostty build output vendored from upstream.
275
apps/mobile/modules/t3-terminal/Vendor/**
276
native/libghostty-vt/include/**
277
+
278
+# @pierre/highlights compiled to C by wasm2c, plus the wasm2c runtime and simde
279
+# it needs. Regenerated by apps/mobile/scripts/generate-highlights.mts; review
280
+# that script and cpp/t3_highlights.c instead.
281
+apps/mobile/modules/t3-highlights/Vendor/**
apps/mobile/.swiftlint.yml
+1
@@ -1,6 +1,7 @@
1
included:
2
- ios/T3Code
3
- modules/t3-composer-editor/ios
4
+ - modules/t3-highlights/ios
5
- modules/t3-native-controls/ios
6
- modules/t3-terminal/ios
7
- modules/t3-review-diff/ios
apps/mobile/README.md
-8
@@ -96,14 +96,6 @@ Build and run the local iOS preview app:
96
vp run ios:preview
97
```
98
99
-Force the review diff highlighter engine:
100
-
101
-```bash
102
-EXPO_PUBLIC_REVIEW_HIGHLIGHTER_ENGINE=javascript vp run ios:dev
103
-```
104
-
105
-`javascript` is the default and recommended setting for the review diff screen. Set `EXPO_PUBLIC_REVIEW_HIGHLIGHTER_ENGINE=native` only when you explicitly want to test the native Shiki engine.
106
-
99
Inspect the resolved Expo config for a variant:
100
101
```bash
apps/mobile/app.config.ts
-1
@@ -454,7 +454,6 @@ const config: ExpoConfig = {
454
...(!isIosPersonalTeamBuild ? ["./plugins/withWidgetLogoAsset.cjs", widgetsPlugin] : []),
455
"./plugins/withAndroidCleartextTraffic.cjs",
456
"./plugins/withAndroidGradleHeap.cjs",
457
- "./plugins/withAndroidFbjniVersion.cjs",
457
"./plugins/withAndroidInputBackground.cjs",
458
"./plugins/withAndroidModernPopupMenu.cjs",
459
"./plugins/withAndroidModernAlertDialog.cjs",
apps/mobile/metro.config.js
-23
@@ -16,23 +16,8 @@ const licenseGeneratorSource = path.join(
16
"third-party-licenses.ts",
17
);
18
const escapedWorkspaceRoot = workspaceRoot.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
19
-const mobileShikiRoot = path.dirname(require.resolve("shiki/package.json", { paths: [__dirname] }));
19
const generatedDeviceStreamRoot = path.join(__dirname, ".generated", "device-stream");
20
const generatedPreviewStreamRoot = path.join(__dirname, ".generated", "preview-stream");
22
-const resolveShikiDependencyRoot = (packageName) => {
23
- const entryPath = require.resolve(packageName, { paths: [mobileShikiRoot] });
24
- let currentDir = path.dirname(entryPath);
25
-
26
- while (!fs.existsSync(path.join(currentDir, "package.json"))) {
27
- const parentDir = path.dirname(currentDir);
28
- if (parentDir === currentDir) {
29
- throw new Error(`Could not resolve package root for ${packageName}`);
30
- }
31
- currentDir = parentDir;
32
- }
33
-
34
- return currentDir;
35
-};
21
22
config.watchFolders = [...new Set([...(config.watchFolders ?? []), workspaceRoot])];
23
config.resolver = {
@@ -50,14 +35,6 @@ config.resolver = {
35
"@t3tools/mobile-third-party-licenses": generatedLicenseModuleRoot,
36
"@t3tools/mobile-device-stream": generatedDeviceStreamRoot,
37
"@t3tools/mobile-preview-stream": generatedPreviewStreamRoot,
53
- shiki: mobileShikiRoot,
54
- "@shikijs/core": resolveShikiDependencyRoot("@shikijs/core"),
55
- "@shikijs/engine-javascript": resolveShikiDependencyRoot("@shikijs/engine-javascript"),
56
- "@shikijs/engine-oniguruma": resolveShikiDependencyRoot("@shikijs/engine-oniguruma"),
57
- "@shikijs/langs": resolveShikiDependencyRoot("@shikijs/langs"),
58
- "@shikijs/themes": resolveShikiDependencyRoot("@shikijs/themes"),
59
- "@shikijs/types": resolveShikiDependencyRoot("@shikijs/types"),
60
- "@shikijs/vscode-textmate": resolveShikiDependencyRoot("@shikijs/vscode-textmate"),
38
},
39
};
40
apps/mobile/modules/t3-highlights/T3HighlightsNative.podspec
new
+30
@@ -0,0 +1,30 @@
1
+require 'json'
2
+
3
+package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
+
5
+Pod::Spec.new do |s|
6
+ s.name = 'T3HighlightsNative'
7
+ s.version = package['version']
8
+ s.summary = 'Native @pierre/highlights syntax highlighter for T3 Code mobile.'
9
+ s.description = 'Runs the @pierre/highlights lexers, compiled from WebAssembly to C with wasm2c.'
10
+ s.homepage = 'https://t3tools.com'
11
+ s.license = { :type => 'UNLICENSED' }
12
+ s.author = { 'T3 Tools' => 'hello@t3tools.com' }
13
+ s.platforms = { :ios => '16.1' }
14
+ s.source = { :path => '.' }
15
+ s.source_files = 'ios/**/*.swift', 'cpp/**/*.{c,h,inc}', 'Vendor/**/*.{c,h,inc}'
16
+ # Swift sees only the wrapper; the generated and runtime headers stay private.
17
+ s.public_header_files = 'cpp/t3_highlights.h'
18
+ # Debug builds compile at -O0 by default, which makes the lexers several times
19
+ # slower. They are generated code, so optimize them in every configuration.
20
+ s.compiler_flags = '-O2'
21
+ s.pod_target_xcconfig = {
22
+ 'DEFINES_MODULE' => 'YES',
23
+ # Plain malloc memory with explicit bounds checks: no guard-page signal
24
+ # handlers competing with the app's crash reporting.
25
+ 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) WASM_RT_USE_MMAP=0 WASM_RT_MEMCHECK_BOUNDS_CHECK=1 WASM_RT_SKIP_SIGNAL_RECOVERY=1',
26
+ 'HEADER_SEARCH_PATHS' => '$(inherited) "${PODS_TARGET_SRCROOT}/Vendor" "${PODS_TARGET_SRCROOT}/Vendor/highlights" "${PODS_TARGET_SRCROOT}/Vendor/wasm2c"',
27
+ }
28
+ s.swift_version = '5.9'
29
+ s.dependency 'ExpoModulesCore'
30
+end
apps/mobile/modules/t3-highlights/Vendor/highlights/highlights.c
new
+96483
@@ -0,0 +1,96483 @@
1
+/* Generated by apps/mobile/scripts/generate-highlights.mts from @pierre/highlights 0.2.0 (highlights.wasm sha256 cf5fc4d83e7c1ddab19d163de096f787f87efe61504909aa469434f61ef51e2e). Do not edit. */
2
+/* Automatically generated by wasm2c */
3
+#include <assert.h>
4
+#include <math.h>
5
+#include <stdarg.h>
6
+#include <stddef.h>
7
+#include <string.h>
8
+#if defined(__MINGW32__)
9
+#include <malloc.h>
10
+#elif defined(_MSC_VER)
11
+#include <intrin.h>
12
+#include <malloc.h>
13
+#define alloca _alloca
14
+#elif defined(__FreeBSD__) || defined(__OpenBSD__)
15
+#include <stdlib.h>
16
+#else
17
+#include <alloca.h>
18
+#endif
19
+
20
+#include "highlights.h"
21
+#define IS_SINGLE_UNSHARED_DEFAULT32_MEMORY 1
22
+
23
+// Computes a pointer to an object of the given size in a little-endian memory.
24
+//
25
+// On a little-endian host, this is just &mem->data[addr] - the object's size is
26
+// unused. On a big-endian host, it's &mem->data[mem->size - addr - n], where n
27
+// is the object's size.
28
+//
29
+// Note that mem may be evaluated multiple times.
30
+//
31
+// Parameters:
32
+// mem - The memory.
33
+// addr - The address.
34
+// n - The size of the object.
35
+//
36
+// Result:
37
+// A pointer for an object of size n.
38
+#if WABT_BIG_ENDIAN
39
+#define MEM_ADDR(mem, addr, n) ((mem)->data_end - (addr) - (n))
40
+#else
41
+#define MEM_ADDR(mem, addr, n) &((mem)->data[addr])
42
+#endif
43
+
44
+// We can only use Segue for this module if it uses a single unshared,
45
+// default-page, 32-bit imported or exported memory.
46
+#if WASM_RT_USE_SEGUE && IS_SINGLE_UNSHARED_DEFAULT32_MEMORY
47
+#define WASM_RT_USE_SEGUE_FOR_THIS_MODULE 1
48
+#else
49
+#define WASM_RT_USE_SEGUE_FOR_THIS_MODULE 0
50
+#endif
51
+
52
+#ifndef WASM_RT_USE_LOCAL_MEMORY_BASE_SIZE
53
+#define WASM_RT_USE_LOCAL_MEMORY_BASE_SIZE 1
54
+#endif
55
+
56
+#if WASM_RT_USE_LOCAL_MEMORY_BASE_SIZE && WASM_RT_USE_MMAP && \
57
+ IS_SINGLE_UNSHARED_DEFAULT32_MEMORY && !WABT_BIG_ENDIAN
58
+#define WASM_RT_USE_LOCAL_MEMORY_BASE_SIZE_FOR_THIS_MODULE 1
59
+#else
60
+#define WASM_RT_USE_LOCAL_MEMORY_BASE_SIZE_FOR_THIS_MODULE 0
61
+#endif
62
+
63
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE
64
+// POSIX uses FS for TLS, GS is free
65
+static inline void* wasm_rt_segue_read_base() {
66
+ if (wasm_rt_fsgsbase_inst_supported) {
67
+ return (void*)__builtin_ia32_rdgsbase64();
68
+ } else {
69
+ return wasm_rt_syscall_get_segue_base();
70
+ }
71
+}
72
+static inline void wasm_rt_segue_write_base(void* base) {
73
+#if WASM_RT_SEGUE_FREE_SEGMENT
74
+ if (wasm_rt_last_segment_val == base) {
75
+ return;
76
+ }
77
+
78
+ wasm_rt_last_segment_val = base;
79
+#endif
80
+
81
+ if (wasm_rt_fsgsbase_inst_supported) {
82
+ __builtin_ia32_wrgsbase64((uintptr_t)base);
83
+ } else {
84
+ wasm_rt_syscall_set_segue_base(base);
85
+ }
86
+}
87
+#define MEM_ADDR_MEMOP(mem, addr, n) ((uint8_t __seg_gs*)(uintptr_t)addr)
88
+#elif WASM_RT_USE_LOCAL_MEMORY_BASE_SIZE_FOR_THIS_MODULE
89
+#define MEM_ADDR_MEMOP(mem, addr, n) (&wasm_rt_local_memory_base[(addr)])
90
+#else
91
+#define MEM_ADDR_MEMOP(mem, addr, n) MEM_ADDR(mem, addr, n)
92
+#endif
93
+
94
+#define TRAP(x) (wasm_rt_trap(WASM_RT_TRAP_##x), 0)
95
+
96
+#if WASM_RT_STACK_DEPTH_COUNT
97
+#define FUNC_PROLOGUE \
98
+ if (++wasm_rt_call_stack_depth > WASM_RT_MAX_CALL_STACK_DEPTH) \
99
+ TRAP(EXHAUSTION);
100
+
101
+#define FUNC_EPILOGUE --wasm_rt_call_stack_depth
102
+#else
103
+#define FUNC_PROLOGUE
104
+
105
+#define FUNC_EPILOGUE
106
+#endif
107
+
108
+#define UNREACHABLE TRAP(UNREACHABLE)
109
+
110
+#if defined(__clang__) || defined(__GNUC__)
111
+#define W2C_COLD_FUNC __attribute__((noinline, cold))
112
+#elif defined(_MSC_VER)
113
+#define W2C_COLD_FUNC __declspec(noinline)
114
+#else
115
+#define W2C_COLD_FUNC
116
+#endif
117
+
118
+W2C_COLD_FUNC static bool func_types_eq_slowpath(
119
+ const wasm_rt_funcref_table_t* table,
120
+ const wasm_rt_func_type_t expected_type,
121
+ uint32_t index) {
122
+ const size_t sha256size = 32;
123
+ if (index >= table->size) {
124
+ // Table index out of bounds. Raise Wasm trap.
125
+ TRAP(CALL_INDIRECT);
126
+ return false;
127
+ }
128
+ const wasm_rt_funcref_t* const func_ref = &table->data[index];
129
+ if (!expected_type || !func_ref->func || !func_ref->func_type ||
130
+ memcmp(expected_type, func_ref->func_type, sha256size) != 0) {
131
+ // Type check failed. Raise Wasm trap.
132
+ TRAP(CALL_INDIRECT);
133
+ return false;
134
+ }
135
+ return true;
136
+}
137
+
138
+#define CHECK_CALL_INDIRECT(table, ft, x) \
139
+ (LIKELY((x) < table.size && ft == table.data[x].func_type) || \
140
+ func_types_eq_slowpath(&(table), ft, x))
141
+
142
+#define DO_CALL_INDIRECT(table, t, x, ...) ((t)table.data[x].func)(__VA_ARGS__)
143
+
144
+#define CALL_INDIRECT(table, t, ft, x, ...) \
145
+ (CHECK_CALL_INDIRECT(table, ft, x), \
146
+ DO_CALL_INDIRECT(table, t, x, __VA_ARGS__))
147
+
148
+static inline uint64_t checked_add_u64(uint64_t a, uint64_t b) {
149
+ uint64_t ret;
150
+#if __has_builtin(__builtin_add_overflow)
151
+ if (__builtin_add_overflow(a, b, &ret))
152
+ TRAP(OOB);
153
+#elif defined(_MSC_VER)
154
+ if (_addcarry_u64(0, a, b, &ret))
155
+ TRAP(OOB);
156
+#else
157
+ ret = a + b;
158
+ if (ret < a)
159
+ TRAP(OOB);
160
+#endif
161
+ return ret;
162
+}
163
+
164
+#define RANGE_CHECK(mem, offset, len) \
165
+ do { \
166
+ uint64_t res = checked_add_u64(offset, len); \
167
+ if (UNLIKELY(res > (mem)->size)) \
168
+ TRAP(OOB); \
169
+ } while (0);
170
+
171
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && WASM_RT_SANITY_CHECKS
172
+#include <stdio.h>
173
+#define WASM_RT_CHECK_BASE(mem) \
174
+ if (((uintptr_t)((mem)->data)) != ((uintptr_t)wasm_rt_segue_read_base())) { \
175
+ puts("Segment register mismatch\n"); \
176
+ abort(); \
177
+ }
178
+#else
179
+#define WASM_RT_CHECK_BASE(mem)
180
+#endif
181
+
182
+// MEMCHECK_DEFAULT32 is an "accelerated" MEMCHECK used only for
183
+// default-page-size, 32-bit memories. It may do nothing at all
184
+// (if hardware bounds-checking is enabled via guard pages)
185
+// or it may do a slightly faster RANGE_CHECK.
186
+#if WASM_RT_MEMCHECK_GUARD_PAGES
187
+#define MEMCHECK_DEFAULT32(mem, local_memory_size, a, t) \
188
+ WASM_RT_CHECK_BASE(mem);
189
+#else
190
+#if WASM_RT_USE_LOCAL_MEMORY_BASE_SIZE_FOR_THIS_MODULE
191
+#define MEMCHECK_DEFAULT32(mem, local_memory_size, a, t) \
192
+ WASM_RT_CHECK_BASE(mem); \
193
+ if (UNLIKELY(a + (uint64_t)sizeof(t) > local_memory_size)) \
194
+ TRAP(OOB);
195
+#else
196
+#define MEMCHECK_DEFAULT32(mem, local_memory_size, a, t) \
197
+ WASM_RT_CHECK_BASE(mem); \
198
+ if (UNLIKELY(a + (uint64_t)sizeof(t) > mem->size)) \
199
+ TRAP(OOB);
200
+#endif
201
+#endif
202
+
203
+// MEMCHECK_GENERAL can be used for any memory
204
+#define MEMCHECK_GENERAL(mem, a, t) \
205
+ WASM_RT_CHECK_BASE(mem); \
206
+ RANGE_CHECK(mem, a, sizeof(t));
207
+
208
+// When using guard pages, reads have to be immediately consumed so that OOB
209
+// trap checks are applied in the right place, and not optimized away. This is
210
+// done using FORCE_READ_INT/FORCE_READ_FLOAT
211
+#if WASM_RT_MEMCHECK_BOUNDS_CHECK || \
212
+ WASM_RT_NONCONFORMING_ALLOW_OOB_READ_ELIMINATION
213
+#define FORCE_READ_INT(var)
214
+#define FORCE_READ_FLOAT(var)
215
+#elif defined(__GNUC__) && WASM_RT_MEMCHECK_GUARD_PAGES
216
+#define FORCE_READ_INT(var) __asm__("" ::"r"(var))
217
+
218
+#if defined(__x86_64__) || defined(_M_X64)
219
+#define FORCE_READ_FLOAT_CONSTRAINT "x"
220
+#elif defined(__aarch64__) && defined(__ARM_FP) && ((__ARM_FP & 0x4) != 0)
221
+#define FORCE_READ_FLOAT_CONSTRAINT "w"
222
+#elif defined(__mips__) && defined(__clang__) && !defined(__mips_soft_float)
223
+// Clang before v18 uses hard floats which has a different constraint
224
+#define FORCE_READ_FLOAT_CONSTRAINT "f"
225
+#elif (defined(__powerpc__) || defined(__ppc__) || defined(__PPC__)) && \
226
+ !(defined(_SOFT_FLOAT) || defined(__NO_FPRS__))
227
+#define FORCE_READ_FLOAT_CONSTRAINT "f"
228
+#elif defined(__riscv) && defined(__riscv_flen) && (__riscv_flen >= 32)
229
+#define FORCE_READ_FLOAT_CONSTRAINT "f"
230
+#elif defined(__s390__) || defined(__s390x__)
231
+#define FORCE_READ_FLOAT_CONSTRAINT "f"
232
+#else
233
+#define FORCE_READ_FLOAT_CONSTRAINT "r"
234
+#endif
235
+
236
+#define FORCE_READ_FLOAT(var) __asm__("" ::FORCE_READ_FLOAT_CONSTRAINT(var))
237
+#else
238
+#error \
239
+ "Guard page mode for Wasm not supported on this platform because FORCE_READ_INT/FORCE_READ_FLOAT could not be instantiated." \
240
+ "Either enable specify -DWASM_RT_NONCONFORMING_ALLOW_OOB_READ_ELIMINATION=1 during compilation or use -DWASM_RT_MEMCHECK_BOUNDS_CHECK=1 to use bounds check mode"
241
+#endif
242
+
243
+static inline void load_data(u8* dest, const u8* src, size_t n) {
244
+ if (!n) {
245
+ return;
246
+ }
247
+#if WABT_BIG_ENDIAN
248
+ for (size_t i = 0; i < n; i++) {
249
+ dest[i] = src[n - i - 1];
250
+ }
251
+#else
252
+ wasm_rt_memcpy(dest, src, n);
253
+#endif
254
+}
255
+
256
+#define LOAD_DATA(m, o, i, s) \
257
+ do { \
258
+ RANGE_CHECK((&m), o, s); \
259
+ load_data(MEM_ADDR(&m, o, s), i, s); \
260
+ } while (0)
261
+
262
+#define DEF_MEM_CHECKS0(name, shared, mem_type, ret_kw, return_type) \
263
+ static inline return_type name##_default32( \
264
+ uint8_t* const wasm_rt_local_memory_base, \
265
+ uint64_t wasm_rt_local_memory_size, wasm_rt##shared##memory_t* mem, \
266
+ u64 addr) { \
267
+ MEMCHECK_DEFAULT32(mem, wasm_rt_local_memory_size, addr, mem_type); \
268
+ ret_kw name##_unchecked(wasm_rt_local_memory_base, mem, addr); \
269
+ } \
270
+ static inline return_type name(uint8_t* const wasm_rt_local_memory_base, \
271
+ uint64_t wasm_rt_local_memory_size, \
272
+ wasm_rt##shared##memory_t* mem, u64 addr) { \
273
+ MEMCHECK_GENERAL(mem, addr, mem_type); \
274
+ ret_kw name##_unchecked(wasm_rt_local_memory_base, mem, addr); \
275
+ }
276
+
277
+#define DEF_MEM_CHECKS1(name, shared, mem_type, ret_kw, return_type, \
278
+ val_type1) \
279
+ static inline return_type name##_default32( \
280
+ uint8_t* const wasm_rt_local_memory_base, \
281
+ uint64_t wasm_rt_local_memory_size, wasm_rt##shared##memory_t* mem, \
282
+ u64 addr, val_type1 val1) { \
283
+ MEMCHECK_DEFAULT32(mem, wasm_rt_local_memory_size, addr, mem_type); \
284
+ ret_kw name##_unchecked(wasm_rt_local_memory_base, mem, addr, val1); \
285
+ } \
286
+ static inline return_type name(uint8_t* const wasm_rt_local_memory_base, \
287
+ uint64_t wasm_rt_local_memory_size, \
288
+ wasm_rt##shared##memory_t* mem, u64 addr, \
289
+ val_type1 val1) { \
290
+ MEMCHECK_GENERAL(mem, addr, mem_type); \
291
+ ret_kw name##_unchecked(wasm_rt_local_memory_base, mem, addr, val1); \
292
+ }
293
+
294
+#define DEF_MEM_CHECKS2(name, shared, mem_type, ret_kw, return_type, \
295
+ val_type1, val_type2) \
296
+ static inline return_type name##_default32( \
297
+ uint8_t* const wasm_rt_local_memory_base, \
298
+ uint64_t wasm_rt_local_memory_size, wasm_rt##shared##memory_t* mem, \
299
+ u64 addr, val_type1 val1, val_type2 val2) { \
300
+ MEMCHECK_DEFAULT32(mem, wasm_rt_local_memory_size, addr, mem_type); \
301
+ ret_kw name##_unchecked(wasm_rt_local_memory_base, mem, addr, val1, val2); \
302
+ } \
303
+ static inline return_type name(uint8_t* const wasm_rt_local_memory_base, \
304
+ uint64_t wasm_rt_local_memory_size, \
305
+ wasm_rt##shared##memory_t* mem, u64 addr, \
306
+ val_type1 val1, val_type2 val2) { \
307
+ MEMCHECK_GENERAL(mem, addr, mem_type); \
308
+ ret_kw name##_unchecked(wasm_rt_local_memory_base, mem, addr, val1, val2); \
309
+ }
310
+
311
+#define DEFINE_LOAD(name, t1, t2, t3, force_read) \
312
+ static inline t3 name##_unchecked(uint8_t* const wasm_rt_local_memory_base, \
313
+ wasm_rt_memory_t* mem, u64 addr) { \
314
+ t1 result; \
315
+ wasm_rt_memcpy(&result, MEM_ADDR_MEMOP(mem, addr, sizeof(t1)), \
316
+ sizeof(t1)); \
317
+ t3 ret = (t3)(t2)result; \
318
+ force_read(ret); \
319
+ return ret; \
320
+ } \
321
+ DEF_MEM_CHECKS0(name, _, t1, return, t3)
322
+
323
+#define DEFINE_STORE(name, t1, t2) \
324
+ static inline void name##_unchecked( \
325
+ uint8_t* const wasm_rt_local_memory_base, wasm_rt_memory_t* mem, \
326
+ u64 addr, t2 value) { \
327
+ t1 wrapped = (t1)value; \
328
+ wasm_rt_memcpy(MEM_ADDR_MEMOP(mem, addr, sizeof(t1)), &wrapped, \
329
+ sizeof(t1)); \
330
+ } \
331
+ DEF_MEM_CHECKS1(name, _, t1, , void, t2)
332
+
333
+DEFINE_LOAD(i32_load, u32, u32, u32, FORCE_READ_INT)
334
+DEFINE_LOAD(i64_load, u64, u64, u64, FORCE_READ_INT)
335
+DEFINE_LOAD(f32_load, f32, f32, f32, FORCE_READ_FLOAT)
336
+DEFINE_LOAD(f64_load, f64, f64, f64, FORCE_READ_FLOAT)
337
+DEFINE_LOAD(i32_load8_s, s8, s32, u32, FORCE_READ_INT)
338
+DEFINE_LOAD(i64_load8_s, s8, s64, u64, FORCE_READ_INT)
339
+DEFINE_LOAD(i32_load8_u, u8, u32, u32, FORCE_READ_INT)
340
+DEFINE_LOAD(i64_load8_u, u8, u64, u64, FORCE_READ_INT)
341
+DEFINE_LOAD(i32_load16_s, s16, s32, u32, FORCE_READ_INT)
342
+DEFINE_LOAD(i64_load16_s, s16, s64, u64, FORCE_READ_INT)
343
+DEFINE_LOAD(i32_load16_u, u16, u32, u32, FORCE_READ_INT)
344
+DEFINE_LOAD(i64_load16_u, u16, u64, u64, FORCE_READ_INT)
345
+DEFINE_LOAD(i64_load32_s, s32, s64, u64, FORCE_READ_INT)
346
+DEFINE_LOAD(i64_load32_u, u32, u64, u64, FORCE_READ_INT)
347
+DEFINE_STORE(i32_store, u32, u32)
348
+DEFINE_STORE(i64_store, u64, u64)
349
+DEFINE_STORE(f32_store, f32, f32)
350
+DEFINE_STORE(f64_store, f64, f64)
351
+DEFINE_STORE(i32_store8, u8, u32)
352
+DEFINE_STORE(i32_store16, u16, u32)
353
+DEFINE_STORE(i64_store8, u8, u64)
354
+DEFINE_STORE(i64_store16, u16, u64)
355
+DEFINE_STORE(i64_store32, u32, u64)
356
+
357
+#if defined(_MSC_VER)
358
+
359
+// Adapted from
360
+// https://github.com/nemequ/portable-snippets/blob/master/builtin/builtin.h
361
+
362
+static inline int I64_CLZ(unsigned long long v) {
363
+ unsigned long r = 0;
364
+#if defined(_M_AMD64) || defined(_M_ARM)
365
+ if (_BitScanReverse64(&r, v)) {
366
+ return 63 - r;
367
+ }
368
+#else
369
+ if (_BitScanReverse(&r, (unsigned long)(v >> 32))) {
370
+ return 31 - r;
371
+ } else if (_BitScanReverse(&r, (unsigned long)v)) {
372
+ return 63 - r;
373
+ }
374
+#endif
375
+ return 64;
376
+}
377
+
378
+static inline int I32_CLZ(unsigned long v) {
379
+ unsigned long r = 0;
380
+ if (_BitScanReverse(&r, v)) {
381
+ return 31 - r;
382
+ }
383
+ return 32;
384
+}
385
+
386
+static inline int I64_CTZ(unsigned long long v) {
387
+ if (!v) {
388
+ return 64;
389
+ }
390
+ unsigned long r = 0;
391
+#if defined(_M_AMD64) || defined(_M_ARM)
392
+ _BitScanForward64(&r, v);
393
+ return (int)r;
394
+#else
395
+ if (_BitScanForward(&r, (unsigned int)(v))) {
396
+ return (int)(r);
397
+ }
398
+
399
+ _BitScanForward(&r, (unsigned int)(v >> 32));
400
+ return (int)(r + 32);
401
+#endif
402
+}
403
+
404
+static inline int I32_CTZ(unsigned long v) {
405
+ if (!v) {
406
+ return 32;
407
+ }
408
+ unsigned long r = 0;
409
+ _BitScanForward(&r, v);
410
+ return (int)r;
411
+}
412
+
413
+#define POPCOUNT_DEFINE_PORTABLE(f_n, T) \
414
+ static inline u32 f_n(T x) { \
415
+ x = x - ((x >> 1) & (T) ~(T)0 / 3); \
416
+ x = (x & (T) ~(T)0 / 15 * 3) + ((x >> 2) & (T) ~(T)0 / 15 * 3); \
417
+ x = (x + (x >> 4)) & (T) ~(T)0 / 255 * 15; \
418
+ return (T)(x * ((T) ~(T)0 / 255)) >> (sizeof(T) - 1) * 8; \
419
+ }
420
+
421
+POPCOUNT_DEFINE_PORTABLE(I32_POPCNT, u32)
422
+POPCOUNT_DEFINE_PORTABLE(I64_POPCNT, u64)
423
+
424
+#undef POPCOUNT_DEFINE_PORTABLE
425
+
426
+#else
427
+
428
+#define I32_CLZ(x) ((x) ? __builtin_clz(x) : 32)
429
+#define I64_CLZ(x) ((x) ? __builtin_clzll(x) : 64)
430
+#define I32_CTZ(x) ((x) ? __builtin_ctz(x) : 32)
431
+#define I64_CTZ(x) ((x) ? __builtin_ctzll(x) : 64)
432
+#define I32_POPCNT(x) (__builtin_popcount(x))
433
+#define I64_POPCNT(x) (__builtin_popcountll(x))
434
+
435
+#endif
436
+
437
+#define DIV_S(ut, min, x, y) \
438
+ ((UNLIKELY((y) == 0)) ? TRAP(DIV_BY_ZERO) \
439
+ : (UNLIKELY((x) == min && (y) == -1)) ? TRAP(INT_OVERFLOW) \
440
+ : (ut)((x) / (y)))
441
+
442
+#define REM_S(ut, min, x, y) \
443
+ ((UNLIKELY((y) == 0)) ? TRAP(DIV_BY_ZERO) \
444
+ : (UNLIKELY((x) == min && (y) == -1)) ? 0 \
445
+ : (ut)((x) % (y)))
446
+
447
+#define I32_DIV_S(x, y) DIV_S(u32, INT32_MIN, (s32)x, (s32)y)
448
+#define I64_DIV_S(x, y) DIV_S(u64, INT64_MIN, (s64)x, (s64)y)
449
+#define I32_REM_S(x, y) REM_S(u32, INT32_MIN, (s32)x, (s32)y)
450
+#define I64_REM_S(x, y) REM_S(u64, INT64_MIN, (s64)x, (s64)y)
451
+
452
+#define DIVREM_U(op, x, y) \
453
+ ((UNLIKELY((y) == 0)) ? TRAP(DIV_BY_ZERO) : ((x)op(y)))
454
+
455
+#define DIV_U(x, y) DIVREM_U(/, x, y)
456
+#define REM_U(x, y) DIVREM_U(%, x, y)
457
+
458
+#define ROTL(x, y, mask) \
459
+ (((x) << ((y) & (mask))) | ((x) >> (((mask) - (y) + 1) & (mask))))
460
+#define ROTR(x, y, mask) \
461
+ (((x) >> ((y) & (mask))) | ((x) << (((mask) - (y) + 1) & (mask))))
462
+
463
+#define I32_ROTL(x, y) ROTL(x, y, 31)
464
+#define I64_ROTL(x, y) ROTL(x, y, 63)
465
+#define I32_ROTR(x, y) ROTR(x, y, 31)
466
+#define I64_ROTR(x, y) ROTR(x, y, 63)
467
+
468
+#define FMIN(x, y) \
469
+ ((UNLIKELY((x) != (x))) ? NAN \
470
+ : (UNLIKELY((y) != (y))) ? NAN \
471
+ : (UNLIKELY((x) == 0 && (y) == 0)) ? (signbit(x) ? x : y) \
472
+ : (x < y) ? x \
473
+ : y)
474
+
475
+#define FMAX(x, y) \
476
+ ((UNLIKELY((x) != (x))) ? NAN \
477
+ : (UNLIKELY((y) != (y))) ? NAN \
478
+ : (UNLIKELY((x) == 0 && (y) == 0)) ? (signbit(x) ? y : x) \
479
+ : (x > y) ? x \
480
+ : y)
481
+
482
+#define TRUNC_S(ut, st, ft, min, minop, max, x) \
483
+ ((UNLIKELY((x) != (x))) ? TRAP(INVALID_CONVERSION) \
484
+ : (UNLIKELY(!((x)minop(min) && (x) < (max)))) ? TRAP(INT_OVERFLOW) \
485
+ : (ut)(st)(x))
486
+
487
+#define I32_TRUNC_S_F32(x) \
488
+ TRUNC_S(u32, s32, f32, (f32)INT32_MIN, >=, 2147483648.f, x)
489
+#define I64_TRUNC_S_F32(x) \
490
+ TRUNC_S(u64, s64, f32, (f32)INT64_MIN, >=, (f32)INT64_MAX, x)
491
+#define I32_TRUNC_S_F64(x) \
492
+ TRUNC_S(u32, s32, f64, -2147483649., >, 2147483648., x)
493
+#define I64_TRUNC_S_F64(x) \
494
+ TRUNC_S(u64, s64, f64, (f64)INT64_MIN, >=, (f64)INT64_MAX, x)
495
+
496
+#define TRUNC_U(ut, ft, max, x) \
497
+ ((UNLIKELY((x) != (x))) ? TRAP(INVALID_CONVERSION) \
498
+ : (UNLIKELY(!((x) > (ft) - 1 && (x) < (max)))) ? TRAP(INT_OVERFLOW) \
499
+ : (ut)(x))
500
+
501
+#define I32_TRUNC_U_F32(x) TRUNC_U(u32, f32, 4294967296.f, x)
502
+#define I64_TRUNC_U_F32(x) TRUNC_U(u64, f32, (f32)UINT64_MAX, x)
503
+#define I32_TRUNC_U_F64(x) TRUNC_U(u32, f64, 4294967296., x)
504
+#define I64_TRUNC_U_F64(x) TRUNC_U(u64, f64, (f64)UINT64_MAX, x)
505
+
506
+#define TRUNC_SAT_S(ut, st, ft, min, smin, minop, max, smax, x) \
507
+ ((UNLIKELY((x) != (x))) ? 0 \
508
+ : (UNLIKELY(!((x)minop(min)))) ? smin \
509
+ : (UNLIKELY(!((x) < (max)))) ? smax \
510
+ : (ut)(st)(x))
511
+
512
+#define I32_TRUNC_SAT_S_F32(x) \
513
+ TRUNC_SAT_S(u32, s32, f32, (f32)INT32_MIN, INT32_MIN, >=, 2147483648.f, \
514
+ INT32_MAX, x)
515
+#define I64_TRUNC_SAT_S_F32(x) \
516
+ TRUNC_SAT_S(u64, s64, f32, (f32)INT64_MIN, INT64_MIN, >=, (f32)INT64_MAX, \
517
+ INT64_MAX, x)
518
+#define I32_TRUNC_SAT_S_F64(x) \
519
+ TRUNC_SAT_S(u32, s32, f64, -2147483649., INT32_MIN, >, 2147483648., \
520
+ INT32_MAX, x)
521
+#define I64_TRUNC_SAT_S_F64(x) \
522
+ TRUNC_SAT_S(u64, s64, f64, (f64)INT64_MIN, INT64_MIN, >=, (f64)INT64_MAX, \
523
+ INT64_MAX, x)
524
+
525
+#define TRUNC_SAT_U(ut, ft, max, smax, x) \
526
+ ((UNLIKELY((x) != (x))) ? 0 \
527
+ : (UNLIKELY(!((x) > (ft) - 1))) ? 0 \
528
+ : (UNLIKELY(!((x) < (max)))) ? smax \
529
+ : (ut)(x))
530
+
531
+#define I32_TRUNC_SAT_U_F32(x) \
532
+ TRUNC_SAT_U(u32, f32, 4294967296.f, UINT32_MAX, x)
533
+#define I64_TRUNC_SAT_U_F32(x) \
534
+ TRUNC_SAT_U(u64, f32, (f32)UINT64_MAX, UINT64_MAX, x)
535
+#define I32_TRUNC_SAT_U_F64(x) TRUNC_SAT_U(u32, f64, 4294967296., UINT32_MAX, x)
536
+#define I64_TRUNC_SAT_U_F64(x) \
537
+ TRUNC_SAT_U(u64, f64, (f64)UINT64_MAX, UINT64_MAX, x)
538
+
539
+#define DEFINE_REINTERPRET(name, t1, t2) \
540
+ static inline t2 name(t1 x) { \
541
+ t2 result; \
542
+ wasm_rt_memcpy(&result, &x, sizeof(result)); \
543
+ return result; \
544
+ }
545
+
546
+DEFINE_REINTERPRET(f32_reinterpret_i32, u32, f32)
547
+DEFINE_REINTERPRET(i32_reinterpret_f32, f32, u32)
548
+DEFINE_REINTERPRET(f64_reinterpret_i64, u64, f64)
549
+DEFINE_REINTERPRET(i64_reinterpret_f64, f64, u64)
550
+
551
+static float quiet_nanf(float x) {
552
+ uint32_t tmp;
553
+ wasm_rt_memcpy(&tmp, &x, 4);
554
+ tmp |= 0x7fc00000lu;
555
+ wasm_rt_memcpy(&x, &tmp, 4);
556
+ return x;
557
+}
558
+
559
+static double quiet_nan(double x) {
560
+ uint64_t tmp;
561
+ wasm_rt_memcpy(&tmp, &x, 8);
562
+ tmp |= 0x7ff8000000000000llu;
563
+ wasm_rt_memcpy(&x, &tmp, 8);
564
+ return x;
565
+}
566
+
567
+static double wasm_quiet(double x) {
568
+ if (UNLIKELY(isnan(x))) {
569
+ return quiet_nan(x);
570
+ }
571
+ return x;
572
+}
573
+
574
+static float wasm_quietf(float x) {
575
+ if (UNLIKELY(isnan(x))) {
576
+ return quiet_nanf(x);
577
+ }
578
+ return x;
579
+}
580
+
581
+static double wasm_floor(double x) {
582
+ if (UNLIKELY(isnan(x))) {
583
+ return quiet_nan(x);
584
+ }
585
+ return floor(x);
586
+}
587
+
588
+static float wasm_floorf(float x) {
589
+ if (UNLIKELY(isnan(x))) {
590
+ return quiet_nanf(x);
591
+ }
592
+ return floorf(x);
593
+}
594
+
595
+static double wasm_ceil(double x) {
596
+ if (UNLIKELY(isnan(x))) {
597
+ return quiet_nan(x);
598
+ }
599
+ return ceil(x);
600
+}
601
+
602
+static float wasm_ceilf(float x) {
603
+ if (UNLIKELY(isnan(x))) {
604
+ return quiet_nanf(x);
605
+ }
606
+ return ceilf(x);
607
+}
608
+
609
+static double wasm_trunc(double x) {
610
+ if (UNLIKELY(isnan(x))) {
611
+ return quiet_nan(x);
612
+ }
613
+ return trunc(x);
614
+}
615
+
616
+static float wasm_truncf(float x) {
617
+ if (UNLIKELY(isnan(x))) {
618
+ return quiet_nanf(x);
619
+ }
620
+ return truncf(x);
621
+}
622
+
623
+static float wasm_nearbyintf(float x) {
624
+ if (UNLIKELY(isnan(x))) {
625
+ return quiet_nanf(x);
626
+ }
627
+ return nearbyintf(x);
628
+}
629
+
630
+static double wasm_nearbyint(double x) {
631
+ if (UNLIKELY(isnan(x))) {
632
+ return quiet_nan(x);
633
+ }
634
+ return nearbyint(x);
635
+}
636
+
637
+static float wasm_fabsf(float x) {
638
+ if (UNLIKELY(isnan(x))) {
639
+ uint32_t tmp;
640
+ wasm_rt_memcpy(&tmp, &x, 4);
641
+ tmp = tmp & ~(1UL << 31);
642
+ wasm_rt_memcpy(&x, &tmp, 4);
643
+ return x;
644
+ }
645
+ return fabsf(x);
646
+}
647
+
648
+static double wasm_fabs(double x) {
649
+ if (UNLIKELY(isnan(x))) {
650
+ uint64_t tmp;
651
+ wasm_rt_memcpy(&tmp, &x, 8);
652
+ tmp = tmp & ~(1ULL << 63);
653
+ wasm_rt_memcpy(&x, &tmp, 8);
654
+ return x;
655
+ }
656
+ return fabs(x);
657
+}
658
+
659
+static double wasm_sqrt(double x) {
660
+ if (UNLIKELY(isnan(x))) {
661
+ return quiet_nan(x);
662
+ }
663
+
664
+#if __has_builtin(__builtin_elementwise_sqrt)
665
+ // Fastest option: doesn't set errno
666
+ return __builtin_elementwise_sqrt(x);
667
+#elif __has_builtin(__builtin_sqrt)
668
+ // Optimized if -fno-math-errno is set
669
+ return __builtin_sqrt(x);
670
+#else
671
+ // Libc call. May/may not be optimized
672
+ return sqrt(x);
673
+#endif
674
+}
675
+
676
+static float wasm_sqrtf(float x) {
677
+ if (UNLIKELY(isnan(x))) {
678
+ return quiet_nanf(x);
679
+ }
680
+
681
+#if __has_builtin(__builtin_elementwise_sqrt)
682
+ // Fastest option: doesn't set errno
683
+ return __builtin_elementwise_sqrt(x);
684
+#elif __has_builtin(__builtin_sqrt)
685
+ // Optimized if -fno-math-errno is set
686
+ return __builtin_sqrtf(x);
687
+#else
688
+ // Libc call. May/may not be optimized
689
+ return sqrtf(x);
690
+#endif
691
+}
692
+
693
+static inline void memory_fill(wasm_rt_memory_t* mem, u64 d, u32 val, u64 n) {
694
+ RANGE_CHECK(mem, d, n);
695
+ memset(MEM_ADDR(mem, d, n), val, n);
696
+}
697
+
698
+static inline void memory_copy(wasm_rt_memory_t* dest,
699
+ const wasm_rt_memory_t* src,
700
+ u64 dest_addr,
701
+ u64 src_addr,
702
+ u64 n) {
703
+ RANGE_CHECK(dest, dest_addr, n);
704
+ RANGE_CHECK(src, src_addr, n);
705
+ memmove(MEM_ADDR(dest, dest_addr, n), MEM_ADDR(src, src_addr, n), n);
706
+}
707
+
708
+static inline void memory_init(wasm_rt_memory_t* dest,
709
+ const u8* src,
710
+ u32 src_size,
711
+ u64 dest_addr,
712
+ u32 src_addr,
713
+ u32 n) {
714
+ if (UNLIKELY(src_addr + (uint64_t)n > src_size))
715
+ TRAP(OOB);
716
+ LOAD_DATA((*dest), dest_addr, src + src_addr, n);
717
+}
718
+
719
+typedef enum { RefFunc, RefNull, GlobalGet } wasm_elem_segment_expr_type_t;
720
+
721
+typedef struct {
722
+ wasm_elem_segment_expr_type_t expr_type;
723
+ wasm_rt_func_type_t type;
724
+ wasm_rt_function_ptr_t func;
725
+ wasm_rt_tailcallee_t func_tailcallee;
726
+ size_t module_offset;
727
+} wasm_elem_segment_expr_t;
728
+
729
+static inline void funcref_table_init(wasm_rt_funcref_table_t* dest,
730
+ const wasm_elem_segment_expr_t* src,
731
+ u32 src_size,
732
+ u64 dest_addr,
733
+ u32 src_addr,
734
+ u32 n,
735
+ void* module_instance) {
736
+ if (UNLIKELY(src_addr + (uint64_t)n > src_size))
737
+ TRAP(OOB);
738
+ RANGE_CHECK(dest, dest_addr, n);
739
+ for (u32 i = 0; i < n; i++) {
740
+ const wasm_elem_segment_expr_t* const src_expr = &src[src_addr + i];
741
+ wasm_rt_funcref_t* const dest_val = &(dest->data[dest_addr + i]);
742
+ switch (src_expr->expr_type) {
743
+ case RefFunc:
744
+ *dest_val = (wasm_rt_funcref_t){
745
+ src_expr->type, src_expr->func, src_expr->func_tailcallee,
746
+ (char*)module_instance + src_expr->module_offset};
747
+ break;
748
+ case RefNull:
749
+ *dest_val = wasm_rt_funcref_null_value;
750
+ break;
751
+ case GlobalGet:
752
+ *dest_val = **(wasm_rt_funcref_t**)((char*)module_instance +
753
+ src_expr->module_offset);
754
+ break;
755
+ }
756
+ }
757
+}
758
+
759
+// Currently wasm2c only supports initializing externref tables with ref.null.
760
+static inline void externref_table_init(wasm_rt_externref_table_t* dest,
761
+ u32 src_size,
762
+ u64 dest_addr,
763
+ u32 src_addr,
764
+ u32 n) {
765
+ if (UNLIKELY(src_addr + (uint64_t)n > src_size))
766
+ TRAP(OOB);
767
+ RANGE_CHECK(dest, dest_addr, n);
768
+ for (u32 i = 0; i < n; i++) {
769
+ dest->data[dest_addr + i] = wasm_rt_externref_null_value;
770
+ }
771
+}
772
+
773
+#define DEFINE_TABLE_COPY(type) \
774
+ static inline void type##_table_copy(wasm_rt_##type##_table_t* dest, \
775
+ const wasm_rt_##type##_table_t* src, \
776
+ u64 dest_addr, u64 src_addr, u64 n) { \
777
+ RANGE_CHECK(dest, dest_addr, n); \
778
+ RANGE_CHECK(src, src_addr, n); \
779
+ memmove(dest->data + dest_addr, src->data + src_addr, \
780
+ n * sizeof(wasm_rt_##type##_t)); \
781
+ }
782
+
783
+DEFINE_TABLE_COPY(funcref)
784
+DEFINE_TABLE_COPY(externref)
785
+
786
+#define DEFINE_TABLE_GET(type) \
787
+ static inline wasm_rt_##type##_t type##_table_get( \
788
+ const wasm_rt_##type##_table_t* table, u64 i) { \
789
+ if (UNLIKELY(i >= table->size)) \
790
+ TRAP(OOB); \
791
+ return table->data[i]; \
792
+ }
793
+
794
+DEFINE_TABLE_GET(funcref)
795
+DEFINE_TABLE_GET(externref)
796
+
797
+#define DEFINE_TABLE_SET(type) \
798
+ static inline void type##_table_set(const wasm_rt_##type##_table_t* table, \
799
+ u64 i, const wasm_rt_##type##_t val) { \
800
+ if (UNLIKELY(i >= table->size)) \
801
+ TRAP(OOB); \
802
+ table->data[i] = val; \
803
+ }
804
+
805
+DEFINE_TABLE_SET(funcref)
806
+DEFINE_TABLE_SET(externref)
807
+
808
+#define DEFINE_TABLE_FILL(type) \
809
+ static inline void type##_table_fill(const wasm_rt_##type##_table_t* table, \
810
+ u64 d, const wasm_rt_##type##_t val, \
811
+ u64 n) { \
812
+ RANGE_CHECK(table, d, n); \
813
+ for (uint32_t i = d; i < d + n; i++) { \
814
+ table->data[i] = val; \
815
+ } \
816
+ }
817
+
818
+DEFINE_TABLE_FILL(funcref)
819
+DEFINE_TABLE_FILL(externref)
820
+
821
+#if defined(__GNUC__) || defined(__clang__)
822
+#define FUNC_TYPE_DECL_EXTERN_T(x) extern const char* const x
823
+#define FUNC_TYPE_EXTERN_T(x) const char* const x
824
+#define FUNC_TYPE_T(x) static const char* const x
825
+#else
826
+#define FUNC_TYPE_DECL_EXTERN_T(x) extern const char x[]
827
+#define FUNC_TYPE_EXTERN_T(x) const char x[]
828
+#define FUNC_TYPE_T(x) static const char x[]
829
+#endif
830
+
831
+#if (__STDC_VERSION__ < 201112L) && !defined(static_assert)
832
+#define static_assert(X) \
833
+ extern int(*assertion(void))[!!sizeof(struct { int x : (X) ? 2 : -1; })];
834
+#endif
835
+
836
+#ifdef _MSC_VER
837
+#define WEAK_FUNC_DECL(func, fallback) \
838
+ __pragma(comment(linker, "/alternatename:" #func "=" #fallback)) \
839
+ \
840
+ void \
841
+ fallback(void** instance_ptr, void* tail_call_stack, \
842
+ wasm_rt_tailcallee_t* next)
843
+#else
844
+#define WEAK_FUNC_DECL(func, fallback) \
845
+ __attribute__((weak)) void func(void** instance_ptr, void* tail_call_stack, \
846
+ wasm_rt_tailcallee_t* next)
847
+#endif
848
+
849
+#include <simde/wasm/simd128.h>
850
+
851
+#ifndef WASM_RT_SIMD_TYPE_DEFINED
852
+#define WASM_RT_SIMD_TYPE_DEFINED
853
+typedef simde_v128_t v128;
854
+#endif
855
+
856
+#if WASM_RT_MEMCHECK_BOUNDS_CHECK || \
857
+ WASM_RT_NONCONFORMING_ALLOW_OOB_READ_ELIMINATION
858
+#define SIMD_FORCE_READ(var)
859
+#elif defined(__GNUC__) && WASM_RT_MEMCHECK_GUARD_PAGES
860
+#if defined(__x86_64__)
861
+#define SIMD_FORCE_READ(var) __asm__("" ::"x"(var));
862
+#elif defined(__aarch64__)
863
+#define SIMD_FORCE_READ(var) __asm__("" ::"w"(var));
864
+#elif defined(__riscv)
865
+#define SIMD_FORCE_READ(var) __asm__("" ::"vr"(var));
866
+#elif defined(__s390x__)
867
+#define SIMD_FORCE_READ(var) __asm__("" ::"d"(var));
868
+#else
869
+#define SIMD_FORCE_READ(var) __asm__("" ::"f"(var));
870
+#endif
871
+#else
872
+#error \
873
+ "Guard page mode for Wasm not supported on this platform because SIMD_FORCE_READ could not be instantiated." \
874
+ "Either enable specify -DWASM_RT_NONCONFORMING_ALLOW_OOB_READ_ELIMINATION=1 during compilation or use -DWASM_RT_MEMCHECK_BOUNDS_CHECK=1 to use bounds check mode"
875
+#endif
876
+
877
+// The below SIMD operations copy to a local variable first as the
878
+// MEM_ADDR_MEMOP maybe segment pointers if WASM_RT_USE_SEGUE_FOR_THIS_MODULE is
879
+// defined and regular pointers otherwse. memcpy into the local works correctly
880
+// in both cases.
881
+#define DEFINE_SIMD_LOAD_FUNC(name, func, t) \
882
+ static inline v128 name##_unchecked( \
883
+ uint8_t* const wasm_rt_local_memory_base, wasm_rt_memory_t* mem, \
884
+ u64 addr) { \
885
+ t simd_mem_value; \
886
+ wasm_rt_memcpy(&simd_mem_value, MEM_ADDR_MEMOP(mem, addr, sizeof(t)), \
887
+ sizeof(t)); \
888
+ v128 result = func(&simd_mem_value); \
889
+ SIMD_FORCE_READ(result); \
890
+ return result; \
891
+ } \
892
+ DEF_MEM_CHECKS0(name, _, t, return, v128);
893
+
894
+#define DEFINE_SIMD_LOAD_LANE(name, func, t, lane) \
895
+ static inline v128 name##_unchecked( \
896
+ uint8_t* const wasm_rt_local_memory_base, wasm_rt_memory_t* mem, \
897
+ u64 addr, v128 vec) { \
898
+ t simd_mem_value; \
899
+ wasm_rt_memcpy(&simd_mem_value, MEM_ADDR_MEMOP(mem, addr, sizeof(t)), \
900
+ sizeof(t)); \
901
+ v128 result = func(&simd_mem_value, vec, lane); \
902
+ SIMD_FORCE_READ(result); \
903
+ return result; \
904
+ } \
905
+ DEF_MEM_CHECKS1(name, _, t, return, v128, v128);
906
+
907
+#define DEFINE_SIMD_STORE(name, t) \
908
+ static inline void name##_unchecked( \
909
+ uint8_t* const wasm_rt_local_memory_base, wasm_rt_memory_t* mem, \
910
+ u64 addr, v128 value) { \
911
+ t simd_mem_value; \
912
+ simde_wasm_v128_store(&simd_mem_value, value); \
913
+ wasm_rt_memcpy(MEM_ADDR_MEMOP(mem, addr, sizeof(t)), &simd_mem_value, \
914
+ sizeof(t)); \
915
+ } \
916
+ DEF_MEM_CHECKS1(name, _, t, , void, v128);
917
+
918
+#define DEFINE_SIMD_STORE_LANE(name, func, t, lane) \
919
+ static inline void name##_unchecked( \
920
+ uint8_t* const wasm_rt_local_memory_base, wasm_rt_memory_t* mem, \
921
+ u64 addr, v128 value) { \
922
+ t simd_mem_value; \
923
+ func(&simd_mem_value, value, lane); \
924
+ wasm_rt_memcpy(MEM_ADDR_MEMOP(mem, addr, sizeof(t)), &simd_mem_value, \
925
+ sizeof(t)); \
926
+ } \
927
+ DEF_MEM_CHECKS1(name, _, t, , void, v128);
928
+
929
+// clang-format off
930
+#if WABT_BIG_ENDIAN
931
+static inline v128 v128_impl_load32_zero(const void* a) {
932
+ return simde_wasm_i8x16_swizzle(
933
+ simde_wasm_v128_load32_zero(a),
934
+ simde_wasm_i8x16_const(12,13,14,15,8,9,10,11,4,5,6,7,0,1,2,3));
935
+}
936
+static inline v128 v128_impl_load64_zero(const void* a) {
937
+ return simde_wasm_i8x16_swizzle(
938
+ simde_wasm_v128_load64_zero(a),
939
+ simde_wasm_i8x16_const(8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7));
940
+}
941
+#else
942
+#define v128_impl_load32_zero simde_wasm_v128_load32_zero
943
+#define v128_impl_load64_zero simde_wasm_v128_load64_zero
944
+#endif
945
+
946
+DEFINE_SIMD_LOAD_FUNC(v128_load, simde_wasm_v128_load, v128)
947
+
948
+DEFINE_SIMD_LOAD_FUNC(v128_load8_splat, simde_wasm_v128_load8_splat, u8)
949
+DEFINE_SIMD_LOAD_FUNC(v128_load16_splat, simde_wasm_v128_load16_splat, u16)
950
+DEFINE_SIMD_LOAD_FUNC(v128_load32_splat, simde_wasm_v128_load32_splat, u32)
951
+DEFINE_SIMD_LOAD_FUNC(v128_load64_splat, simde_wasm_v128_load64_splat, u64)
952
+
953
+DEFINE_SIMD_LOAD_FUNC(i16x8_load8x8, simde_wasm_i16x8_load8x8, u64)
954
+DEFINE_SIMD_LOAD_FUNC(u16x8_load8x8, simde_wasm_u16x8_load8x8, u64)
955
+DEFINE_SIMD_LOAD_FUNC(i32x4_load16x4, simde_wasm_i32x4_load16x4, u64)
956
+DEFINE_SIMD_LOAD_FUNC(u32x4_load16x4, simde_wasm_u32x4_load16x4, u64)
957
+DEFINE_SIMD_LOAD_FUNC(i64x2_load32x2, simde_wasm_i64x2_load32x2, u64)
958
+DEFINE_SIMD_LOAD_FUNC(u64x2_load32x2, simde_wasm_u64x2_load32x2, u64)
959
+
960
+DEFINE_SIMD_LOAD_FUNC(v128_load32_zero, v128_impl_load32_zero, u32)
961
+DEFINE_SIMD_LOAD_FUNC(v128_load64_zero, v128_impl_load64_zero, u64)
962
+
963
+#if WABT_BIG_ENDIAN
964
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane0, simde_wasm_v128_load8_lane, u8, 15)
965
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane1, simde_wasm_v128_load8_lane, u8, 14)
966
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane2, simde_wasm_v128_load8_lane, u8, 13)
967
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane3, simde_wasm_v128_load8_lane, u8, 12)
968
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane4, simde_wasm_v128_load8_lane, u8, 11)
969
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane5, simde_wasm_v128_load8_lane, u8, 10)
970
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane6, simde_wasm_v128_load8_lane, u8, 9)
971
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane7, simde_wasm_v128_load8_lane, u8, 8)
972
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane8, simde_wasm_v128_load8_lane, u8, 7)
973
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane9, simde_wasm_v128_load8_lane, u8, 6)
974
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane10, simde_wasm_v128_load8_lane, u8, 5)
975
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane11, simde_wasm_v128_load8_lane, u8, 4)
976
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane12, simde_wasm_v128_load8_lane, u8, 3)
977
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane13, simde_wasm_v128_load8_lane, u8, 2)
978
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane14, simde_wasm_v128_load8_lane, u8, 1)
979
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane15, simde_wasm_v128_load8_lane, u8, 0)
980
+DEFINE_SIMD_LOAD_LANE(v128_load16_lane0, simde_wasm_v128_load16_lane, u16, 7)
981
+DEFINE_SIMD_LOAD_LANE(v128_load16_lane1, simde_wasm_v128_load16_lane, u16, 6)
982
+DEFINE_SIMD_LOAD_LANE(v128_load16_lane2, simde_wasm_v128_load16_lane, u16, 5)
983
+DEFINE_SIMD_LOAD_LANE(v128_load16_lane3, simde_wasm_v128_load16_lane, u16, 4)
984
+DEFINE_SIMD_LOAD_LANE(v128_load16_lane4, simde_wasm_v128_load16_lane, u16, 3)
985
+DEFINE_SIMD_LOAD_LANE(v128_load16_lane5, simde_wasm_v128_load16_lane, u16, 2)
986
+DEFINE_SIMD_LOAD_LANE(v128_load16_lane6, simde_wasm_v128_load16_lane, u16, 1)
987
+DEFINE_SIMD_LOAD_LANE(v128_load16_lane7, simde_wasm_v128_load16_lane, u16, 0)
988
+DEFINE_SIMD_LOAD_LANE(v128_load32_lane0, simde_wasm_v128_load32_lane, u32, 3)
989
+DEFINE_SIMD_LOAD_LANE(v128_load32_lane1, simde_wasm_v128_load32_lane, u32, 2)
990
+DEFINE_SIMD_LOAD_LANE(v128_load32_lane2, simde_wasm_v128_load32_lane, u32, 1)
991
+DEFINE_SIMD_LOAD_LANE(v128_load32_lane3, simde_wasm_v128_load32_lane, u32, 0)
992
+DEFINE_SIMD_LOAD_LANE(v128_load64_lane0, simde_wasm_v128_load64_lane, u64, 1)
993
+DEFINE_SIMD_LOAD_LANE(v128_load64_lane1, simde_wasm_v128_load64_lane, u64, 0)
994
+#else
995
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane0, simde_wasm_v128_load8_lane, u8, 0)
996
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane1, simde_wasm_v128_load8_lane, u8, 1)
997
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane2, simde_wasm_v128_load8_lane, u8, 2)
998
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane3, simde_wasm_v128_load8_lane, u8, 3)
999
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane4, simde_wasm_v128_load8_lane, u8, 4)
1000
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane5, simde_wasm_v128_load8_lane, u8, 5)
1001
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane6, simde_wasm_v128_load8_lane, u8, 6)
1002
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane7, simde_wasm_v128_load8_lane, u8, 7)
1003
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane8, simde_wasm_v128_load8_lane, u8, 8)
1004
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane9, simde_wasm_v128_load8_lane, u8, 9)
1005
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane10, simde_wasm_v128_load8_lane, u8, 10)
1006
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane11, simde_wasm_v128_load8_lane, u8, 11)
1007
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane12, simde_wasm_v128_load8_lane, u8, 12)
1008
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane13, simde_wasm_v128_load8_lane, u8, 13)
1009
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane14, simde_wasm_v128_load8_lane, u8, 14)
1010
+DEFINE_SIMD_LOAD_LANE(v128_load8_lane15, simde_wasm_v128_load8_lane, u8, 15)
1011
+DEFINE_SIMD_LOAD_LANE(v128_load16_lane0, simde_wasm_v128_load16_lane, u16, 0)
1012
+DEFINE_SIMD_LOAD_LANE(v128_load16_lane1, simde_wasm_v128_load16_lane, u16, 1)
1013
+DEFINE_SIMD_LOAD_LANE(v128_load16_lane2, simde_wasm_v128_load16_lane, u16, 2)
1014
+DEFINE_SIMD_LOAD_LANE(v128_load16_lane3, simde_wasm_v128_load16_lane, u16, 3)
1015
+DEFINE_SIMD_LOAD_LANE(v128_load16_lane4, simde_wasm_v128_load16_lane, u16, 4)
1016
+DEFINE_SIMD_LOAD_LANE(v128_load16_lane5, simde_wasm_v128_load16_lane, u16, 5)
1017
+DEFINE_SIMD_LOAD_LANE(v128_load16_lane6, simde_wasm_v128_load16_lane, u16, 6)
1018
+DEFINE_SIMD_LOAD_LANE(v128_load16_lane7, simde_wasm_v128_load16_lane, u16, 7)
1019
+DEFINE_SIMD_LOAD_LANE(v128_load32_lane0, simde_wasm_v128_load32_lane, u32, 0)
1020
+DEFINE_SIMD_LOAD_LANE(v128_load32_lane1, simde_wasm_v128_load32_lane, u32, 1)
1021
+DEFINE_SIMD_LOAD_LANE(v128_load32_lane2, simde_wasm_v128_load32_lane, u32, 2)
1022
+DEFINE_SIMD_LOAD_LANE(v128_load32_lane3, simde_wasm_v128_load32_lane, u32, 3)
1023
+DEFINE_SIMD_LOAD_LANE(v128_load64_lane0, simde_wasm_v128_load64_lane, u64, 0)
1024
+DEFINE_SIMD_LOAD_LANE(v128_load64_lane1, simde_wasm_v128_load64_lane, u64, 1)
1025
+#endif
1026
+
1027
+DEFINE_SIMD_STORE(v128_store, v128)
1028
+
1029
+#if WABT_BIG_ENDIAN
1030
+DEFINE_SIMD_STORE_LANE(v128_store8_lane0, simde_wasm_v128_store8_lane, u8, 15)
1031
+DEFINE_SIMD_STORE_LANE(v128_store8_lane1, simde_wasm_v128_store8_lane, u8, 14)
1032
+DEFINE_SIMD_STORE_LANE(v128_store8_lane2, simde_wasm_v128_store8_lane, u8, 13)
1033
+DEFINE_SIMD_STORE_LANE(v128_store8_lane3, simde_wasm_v128_store8_lane, u8, 12)
1034
+DEFINE_SIMD_STORE_LANE(v128_store8_lane4, simde_wasm_v128_store8_lane, u8, 11)
1035
+DEFINE_SIMD_STORE_LANE(v128_store8_lane5, simde_wasm_v128_store8_lane, u8, 10)
1036
+DEFINE_SIMD_STORE_LANE(v128_store8_lane6, simde_wasm_v128_store8_lane, u8, 9)
1037
+DEFINE_SIMD_STORE_LANE(v128_store8_lane7, simde_wasm_v128_store8_lane, u8, 8)
1038
+DEFINE_SIMD_STORE_LANE(v128_store8_lane8, simde_wasm_v128_store8_lane, u8, 7)
1039
+DEFINE_SIMD_STORE_LANE(v128_store8_lane9, simde_wasm_v128_store8_lane, u8, 6)
1040
+DEFINE_SIMD_STORE_LANE(v128_store8_lane10, simde_wasm_v128_store8_lane, u8, 5)
1041
+DEFINE_SIMD_STORE_LANE(v128_store8_lane11, simde_wasm_v128_store8_lane, u8, 4)
1042
+DEFINE_SIMD_STORE_LANE(v128_store8_lane12, simde_wasm_v128_store8_lane, u8, 3)
1043
+DEFINE_SIMD_STORE_LANE(v128_store8_lane13, simde_wasm_v128_store8_lane, u8, 2)
1044
+DEFINE_SIMD_STORE_LANE(v128_store8_lane14, simde_wasm_v128_store8_lane, u8, 1)
1045
+DEFINE_SIMD_STORE_LANE(v128_store8_lane15, simde_wasm_v128_store8_lane, u8, 0)
1046
+DEFINE_SIMD_STORE_LANE(v128_store16_lane0, simde_wasm_v128_store16_lane, u16, 7)
1047
+DEFINE_SIMD_STORE_LANE(v128_store16_lane1, simde_wasm_v128_store16_lane, u16, 6)
1048
+DEFINE_SIMD_STORE_LANE(v128_store16_lane2, simde_wasm_v128_store16_lane, u16, 5)
1049
+DEFINE_SIMD_STORE_LANE(v128_store16_lane3, simde_wasm_v128_store16_lane, u16, 4)
1050
+DEFINE_SIMD_STORE_LANE(v128_store16_lane4, simde_wasm_v128_store16_lane, u16, 3)
1051
+DEFINE_SIMD_STORE_LANE(v128_store16_lane5, simde_wasm_v128_store16_lane, u16, 2)
1052
+DEFINE_SIMD_STORE_LANE(v128_store16_lane6, simde_wasm_v128_store16_lane, u16, 1)
1053
+DEFINE_SIMD_STORE_LANE(v128_store16_lane7, simde_wasm_v128_store16_lane, u16, 0)
1054
+DEFINE_SIMD_STORE_LANE(v128_store32_lane0, simde_wasm_v128_store32_lane, u32, 3)
1055
+DEFINE_SIMD_STORE_LANE(v128_store32_lane1, simde_wasm_v128_store32_lane, u32, 2)
1056
+DEFINE_SIMD_STORE_LANE(v128_store32_lane2, simde_wasm_v128_store32_lane, u32, 1)
1057
+DEFINE_SIMD_STORE_LANE(v128_store32_lane3, simde_wasm_v128_store32_lane, u32, 0)
1058
+DEFINE_SIMD_STORE_LANE(v128_store64_lane0, simde_wasm_v128_store64_lane, u64, 1)
1059
+DEFINE_SIMD_STORE_LANE(v128_store64_lane1, simde_wasm_v128_store64_lane, u64, 0)
1060
+#else
1061
+DEFINE_SIMD_STORE_LANE(v128_store8_lane0, simde_wasm_v128_store8_lane, u8, 0)
1062
+DEFINE_SIMD_STORE_LANE(v128_store8_lane1, simde_wasm_v128_store8_lane, u8, 1)
1063
+DEFINE_SIMD_STORE_LANE(v128_store8_lane2, simde_wasm_v128_store8_lane, u8, 2)
1064
+DEFINE_SIMD_STORE_LANE(v128_store8_lane3, simde_wasm_v128_store8_lane, u8, 3)
1065
+DEFINE_SIMD_STORE_LANE(v128_store8_lane4, simde_wasm_v128_store8_lane, u8, 4)
1066
+DEFINE_SIMD_STORE_LANE(v128_store8_lane5, simde_wasm_v128_store8_lane, u8, 5)
1067
+DEFINE_SIMD_STORE_LANE(v128_store8_lane6, simde_wasm_v128_store8_lane, u8, 6)
1068
+DEFINE_SIMD_STORE_LANE(v128_store8_lane7, simde_wasm_v128_store8_lane, u8, 7)
1069
+DEFINE_SIMD_STORE_LANE(v128_store8_lane8, simde_wasm_v128_store8_lane, u8, 8)
1070
+DEFINE_SIMD_STORE_LANE(v128_store8_lane9, simde_wasm_v128_store8_lane, u8, 9)
1071
+DEFINE_SIMD_STORE_LANE(v128_store8_lane10, simde_wasm_v128_store8_lane, u8, 10)
1072
+DEFINE_SIMD_STORE_LANE(v128_store8_lane11, simde_wasm_v128_store8_lane, u8, 11)
1073
+DEFINE_SIMD_STORE_LANE(v128_store8_lane12, simde_wasm_v128_store8_lane, u8, 12)
1074
+DEFINE_SIMD_STORE_LANE(v128_store8_lane13, simde_wasm_v128_store8_lane, u8, 13)
1075
+DEFINE_SIMD_STORE_LANE(v128_store8_lane14, simde_wasm_v128_store8_lane, u8, 14)
1076
+DEFINE_SIMD_STORE_LANE(v128_store8_lane15, simde_wasm_v128_store8_lane, u8, 15)
1077
+DEFINE_SIMD_STORE_LANE(v128_store16_lane0, simde_wasm_v128_store16_lane, u16, 0)
1078
+DEFINE_SIMD_STORE_LANE(v128_store16_lane1, simde_wasm_v128_store16_lane, u16, 1)
1079
+DEFINE_SIMD_STORE_LANE(v128_store16_lane2, simde_wasm_v128_store16_lane, u16, 2)
1080
+DEFINE_SIMD_STORE_LANE(v128_store16_lane3, simde_wasm_v128_store16_lane, u16, 3)
1081
+DEFINE_SIMD_STORE_LANE(v128_store16_lane4, simde_wasm_v128_store16_lane, u16, 4)
1082
+DEFINE_SIMD_STORE_LANE(v128_store16_lane5, simde_wasm_v128_store16_lane, u16, 5)
1083
+DEFINE_SIMD_STORE_LANE(v128_store16_lane6, simde_wasm_v128_store16_lane, u16, 6)
1084
+DEFINE_SIMD_STORE_LANE(v128_store16_lane7, simde_wasm_v128_store16_lane, u16, 7)
1085
+DEFINE_SIMD_STORE_LANE(v128_store32_lane0, simde_wasm_v128_store32_lane, u32, 0)
1086
+DEFINE_SIMD_STORE_LANE(v128_store32_lane1, simde_wasm_v128_store32_lane, u32, 1)
1087
+DEFINE_SIMD_STORE_LANE(v128_store32_lane2, simde_wasm_v128_store32_lane, u32, 2)
1088
+DEFINE_SIMD_STORE_LANE(v128_store32_lane3, simde_wasm_v128_store32_lane, u32, 3)
1089
+DEFINE_SIMD_STORE_LANE(v128_store64_lane0, simde_wasm_v128_store64_lane, u64, 0)
1090
+DEFINE_SIMD_STORE_LANE(v128_store64_lane1, simde_wasm_v128_store64_lane, u64, 1)
1091
+#endif
1092
+
1093
+#if WABT_BIG_ENDIAN
1094
+#define v128_const(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) simde_wasm_i8x16_const(p,o,n,m,l,k,j,i,h,g,f,e,d,c,b,a)
1095
+#define v128_i8x16_extract_lane(v, l) simde_wasm_i8x16_extract_lane(v, 15-(l))
1096
+#define v128_u8x16_extract_lane(v, l) simde_wasm_u8x16_extract_lane(v, 15-(l))
1097
+#define v128_i16x8_extract_lane(v, l) simde_wasm_i16x8_extract_lane(v, 7-(l))
1098
+#define v128_u16x8_extract_lane(v, l) simde_wasm_u16x8_extract_lane(v, 7-(l))
1099
+#define v128_i32x4_extract_lane(v, l) simde_wasm_i32x4_extract_lane(v, 3-(l))
1100
+#define v128_i64x2_extract_lane(v, l) simde_wasm_i64x2_extract_lane(v, 1-(l))
1101
+#define v128_f32x4_extract_lane(v, l) simde_wasm_f32x4_extract_lane(v, 3-(l))
1102
+#define v128_f64x2_extract_lane(v, l) simde_wasm_f64x2_extract_lane(v, 1-(l))
1103
+#define v128_i8x16_replace_lane(v, l, x) simde_wasm_i8x16_replace_lane(v, 15-(l), x)
1104
+#define v128_u8x16_replace_lane(v, l, x) simde_wasm_u8x16_replace_lane(v, 15-(l), x)
1105
+#define v128_i16x8_replace_lane(v, l, x) simde_wasm_i16x8_replace_lane(v, 7-(l), x)
1106
+#define v128_u16x8_replace_lane(v, l, x) simde_wasm_u16x8_replace_lane(v, 7-(l), x)
1107
+#define v128_i32x4_replace_lane(v, l, x) simde_wasm_i32x4_replace_lane(v, 3-(l), x)
1108
+#define v128_i64x2_replace_lane(v, l, x) simde_wasm_i64x2_replace_lane(v, 1-(l), x)
1109
+#define v128_f32x4_replace_lane(v, l, x) simde_wasm_f32x4_replace_lane(v, 3-(l), x)
1110
+#define v128_f64x2_replace_lane(v, l, x) simde_wasm_f64x2_replace_lane(v, 1-(l), x)
1111
+#define v128_i8x16_bitmask(v) simde_wasm_i8x16_bitmask(simde_wasm_i8x16_swizzle(v, simde_wasm_i8x16_const(15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0)))
1112
+#define v128_i16x8_bitmask(v) simde_wasm_i16x8_bitmask(simde_wasm_i8x16_swizzle(v, simde_wasm_i8x16_const(14,15,12,13,10,11,8,9,6,7,4,5,2,3,0,1)))
1113
+#define v128_i32x4_bitmask(v) simde_wasm_i32x4_bitmask(simde_wasm_i8x16_swizzle(v, simde_wasm_i8x16_const(12,13,14,15,8,9,10,11,4,5,6,7,0,1,2,3)))
1114
+#define v128_i64x2_bitmask(v) simde_wasm_i64x2_bitmask(simde_wasm_i8x16_swizzle(v, simde_wasm_i8x16_const(8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7)))
1115
+#define v128_i8x16_swizzle(v1, v2) simde_wasm_i8x16_swizzle(v1, simde_wasm_v128_xor(v2, simde_wasm_i8x16_splat(15)))
1116
+#define v128_i8x16_shuffle(v1,v2,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) simde_wasm_i8x16_shuffle(v2,v1,31-(p),31-(o),31-(n),31-(m),31-(l),31-(k),31-(j),31-(i),31-(h),31-(g),31-(f),31-(e),31-(d),31-(c),31-(b),31-(a))
1117
+#define v128_i16x8_extmul_high_i8x16 simde_wasm_i16x8_extmul_low_i8x16
1118
+#define v128_u16x8_extmul_high_u8x16 simde_wasm_u16x8_extmul_low_u8x16
1119
+#define v128_i16x8_extmul_low_i8x16 simde_wasm_i16x8_extmul_high_i8x16
1120
+#define v128_u16x8_extmul_low_u8x16 simde_wasm_u16x8_extmul_high_u8x16
1121
+#define v128_i32x4_extmul_high_i16x8 simde_wasm_i32x4_extmul_low_i16x8
1122
+#define v128_u32x4_extmul_high_u16x8 simde_wasm_u32x4_extmul_low_u16x8
1123
+#define v128_i32x4_extmul_low_i16x8 simde_wasm_i32x4_extmul_high_i16x8
1124
+#define v128_u32x4_extmul_low_u16x8 simde_wasm_u32x4_extmul_high_u16x8
1125
+#define v128_i64x2_extmul_high_i32x4 simde_wasm_i64x2_extmul_low_i32x4
1126
+#define v128_u64x2_extmul_high_u32x4 simde_wasm_u64x2_extmul_low_u32x4
1127
+#define v128_i64x2_extmul_low_i32x4 simde_wasm_i64x2_extmul_high_i32x4
1128
+#define v128_u64x2_extmul_low_u32x4 simde_wasm_u64x2_extmul_high_u32x4
1129
+#define v128_i16x8_extend_high_i8x16 simde_wasm_i16x8_extend_low_i8x16
1130
+#define v128_u16x8_extend_high_u8x16 simde_wasm_u16x8_extend_low_u8x16
1131
+#define v128_i16x8_extend_low_i8x16 simde_wasm_i16x8_extend_high_i8x16
1132
+#define v128_u16x8_extend_low_u8x16 simde_wasm_u16x8_extend_high_u8x16
1133
+#define v128_i32x4_extend_high_i16x8 simde_wasm_i32x4_extend_low_i16x8
1134
+#define v128_u32x4_extend_high_u16x8 simde_wasm_u32x4_extend_low_u16x8
1135
+#define v128_i32x4_extend_low_i16x8 simde_wasm_i32x4_extend_high_i16x8
1136
+#define v128_u32x4_extend_low_u16x8 simde_wasm_u32x4_extend_high_u16x8
1137
+#define v128_i64x2_extend_high_i32x4 simde_wasm_i64x2_extend_low_i32x4
1138
+#define v128_u64x2_extend_high_u32x4 simde_wasm_u64x2_extend_low_u32x4
1139
+#define v128_i64x2_extend_low_i32x4 simde_wasm_i64x2_extend_high_i32x4
1140
+#define v128_u64x2_extend_low_u32x4 simde_wasm_u64x2_extend_high_u32x4
1141
+#define v128_i32x4_trunc_sat_f64x2_zero(a) \
1142
+ simde_wasm_i8x16_swizzle( \
1143
+ simde_wasm_i32x4_trunc_sat_f64x2_zero(a), \
1144
+ simde_wasm_i8x16_const(8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7))
1145
+#define v128_u32x4_trunc_sat_f64x2_zero(a) \
1146
+ simde_wasm_i8x16_swizzle( \
1147
+ simde_wasm_u32x4_trunc_sat_f64x2_zero(a), \
1148
+ simde_wasm_i8x16_const(8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7))
1149
+#define v128_i16x8_narrow_i32x4(a,b) simde_wasm_i16x8_narrow_i32x4(b,a)
1150
+#define v128_u16x8_narrow_i32x4(a,b) simde_wasm_u16x8_narrow_i32x4(b,a)
1151
+#define v128_i8x16_narrow_i16x8(a,b) simde_wasm_i8x16_narrow_i16x8(b,a)
1152
+#define v128_u8x16_narrow_i16x8(a,b) simde_wasm_u8x16_narrow_i16x8(b,a)
1153
+#define v128_f64x2_promote_low_f32x4(a) \
1154
+ simde_wasm_f64x2_promote_low_f32x4(simde_wasm_i8x16_swizzle( \
1155
+ a, \
1156
+ simde_wasm_i8x16_const(8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7)))
1157
+#define v128_f32x4_demote_f64x2_zero(a) \
1158
+ simde_wasm_i8x16_swizzle( \
1159
+ simde_wasm_f32x4_demote_f64x2_zero(a), \
1160
+ simde_wasm_i8x16_const(8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7))
1161
+#define v128_f64x2_convert_low_i32x4(a) \
1162
+ simde_wasm_f64x2_convert_low_i32x4(simde_wasm_i8x16_swizzle( \
1163
+ a, \
1164
+ simde_wasm_i8x16_const(8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7)))
1165
+#define v128_f64x2_convert_low_u32x4(a) \
1166
+ simde_wasm_f64x2_convert_low_u32x4(simde_wasm_i8x16_swizzle( \
1167
+ a, \
1168
+ simde_wasm_i8x16_const(8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7)))
1169
+#else
1170
+#define v128_const simde_wasm_i8x16_const
1171
+#define v128_i8x16_extract_lane simde_wasm_i8x16_extract_lane
1172
+#define v128_u8x16_extract_lane simde_wasm_u8x16_extract_lane
1173
+#define v128_i16x8_extract_lane simde_wasm_i16x8_extract_lane
1174
+#define v128_u16x8_extract_lane simde_wasm_u16x8_extract_lane
1175
+#define v128_i32x4_extract_lane simde_wasm_i32x4_extract_lane
1176
+#define v128_i64x2_extract_lane simde_wasm_i64x2_extract_lane
1177
+#define v128_f32x4_extract_lane simde_wasm_f32x4_extract_lane
1178
+#define v128_f64x2_extract_lane simde_wasm_f64x2_extract_lane
1179
+#define v128_i8x16_replace_lane simde_wasm_i8x16_replace_lane
1180
+#define v128_u8x16_replace_lane simde_wasm_u8x16_replace_lane
1181
+#define v128_i16x8_replace_lane simde_wasm_i16x8_replace_lane
1182
+#define v128_u16x8_replace_lane simde_wasm_u16x8_replace_lane
1183
+#define v128_i32x4_replace_lane simde_wasm_i32x4_replace_lane
1184
+#define v128_i64x2_replace_lane simde_wasm_i64x2_replace_lane
1185
+#define v128_f32x4_replace_lane simde_wasm_f32x4_replace_lane
1186
+#define v128_f64x2_replace_lane simde_wasm_f64x2_replace_lane
1187
+#define v128_i8x16_bitmask simde_wasm_i8x16_bitmask
1188
+#define v128_i16x8_bitmask simde_wasm_i16x8_bitmask
1189
+#define v128_i32x4_bitmask simde_wasm_i32x4_bitmask
1190
+#define v128_i64x2_bitmask simde_wasm_i64x2_bitmask
1191
+#define v128_i8x16_swizzle simde_wasm_i8x16_swizzle
1192
+#define v128_i8x16_shuffle simde_wasm_i8x16_shuffle
1193
+#define v128_i16x8_extmul_high_i8x16 simde_wasm_i16x8_extmul_high_i8x16
1194
+#define v128_u16x8_extmul_high_u8x16 simde_wasm_u16x8_extmul_high_u8x16
1195
+#define v128_i16x8_extmul_low_i8x16 simde_wasm_i16x8_extmul_low_i8x16
1196
+#define v128_u16x8_extmul_low_u8x16 simde_wasm_u16x8_extmul_low_u8x16
1197
+#define v128_i32x4_extmul_high_i16x8 simde_wasm_i32x4_extmul_high_i16x8
1198
+#define v128_u32x4_extmul_high_u16x8 simde_wasm_u32x4_extmul_high_u16x8
1199
+#define v128_i32x4_extmul_low_i16x8 simde_wasm_i32x4_extmul_low_i16x8
1200
+#define v128_u32x4_extmul_low_u16x8 simde_wasm_u32x4_extmul_low_u16x8
1201
+#define v128_i64x2_extmul_high_i32x4 simde_wasm_i64x2_extmul_high_i32x4
1202
+#define v128_u64x2_extmul_high_u32x4 simde_wasm_u64x2_extmul_high_u32x4
1203
+#define v128_i64x2_extmul_low_i32x4 simde_wasm_i64x2_extmul_low_i32x4
1204
+#define v128_u64x2_extmul_low_u32x4 simde_wasm_u64x2_extmul_low_u32x4
1205
+#define v128_i16x8_extend_high_i8x16 simde_wasm_i16x8_extend_high_i8x16
1206
+#define v128_u16x8_extend_high_u8x16 simde_wasm_u16x8_extend_high_u8x16
1207
+#define v128_i16x8_extend_low_i8x16 simde_wasm_i16x8_extend_low_i8x16
1208
+#define v128_u16x8_extend_low_u8x16 simde_wasm_u16x8_extend_low_u8x16
1209
+#define v128_i32x4_extend_high_i16x8 simde_wasm_i32x4_extend_high_i16x8
1210
+#define v128_u32x4_extend_high_u16x8 simde_wasm_u32x4_extend_high_u16x8
1211
+#define v128_i32x4_extend_low_i16x8 simde_wasm_i32x4_extend_low_i16x8
1212
+#define v128_u32x4_extend_low_u16x8 simde_wasm_u32x4_extend_low_u16x8
1213
+#define v128_i64x2_extend_high_i32x4 simde_wasm_i64x2_extend_high_i32x4
1214
+#define v128_u64x2_extend_high_u32x4 simde_wasm_u64x2_extend_high_u32x4
1215
+#define v128_i64x2_extend_low_i32x4 simde_wasm_i64x2_extend_low_i32x4
1216
+#define v128_u64x2_extend_low_u32x4 simde_wasm_u64x2_extend_low_u32x4
1217
+#define v128_i32x4_trunc_sat_f64x2_zero simde_wasm_i32x4_trunc_sat_f64x2_zero
1218
+#define v128_u32x4_trunc_sat_f64x2_zero simde_wasm_u32x4_trunc_sat_f64x2_zero
1219
+#define v128_i16x8_narrow_i32x4 simde_wasm_i16x8_narrow_i32x4
1220
+#define v128_u16x8_narrow_i32x4 simde_wasm_u16x8_narrow_i32x4
1221
+#define v128_i8x16_narrow_i16x8 simde_wasm_i8x16_narrow_i16x8
1222
+#define v128_u8x16_narrow_i16x8 simde_wasm_u8x16_narrow_i16x8
1223
+#define v128_f64x2_promote_low_f32x4 simde_wasm_f64x2_promote_low_f32x4
1224
+#define v128_f32x4_demote_f64x2_zero simde_wasm_f32x4_demote_f64x2_zero
1225
+#define v128_f64x2_convert_low_i32x4 simde_wasm_f64x2_convert_low_i32x4
1226
+#define v128_f64x2_convert_low_u32x4 simde_wasm_f64x2_convert_low_u32x4
1227
+#endif
1228
+// clang-format on
1229
+
1230
+
1231
+static u32 w2c_highlights_f2(w2c_highlights*, u32);
1232
+static void w2c_highlights_f3(w2c_highlights*);
1233
+static void w2c_highlights_f4(w2c_highlights*);
1234
+static u32 w2c_highlights_f5(w2c_highlights*, u32, u32, u32, u32, u32);
1235
+static void w2c_highlights_f6(w2c_highlights*);
1236
+static void w2c_highlights_f7(w2c_highlights*, u32);
1237
+static u32 w2c_highlights_f8(w2c_highlights*, u32, u32, u32, u32);
1238
+static u32 w2c_highlights_f9(w2c_highlights*, u32, u32);
1239
+static u32 w2c_highlights_f10(w2c_highlights*, u32, u32);
1240
+static void w2c_highlights_f11(w2c_highlights*, u32);
1241
+static void w2c_highlights_f12(w2c_highlights*, u32);
1242
+static void w2c_highlights_f13(w2c_highlights*, u32);
1243
+static void w2c_highlights_f14(w2c_highlights*, u32, u32);
1244
+static void w2c_highlights_f15(w2c_highlights*, u32);
1245
+static void w2c_highlights_f16(w2c_highlights*, u32, u32);
1246
+static void w2c_highlights_f17(w2c_highlights*, u32);
1247
+static void w2c_highlights_f18(w2c_highlights*);
1248
+static void w2c_highlights_f19(w2c_highlights*, u32, u32);
1249
+static u32 w2c_highlights_f20(w2c_highlights*, u32);
1250
+static void w2c_highlights_f21(w2c_highlights*, u32, u32, u32);
1251
+static void w2c_highlights_f22(w2c_highlights*, u32, u32);
1252
+static void w2c_highlights_f23(w2c_highlights*);
1253
+static u32 w2c_highlights_f24(w2c_highlights*, u32, u32);
1254
+static u32 w2c_highlights_f25(w2c_highlights*, u32);
1255
+static void w2c_highlights_f26(w2c_highlights*, u32);
1256
+static void w2c_highlights_f27(w2c_highlights*, u32, u32);
1257
+static void w2c_highlights_f28(w2c_highlights*, u32, u32, u32);
1258
+static void w2c_highlights_f29(w2c_highlights*, u32, u32);
1259
+static void w2c_highlights_f30(w2c_highlights*, u32, u32, u32);
1260
+static void w2c_highlights_f31(w2c_highlights*, u32, u32);
1261
+static void w2c_highlights_f32(w2c_highlights*, u32);
1262
+static void w2c_highlights_f33(w2c_highlights*);
1263
+static void w2c_highlights_f34(w2c_highlights*, u32);
1264
+static void w2c_highlights_f35(w2c_highlights*);
1265
+static void w2c_highlights_f36(w2c_highlights*);
1266
+static u32 w2c_highlights_f37(w2c_highlights*);
1267
+static void w2c_highlights_f38(w2c_highlights*);
1268
+static void w2c_highlights_f39(w2c_highlights*);
1269
+static void w2c_highlights_f40(w2c_highlights*, u32);
1270
+static void w2c_highlights_f41(w2c_highlights*, u32);
1271
+static void w2c_highlights_f42(w2c_highlights*, u32, u32);
1272
+static u32 w2c_highlights_f43(w2c_highlights*, u32);
1273
+static u32 w2c_highlights_f44(w2c_highlights*, u32);
1274
+static u32 w2c_highlights_f45(w2c_highlights*, u32);
1275
+static u32 w2c_highlights_f46(w2c_highlights*, u32);
1276
+static u32 w2c_highlights_f47(w2c_highlights*, u32);
1277
+static void w2c_highlights_f48(w2c_highlights*);
1278
+static void w2c_highlights_f49(w2c_highlights*, u32);
1279
+static void w2c_highlights_f50(w2c_highlights*, u32);
1280
+static u32 w2c_highlights_f51(w2c_highlights*, u32);
1281
+static u32 w2c_highlights_f52(w2c_highlights*, u32, u32, u32, u32);
1282
+static void w2c_highlights_f53(w2c_highlights*, u32, u32, u32);
1283
+static u32 w2c_highlights_f54(w2c_highlights*, u32, u32, u32, u32);
1284
+static void w2c_highlights_f55(w2c_highlights*, u32, u32, u32);
1285
+static u32 w2c_highlights_f56(w2c_highlights*, u32, u32, u32, u32);
1286
+static u32 w2c_highlights_f57(w2c_highlights*);
1287
+static u32 w2c_highlights_f58(w2c_highlights*, u32);
1288
+static u32 w2c_highlights_f59(w2c_highlights*, u32);
1289
+static void w2c_highlights_f60(w2c_highlights*, u32, u32);
1290
+static void w2c_highlights_f61(w2c_highlights*, u32, u32);
1291
+static void w2c_highlights_f62(w2c_highlights*, u32, u32, u32);
1292
+static void w2c_highlights_f63(w2c_highlights*, u32, u32, u32);
1293
+static void w2c_highlights_f64(w2c_highlights*, u32, u32, u32, u32);
1294
+static u32 w2c_highlights_f65(w2c_highlights*, u32);
1295
+static u32 w2c_highlights_f66(w2c_highlights*, u32, u32);
1296
+static void w2c_highlights_f67(w2c_highlights*, u32, u32, u32, u32);
1297
+static void w2c_highlights_f68(w2c_highlights*, u32);
1298
+static u32 w2c_highlights_f69(w2c_highlights*);
1299
+static u32 w2c_highlights_f70(w2c_highlights*, u32, u32, u32);
1300
+static void w2c_highlights_f71(w2c_highlights*, u32, u32, u32);
1301
+static u32 w2c_highlights_f72(w2c_highlights*);
1302
+static u32 w2c_highlights_f73(w2c_highlights*, u32);
1303
+static u32 w2c_highlights_f74(w2c_highlights*, u32, u32);
1304
+static u32 w2c_highlights_f75(w2c_highlights*, u32, u32, u32, u32, u32);
1305
+static u32 w2c_highlights_f76(w2c_highlights*, u32, u32, u32, u32, u32);
1306
+static u32 w2c_highlights_f77(w2c_highlights*, u32, u32);
1307
+static u32 w2c_highlights_f78(w2c_highlights*, u32, u32, u32);
1308
+static u32 w2c_highlights_f79(w2c_highlights*, u32, u32);
1309
+static u32 w2c_highlights_f80(w2c_highlights*, u32, u32);
1310
+static u32 w2c_highlights_f81(w2c_highlights*, u32, u32);
1311
+static u32 w2c_highlights_f82(w2c_highlights*, u32, u32);
1312
+static u32 w2c_highlights_f83(w2c_highlights*, u32);
1313
+static u32 w2c_highlights_f84(w2c_highlights*, u32);
1314
+static u32 w2c_highlights_f85(w2c_highlights*, u32, u32, u32);
1315
+static u32 w2c_highlights_f86(w2c_highlights*, u32);
1316
+static void w2c_highlights_f87(w2c_highlights*);
1317
+static void w2c_highlights_f88(w2c_highlights*);
1318
+static u32 w2c_highlights_f89(w2c_highlights*, u32, u32);
1319
+static u32 w2c_highlights_f90(w2c_highlights*, u32, u32);
1320
+static void w2c_highlights_f91(w2c_highlights*);
1321
+static void w2c_highlights_f92(w2c_highlights*);
1322
+static void w2c_highlights_f93(w2c_highlights*);
1323
+static void w2c_highlights_f94(w2c_highlights*);
1324
+static u32 w2c_highlights_f95(w2c_highlights*, u32);
1325
+static u32 w2c_highlights_f96(w2c_highlights*, u32);
1326
+static void w2c_highlights_f97(w2c_highlights*);
1327
+static u32 w2c_highlights_f98(w2c_highlights*, u32, u32);
1328
+static void w2c_highlights_f99(w2c_highlights*, u32, u32, u32, u32);
1329
+static u32 w2c_highlights_f100(w2c_highlights*, u32, u32, u32);
1330
+static u32 w2c_highlights_f101(w2c_highlights*, u32);
1331
+static void w2c_highlights_f102(w2c_highlights*);
1332
+static u32 w2c_highlights_f103(w2c_highlights*, u32, u32);
1333
+static u32 w2c_highlights_f104(w2c_highlights*, u32, u32);
1334
+static u32 w2c_highlights_f105(w2c_highlights*);
1335
+static void w2c_highlights_f106(w2c_highlights*, u32);
1336
+static void w2c_highlights_f107(w2c_highlights*, u32, u32, u32);
1337
+static u32 w2c_highlights_f108(w2c_highlights*, u32);
1338
+static u32 w2c_highlights_f109(w2c_highlights*, u32);
1339
+static u32 w2c_highlights_f110(w2c_highlights*, u32, u32, u32);
1340
+static u32 w2c_highlights_f111(w2c_highlights*, u32, u32, u32);
1341
+static u32 w2c_highlights_f112(w2c_highlights*, u32, u32, u32, u32);
1342
+static void w2c_highlights_f113(w2c_highlights*, u32);
1343
+static void w2c_highlights_f114(w2c_highlights*, u32);
1344
+static void w2c_highlights_f115(w2c_highlights*, u32);
1345
+static void w2c_highlights_f116(w2c_highlights*, u32);
1346
+static void w2c_highlights_f117(w2c_highlights*, u32);
1347
+static void w2c_highlights_f118(w2c_highlights*);
1348
+static u32 w2c_highlights_f119(w2c_highlights*, u32, u32);
1349
+static u32 w2c_highlights_f120(w2c_highlights*, u32);
1350
+static u32 w2c_highlights_f121(w2c_highlights*, u32);
1351
+static u32 w2c_highlights_f122(w2c_highlights*, u32);
1352
+static u32 w2c_highlights_f123(w2c_highlights*, u32, u32, u32);
1353
+static void w2c_highlights_f124(w2c_highlights*, u32, u32);
1354
+static void w2c_highlights_f125(w2c_highlights*, u32, u32);
1355
+static void w2c_highlights_f126(w2c_highlights*, u32);
1356
+static u32 w2c_highlights_f127(w2c_highlights*, u32, u32);
1357
+static void w2c_highlights_f128(w2c_highlights*);
1358
+static u32 w2c_highlights_f129(w2c_highlights*, u32, u32);
1359
+static u32 w2c_highlights_f130(w2c_highlights*);
1360
+static u32 w2c_highlights_f131(w2c_highlights*);
1361
+static void w2c_highlights_f132(w2c_highlights*, u32);
1362
+static void w2c_highlights_f133(w2c_highlights*);
1363
+static u32 w2c_highlights_f134(w2c_highlights*, u32);
1364
+static u32 w2c_highlights_f135(w2c_highlights*, u32, u32);
1365
+static void w2c_highlights_f136(w2c_highlights*);
1366
+static u32 w2c_highlights_f137(w2c_highlights*, u32);
1367
+static u32 w2c_highlights_f138(w2c_highlights*, u32);
1368
+static u32 w2c_highlights_f139(w2c_highlights*, u32);
1369
+static u32 w2c_highlights_f140(w2c_highlights*);
1370
+static u32 w2c_highlights_f141(w2c_highlights*, u32);
1371
+static u32 w2c_highlights_f142(w2c_highlights*, u32);
1372
+static u32 w2c_highlights_f143(w2c_highlights*);
1373
+static u32 w2c_highlights_f144(w2c_highlights*, u32);
1374
+static void w2c_highlights_f145(w2c_highlights*, u32, u32, u32);
1375
+static u32 w2c_highlights_f146(w2c_highlights*, u32, u32);
1376
+static void w2c_highlights_f147(w2c_highlights*, u32, u32, u32, u32, u32);
1377
+static void w2c_highlights_f148(w2c_highlights*, u32, u32, u32);
1378
+static u32 w2c_highlights_f149(w2c_highlights*, u32, u32);
1379
+static u32 w2c_highlights_f150(w2c_highlights*, u32, u32);
1380
+static void w2c_highlights_f151(w2c_highlights*);
1381
+static void w2c_highlights_f152(w2c_highlights*, u32);
1382
+static void w2c_highlights_f153(w2c_highlights*, u32, u32);
1383
+static u32 w2c_highlights_f154(w2c_highlights*);
1384
+static u32 w2c_highlights_f155(w2c_highlights*);
1385
+static u32 w2c_highlights_f156(w2c_highlights*);
1386
+static void w2c_highlights_f157(w2c_highlights*, u32);
1387
+static void w2c_highlights_f158(w2c_highlights*, u32);
1388
+static u32 w2c_highlights_f159(w2c_highlights*, u32);
1389
+static void w2c_highlights_f160(w2c_highlights*);
1390
+static void w2c_highlights_f161(w2c_highlights*, u32, u32, u32);
1391
+static void w2c_highlights_f162(w2c_highlights*, u32, u32);
1392
+static u32 w2c_highlights_f163(w2c_highlights*, u32);
1393
+static u32 w2c_highlights_f164(w2c_highlights*, u32);
1394
+static u32 w2c_highlights_f165(w2c_highlights*, u32);
1395
+static u32 w2c_highlights_f166(w2c_highlights*, u32);
1396
+static u32 w2c_highlights_f167(w2c_highlights*, u32);
1397
+static u32 w2c_highlights_f168(w2c_highlights*);
1398
+static void w2c_highlights_f169(w2c_highlights*);
1399
+static u32 w2c_highlights_f170(w2c_highlights*);
1400
+static u32 w2c_highlights_f171(w2c_highlights*, u32);
1401
+static void w2c_highlights_f172(w2c_highlights*, u32);
1402
+static void w2c_highlights_f173(w2c_highlights*);
1403
+static u32 w2c_highlights_f174(w2c_highlights*, u32);
1404
+static u32 w2c_highlights_f175(w2c_highlights*, u32, u32);
1405
+static u32 w2c_highlights_f176(w2c_highlights*, u32);
1406
+static u32 w2c_highlights_f177(w2c_highlights*, u32);
1407
+static u32 w2c_highlights_f178(w2c_highlights*, u32);
1408
+static u32 w2c_highlights_f179(w2c_highlights*, u32, u32, u32, u32, u32);
1409
+static void w2c_highlights_f180(w2c_highlights*);
1410
+static u64 w2c_highlights_f181(w2c_highlights*, u32, u32);
1411
+static u32 w2c_highlights_f182(w2c_highlights*, u32);
1412
+static u32 w2c_highlights_f183(w2c_highlights*, u32, u32);
1413
+static u32 w2c_highlights_f184(w2c_highlights*, u32, u32);
1414
+static u32 w2c_highlights_f185(w2c_highlights*, u32, u32);
1415
+static u32 w2c_highlights_f186(w2c_highlights*, u32);
1416
+static void w2c_highlights_f187(w2c_highlights*, u32, u32);
1417
+static void w2c_highlights_f188(w2c_highlights*);
1418
+static void w2c_highlights_f189(w2c_highlights*);
1419
+static void w2c_highlights_f190(w2c_highlights*, u32);
1420
+static void w2c_highlights_f191(w2c_highlights*, u32);
1421
+static void w2c_highlights_f192(w2c_highlights*, u32, u32);
1422
+static void w2c_highlights_f193(w2c_highlights*);
1423
+static void w2c_highlights_f194(w2c_highlights*, u32);
1424
+static u32 w2c_highlights_f195(w2c_highlights*, u32, u32, u32, u32);
1425
+static u32 w2c_highlights_f196(w2c_highlights*, u32);
1426
+static u32 w2c_highlights_f197(w2c_highlights*, u32);
1427
+static u32 w2c_highlights_f198(w2c_highlights*, u32, u32);
1428
+static u32 w2c_highlights_f199(w2c_highlights*);
1429
+static u32 w2c_highlights_f200(w2c_highlights*, u32, u32);
1430
+static void w2c_highlights_f201(w2c_highlights*, u32);
1431
+static void w2c_highlights_f202(w2c_highlights*);
1432
+static void w2c_highlights_f203(w2c_highlights*);
1433
+static u32 w2c_highlights_f204(w2c_highlights*, u32);
1434
+static u32 w2c_highlights_f205(w2c_highlights*, u32);
1435
+static u32 w2c_highlights_f206(w2c_highlights*);
1436
+static u32 w2c_highlights_f207(w2c_highlights*, u32);
1437
+static void w2c_highlights_f208(w2c_highlights*, u32);
1438
+static void w2c_highlights_f209(w2c_highlights*);
1439
+static u32 w2c_highlights_f210(w2c_highlights*, u32);
1440
+static u32 w2c_highlights_f211(w2c_highlights*);
1441
+static void w2c_highlights_f212(w2c_highlights*, u32, u32, u32);
1442
+static void w2c_highlights_f213(w2c_highlights*);
1443
+static void w2c_highlights_f214(w2c_highlights*, u32, u32, u32, u32);
1444
+static u32 w2c_highlights_f215(w2c_highlights*, u32, u32, u32);
1445
+static void w2c_highlights_f216(w2c_highlights*, u32, u32, u32, u32, u32);
1446
+static void w2c_highlights_f217(w2c_highlights*, u32);
1447
+static u32 w2c_highlights_f218(w2c_highlights*, u32);
1448
+static u32 w2c_highlights_f219(w2c_highlights*, u32, u32);
1449
+static u32 w2c_highlights_f220(w2c_highlights*, u32, u32);
1450
+static u32 w2c_highlights_f221(w2c_highlights*, u32);
1451
+static u32 w2c_highlights_f222(w2c_highlights*, u32, u32);
1452
+static u32 w2c_highlights_f223(w2c_highlights*, u32, u32, u32, u32, u32);
1453
+static void w2c_highlights_f224(w2c_highlights*);
1454
+static u32 w2c_highlights_f225(w2c_highlights*);
1455
+static u32 w2c_highlights_f226(w2c_highlights*, u32, u32);
1456
+static void w2c_highlights_f227(w2c_highlights*, u32, u32, u32);
1457
+static void w2c_highlights_f228(w2c_highlights*, u32, u32);
1458
+static void w2c_highlights_f229(w2c_highlights*);
1459
+static void w2c_highlights_f230(w2c_highlights*);
1460
+static void w2c_highlights_f231(w2c_highlights*, u32, u32, u32);
1461
+static void w2c_highlights_f232(w2c_highlights*);
1462
+static u32 w2c_highlights_f233(w2c_highlights*, u32);
1463
+static u32 w2c_highlights_f234(w2c_highlights*);
1464
+static u32 w2c_highlights_f235(w2c_highlights*, u32);
1465
+static u32 w2c_highlights_f236(w2c_highlights*, u32);
1466
+static u32 w2c_highlights_f237(w2c_highlights*, u32, u32, u32);
1467
+static void w2c_highlights_f238(w2c_highlights*);
1468
+static void w2c_highlights_f239(w2c_highlights*);
1469
+static u32 w2c_highlights_f240(w2c_highlights*, u32, u32);
1470
+static u32 w2c_highlights_f241(w2c_highlights*, u32);
1471
+static void w2c_highlights_f242(w2c_highlights*);
1472
+static u32 w2c_highlights_f243(w2c_highlights*, u32, u32, u32);
1473
+static u32 w2c_highlights_f244(w2c_highlights*, u32);
1474
+static void w2c_highlights_f245(w2c_highlights*);
1475
+static u32 w2c_highlights_f246(w2c_highlights*, u32);
1476
+static void w2c_highlights_f247(w2c_highlights*);
1477
+static u32 w2c_highlights_f248(w2c_highlights*, u32, u32, u32);
1478
+static void w2c_highlights_f249(w2c_highlights*);
1479
+static u32 w2c_highlights_f250(w2c_highlights*, u32);
1480
+static void w2c_highlights_f251(w2c_highlights*, u32, u32);
1481
+static u32 w2c_highlights_f252(w2c_highlights*, u32);
1482
+static void w2c_highlights_f253(w2c_highlights*);
1483
+static u32 w2c_highlights_f254(w2c_highlights*, u32);
1484
+static u32 w2c_highlights_f255(w2c_highlights*, u32);
1485
+static void w2c_highlights_f256(w2c_highlights*);
1486
+static u32 w2c_highlights_f257(w2c_highlights*, u32);
1487
+static void w2c_highlights_f258(w2c_highlights*);
1488
+static void w2c_highlights_f259(w2c_highlights*, u32);
1489
+static void w2c_highlights_f260(w2c_highlights*);
1490
+static void w2c_highlights_f261(w2c_highlights*);
1491
+static void w2c_highlights_f262(w2c_highlights*);
1492
+static u32 w2c_highlights_f263(w2c_highlights*, u32, u32);
1493
+static u32 w2c_highlights_f264(w2c_highlights*, u32, u32);
1494
+static void w2c_highlights_f265(w2c_highlights*);
1495
+static u32 w2c_highlights_f266(w2c_highlights*, u32, u32);
1496
+static u32 w2c_highlights_f267(w2c_highlights*, u32, u32, u32, u32);
1497
+static u32 w2c_highlights_f268(w2c_highlights*);
1498
+static u32 w2c_highlights_f269(w2c_highlights*, u32);
1499
+static u32 w2c_highlights_f270(w2c_highlights*, u32);
1500
+static void w2c_highlights_f271(w2c_highlights*);
1501
+static u32 w2c_highlights_f272(w2c_highlights*, u32);
1502
+static u32 w2c_highlights_f273(w2c_highlights*, u32);
1503
+static void w2c_highlights_f274(w2c_highlights*);
1504
+static void w2c_highlights_f275(w2c_highlights*);
1505
+static u32 w2c_highlights_f276(w2c_highlights*, u32);
1506
+static void w2c_highlights_f277(w2c_highlights*);
1507
+static u32 w2c_highlights_f278(w2c_highlights*, u32);
1508
+static void w2c_highlights_f279(w2c_highlights*);
1509
+static void w2c_highlights_f280(w2c_highlights*);
1510
+static void w2c_highlights_f281(w2c_highlights*);
1511
+static u32 w2c_highlights_f282(w2c_highlights*, u32, u32);
1512
+static u32 w2c_highlights_f283(w2c_highlights*, u32);
1513
+static u32 w2c_highlights_f284(w2c_highlights*, u32);
1514
+static void w2c_highlights_f285(w2c_highlights*);
1515
+static void w2c_highlights_f286(w2c_highlights*);
1516
+static u32 w2c_highlights_f287(w2c_highlights*, u32);
1517
+static u32 w2c_highlights_f288(w2c_highlights*, u32);
1518
+static void w2c_highlights_f289(w2c_highlights*, u32, u32, u32);
1519
+static u32 w2c_highlights_f290(w2c_highlights*, u32);
1520
+static u32 w2c_highlights_f291(w2c_highlights*, u32, u32);
1521
+static void w2c_highlights_f292(w2c_highlights*);
1522
+static u32 w2c_highlights_f293(w2c_highlights*, u32, u32, u32, u32, u32, u32, u32, u32);
1523
+static void w2c_highlights_f294(w2c_highlights*, u32, u32, u32, u32);
1524
+static void w2c_highlights_f295(w2c_highlights*);
1525
+static u32 w2c_highlights_f296(w2c_highlights*, u32, u32);
1526
+static void w2c_highlights_f297(w2c_highlights*);
1527
+static void w2c_highlights_f298(w2c_highlights*);
1528
+static void w2c_highlights_f299(w2c_highlights*);
1529
+static void w2c_highlights_f300(w2c_highlights*, u32);
1530
+static void w2c_highlights_f301(w2c_highlights*);
1531
+static u32 w2c_highlights_f302(w2c_highlights*, u32);
1532
+static void w2c_highlights_f303(w2c_highlights*);
1533
+static u32 w2c_highlights_f304(w2c_highlights*, u32);
1534
+static void w2c_highlights_f305(w2c_highlights*);
1535
+static void w2c_highlights_f306(w2c_highlights*);
1536
+static u32 w2c_highlights_f307(w2c_highlights*, u32);
1537
+static void w2c_highlights_f308(w2c_highlights*);
1538
+static u32 w2c_highlights_f309(w2c_highlights*, u32);
1539
+static void w2c_highlights_f310(w2c_highlights*);
1540
+static void w2c_highlights_f311(w2c_highlights*);
1541
+static void w2c_highlights_f312(w2c_highlights*);
1542
+static void w2c_highlights_f313(w2c_highlights*);
1543
+static void w2c_highlights_f314(w2c_highlights*);
1544
+static void w2c_highlights_f315(w2c_highlights*);
1545
+static void w2c_highlights_f316(w2c_highlights*, u32);
1546
+static u32 w2c_highlights_f317(w2c_highlights*, u32, u32, u32);
1547
+static u32 w2c_highlights_f318(w2c_highlights*, u32, u32, u32, u32);
1548
+static u32 w2c_highlights_f319(w2c_highlights*);
1549
+static void w2c_highlights_f320(w2c_highlights*);
1550
+static u32 w2c_highlights_f321(w2c_highlights*, u32);
1551
+static void w2c_highlights_f322(w2c_highlights*);
1552
+static u32 w2c_highlights_f323(w2c_highlights*, u32);
1553
+static void w2c_highlights_f324(w2c_highlights*);
1554
+static u32 w2c_highlights_f325(w2c_highlights*, u32);
1555
+static u32 w2c_highlights_f326(w2c_highlights*, u32, u32);
1556
+static void w2c_highlights_f327(w2c_highlights*);
1557
+static void w2c_highlights_f328(w2c_highlights*);
1558
+static u32 w2c_highlights_f329(w2c_highlights*, u32);
1559
+static void w2c_highlights_f330(w2c_highlights*);
1560
+static u32 w2c_highlights_f331(w2c_highlights*, u32, u32);
1561
+static void w2c_highlights_f332(w2c_highlights*);
1562
+static u32 w2c_highlights_f333(w2c_highlights*, u32, u32);
1563
+static u32 w2c_highlights_f334(w2c_highlights*, u32);
1564
+static void w2c_highlights_f335(w2c_highlights*);
1565
+static void w2c_highlights_f336(w2c_highlights*, u32);
1566
+static u32 w2c_highlights_f337(w2c_highlights*, u32);
1567
+static void w2c_highlights_f338(w2c_highlights*);
1568
+static u32 w2c_highlights_f339(w2c_highlights*, u32);
1569
+static u32 w2c_highlights_f340(w2c_highlights*, u32);
1570
+static void w2c_highlights_f341(w2c_highlights*);
1571
+static void w2c_highlights_f342(w2c_highlights*, u32, u32);
1572
+static u32 w2c_highlights_f343(w2c_highlights*, u32);
1573
+static u32 w2c_highlights_f344(w2c_highlights*, u32, u32);
1574
+static void w2c_highlights_f345(w2c_highlights*);
1575
+static u32 w2c_highlights_f346(w2c_highlights*, u32);
1576
+static u32 w2c_highlights_f347(w2c_highlights*, u32);
1577
+static u32 w2c_highlights_f348(w2c_highlights*, u32, u32);
1578
+static void w2c_highlights_f349(w2c_highlights*);
1579
+static u32 w2c_highlights_f350(w2c_highlights*, u32);
1580
+static u32 w2c_highlights_f351(w2c_highlights*, u32);
1581
+static void w2c_highlights_f352(w2c_highlights*);
1582
+static u32 w2c_highlights_f353(w2c_highlights*, u32, u32, u32, u32);
1583
+static void w2c_highlights_f354(w2c_highlights*);
1584
+static u32 w2c_highlights_f355(w2c_highlights*, u32);
1585
+static void w2c_highlights_f356(w2c_highlights*);
1586
+static void w2c_highlights_f357(w2c_highlights*, u32, u32, u32, u32);
1587
+static u32 w2c_highlights_f358(w2c_highlights*, u32);
1588
+static void w2c_highlights_f359(w2c_highlights*);
1589
+static u32 w2c_highlights_f360(w2c_highlights*, u32);
1590
+static u32 w2c_highlights_f361(w2c_highlights*, u32, u32, u32);
1591
+static u32 w2c_highlights_f362(w2c_highlights*, u32);
1592
+static void w2c_highlights_f363(w2c_highlights*, u32);
1593
+static void w2c_highlights_f364(w2c_highlights*);
1594
+static u32 w2c_highlights_f365(w2c_highlights*, u32, u32);
1595
+static u32 w2c_highlights_f366(w2c_highlights*, u32);
1596
+static u32 w2c_highlights_f367(w2c_highlights*, u32);
1597
+static void w2c_highlights_f368(w2c_highlights*);
1598
+static void w2c_highlights_f369(w2c_highlights*);
1599
+static u32 w2c_highlights_f370(w2c_highlights*, u32);
1600
+static void w2c_highlights_f371(w2c_highlights*);
1601
+static void w2c_highlights_f372(w2c_highlights*);
1602
+static void w2c_highlights_f373(w2c_highlights*);
1603
+static u32 w2c_highlights_f374(w2c_highlights*, u32);
1604
+static void w2c_highlights_f375(w2c_highlights*);
1605
+static void w2c_highlights_f376(w2c_highlights*);
1606
+static void w2c_highlights_f377(w2c_highlights*);
1607
+static u32 w2c_highlights_f378(w2c_highlights*);
1608
+static void w2c_highlights_f379(w2c_highlights*);
1609
+static void w2c_highlights_f380(w2c_highlights*);
1610
+static u32 w2c_highlights_f381(w2c_highlights*, u32, u32);
1611
+static u32 w2c_highlights_f382(w2c_highlights*, u32);
1612
+static u32 w2c_highlights_f383(w2c_highlights*, u32);
1613
+static u32 w2c_highlights_f384(w2c_highlights*, u32, u32, u32);
1614
+static u32 w2c_highlights_f385(w2c_highlights*, u32);
1615
+static u32 w2c_highlights_f386(w2c_highlights*, u32);
1616
+static u32 w2c_highlights_f387(w2c_highlights*, u32, u32, u32, u32);
1617
+static void w2c_highlights_f388(w2c_highlights*, u32, u32, u32);
1618
+static void w2c_highlights_f389(w2c_highlights*, u32, u32);
1619
+static u32 w2c_highlights_f390(w2c_highlights*, u32, u32);
1620
+static void w2c_highlights_f391(w2c_highlights*);
1621
+static void w2c_highlights_f392(w2c_highlights*, u32, u32);
1622
+static void w2c_highlights_f393(w2c_highlights*, u32, u32);
1623
+static void w2c_highlights_f394(w2c_highlights*, u32, u32, u32);
1624
+static u32 w2c_highlights_f395(w2c_highlights*, u32, u32, u32, u32);
1625
+static void w2c_highlights_f396(w2c_highlights*);
1626
+static void w2c_highlights_f397(w2c_highlights*, u32);
1627
+static void w2c_highlights_f398(w2c_highlights*);
1628
+static void w2c_highlights_f399(w2c_highlights*);
1629
+static u32 w2c_highlights_f400(w2c_highlights*, u32);
1630
+static u32 w2c_highlights_f401(w2c_highlights*, u32);
1631
+static u32 w2c_highlights_f402(w2c_highlights*, u32, u32);
1632
+static u32 w2c_highlights_f403(w2c_highlights*, u32, u32);
1633
+static void w2c_highlights_f404(w2c_highlights*, u32, u32);
1634
+static void w2c_highlights_f405(w2c_highlights*);
1635
+static void w2c_highlights_f406(w2c_highlights*);
1636
+static u32 w2c_highlights_f407(w2c_highlights*, u32, u32);
1637
+static u32 w2c_highlights_f408(w2c_highlights*, u32);
1638
+static void w2c_highlights_f409(w2c_highlights*, u32);
1639
+static u32 w2c_highlights_f410(w2c_highlights*, u32);
1640
+static u32 w2c_highlights_f411(w2c_highlights*, u32);
1641
+static u32 w2c_highlights_f412(w2c_highlights*, u32);
1642
+static void w2c_highlights_f413(w2c_highlights*, u32);
1643
+static void w2c_highlights_f414(w2c_highlights*);
1644
+static u32 w2c_highlights_f415(w2c_highlights*, u32, u32, u32);
1645
+static void w2c_highlights_f416(w2c_highlights*, u32);
1646
+static u32 w2c_highlights_f417(w2c_highlights*, u32);
1647
+static u32 w2c_highlights_f418(w2c_highlights*, u32);
1648
+static u32 w2c_highlights_f419(w2c_highlights*);
1649
+static u32 w2c_highlights_f420(w2c_highlights*, u32);
1650
+static void w2c_highlights_f421(w2c_highlights*, u32);
1651
+static void w2c_highlights_f422(w2c_highlights*, u32, u32, u32);
1652
+static u32 w2c_highlights_f423(w2c_highlights*, u32, u32);
1653
+static void w2c_highlights_f424(w2c_highlights*, u32, u32, u32);
1654
+static u32 w2c_highlights_liveStage_0(w2c_highlights*, u32);
1655
+static void w2c_highlights_liveInitDoc_0(w2c_highlights*, u32, u32, u32);
1656
+static u32 w2c_highlights_f427(w2c_highlights*, u32, u32, u32);
1657
+static u32 w2c_highlights_f428(w2c_highlights*, u32);
1658
+static void w2c_highlights_f429(w2c_highlights*, u32, u32);
1659
+static void w2c_highlights_f430(w2c_highlights*, u32, u32, u32, u32, u32);
1660
+static u32 w2c_highlights_f431(w2c_highlights*, u32, u32, u32, u32);
1661
+static void w2c_highlights_f432(w2c_highlights*, u32);
1662
+static void w2c_highlights_f433(w2c_highlights*);
1663
+static u32 w2c_highlights_f434(w2c_highlights*, u32);
1664
+static u32 w2c_highlights_f435(w2c_highlights*, u32, u32, u32, u32, u32);
1665
+static void w2c_highlights_liveApplyEdits_0(w2c_highlights*, u32, u32);
1666
+static u32 w2c_highlights_liveRun_0(w2c_highlights*, u32, u32, u32);
1667
+static u32 w2c_highlights_liveLineCount_0(w2c_highlights*);
1668
+static u32 w2c_highlights_liveLineLen_0(w2c_highlights*, u32);
1669
+static u32 w2c_highlights_liveLineByteLen_0(w2c_highlights*, u32);
1670
+static u32 w2c_highlights_liveLineTextPtr_0(w2c_highlights*, u32);
1671
+static u32 w2c_highlights_liveLineFlags_0(w2c_highlights*, u32);
1672
+static u32 w2c_highlights_liveLineTokPtr_0(w2c_highlights*, u32);
1673
+static u32 w2c_highlights_liveLineTokCount_0(w2c_highlights*, u32);
1674
+static u32 w2c_highlights_liveChangesPtr_0(w2c_highlights*);
1675
+static u32 w2c_highlights_liveStats_0(w2c_highlights*, u32);
1676
+static void w2c_highlights_highlight_0(w2c_highlights*);
1677
+static void w2c_highlights_f448(w2c_highlights*);
1678
+static void w2c_highlights_f449(w2c_highlights*, u32, u32);
1679
+static void w2c_highlights_highlightStream_0(w2c_highlights*, u32);
1680
+
1681
+#ifndef wasm_multi_ii
1682
+#define wasm_multi_ii wasm_multi_ii
1683
+struct wasm_multi_ii {
1684
+ u32 i0;
1685
+ u32 i1;
1686
+};
1687
+#endif /* wasm_multi_ii */
1688
+
1689
+FUNC_TYPE_T(w2c_highlights_t0) = "\x07\x80\x96\x7a\x42\xf7\x3e\xe6\x70\x5c\x2f\xac\x83\xf5\x67\xd2\xa2\xa0\x69\x41\x5f\xf8\xe7\x96\x7f\x23\xab\x00\x03\x5f\x4a\x3c";
1690
+FUNC_TYPE_T(w2c_highlights_t1) = "\x36\xa9\xe7\xf1\xc9\x5b\x82\xff\xb9\x97\x43\xe0\xc5\xc4\xce\x95\xd8\x3c\x9a\x43\x0a\xac\x59\xf8\x4e\xf3\xcb\xfa\xb6\x14\x50\x68";
1691
+FUNC_TYPE_T(w2c_highlights_t2) = "\x92\xfb\x6a\xdf\x49\x07\x0a\x83\xbe\x08\x02\x68\xcd\xf6\x95\x27\x4a\xc2\xf3\xe5\xe4\x7d\x29\x49\xe8\xed\x42\x92\x6a\x9d\xda\xf0";
1692
+FUNC_TYPE_T(w2c_highlights_t3) = "\x89\x3a\x3d\x2c\x8f\x4d\x7f\x6d\x6c\x9d\x62\x67\x29\xaf\x3d\x44\x39\x8e\xc3\xf3\xe8\x51\xc1\x99\xb9\xdd\x9f\xd5\x3d\x1f\xd3\xe4";
1693
+FUNC_TYPE_T(w2c_highlights_t4) = "\x26\x10\x81\xe2\x21\x43\xd6\x01\x3e\x2d\x2f\x16\x17\x78\x6f\xba\xb3\x2f\x4d\x54\x9b\x8a\xa9\xdd\xbf\x53\x92\x3c\xd3\x71\xc6\xb2";
1694
+FUNC_TYPE_T(w2c_highlights_t5) = "\x72\xab\x00\xdf\x20\x3d\xce\xa1\xf2\x29\xc7\x9d\x13\x40\x7e\x98\xac\x7d\x41\x4a\x53\x2e\x42\x42\x61\x55\x2e\xaa\xeb\xbe\xc6\x35";
1695
+FUNC_TYPE_T(w2c_highlights_t6) = "\x78\xde\x71\xb6\x49\x9a\x33\x9d\xd3\x70\x88\x4c\x50\xd4\xea\xdf\xe1\x2a\x18\x12\xf6\xf3\x64\xf7\xea\x4f\x94\x19\xa7\x20\x28\xe8";
1696
+FUNC_TYPE_T(w2c_highlights_t7) = "\xcd\xad\x8f\x6a\xaf\x3e\xd0\x86\xf0\x9a\xd7\xf0\xc7\x0d\x48\x9f\x27\x59\xf3\x8d\x71\xa1\x81\xa8\xcc\x06\x53\x98\x62\x34\xaa\xf5";
1697
+FUNC_TYPE_T(w2c_highlights_t8) = "\xf6\x98\x1b\xc6\x10\xda\xb7\xb2\x63\x37\xcd\xdc\x72\xca\xe9\x50\x00\x13\xba\x10\x6c\xde\x87\x27\x10\xf8\x86\x2f\xe3\xdb\x94\xe4";
1698
+FUNC_TYPE_T(w2c_highlights_t9) = "\x81\x39\xe9\x80\x36\x86\x39\xf3\xbe\x5e\x29\xbf\x55\x64\xbe\x61\xa7\x82\x5c\x6d\x98\x51\xff\xf0\x20\x11\x16\xc8\x91\x9f\xb9\xb5";
1699
+FUNC_TYPE_T(w2c_highlights_t10) = "\xff\x57\x1f\x83\x74\x67\x5d\x67\x2a\xc8\x0d\x92\x3d\xe8\x47\xa1\x1e\x73\xc7\x03\xa1\xee\x83\x72\x66\xa9\x1c\x9d\xe7\x8c\xdd\xfb";
1700
+FUNC_TYPE_T(w2c_highlights_t11) = "\x10\x14\x42\x90\xbf\xa8\x37\x8c\xdc\x81\x9f\x4c\x63\x4e\x62\xb7\x11\x29\xaa\x09\x68\x89\x5f\x5e\x13\x9c\xcc\xe2\xcb\x51\x7a\x78";
1701
+FUNC_TYPE_T(w2c_highlights_t12) = "\x93\xdb\x38\xf2\x1c\xb7\x06\xd6\x56\xf2\x78\xe9\x62\xcd\xa0\xd0\xca\xf1\xfa\x24\x38\x6c\xc1\x81\x2e\xe3\x0a\xdc\xf2\x6d\xff\xc5";
1702
+FUNC_TYPE_T(w2c_highlights_t13) = "\xd4\x99\x85\x78\x64\x65\x9d\xdd\xc9\x5a\x22\xd7\xc9\x00\x34\xb0\x5b\x0f\xf0\x6e\xc9\x5c\xe5\x31\xe2\x1f\x61\x99\xd3\x8c\x37\x27";
1703
+
1704
+static void wrap_w2c_highlights_f91(void *instance) {
1705
+ return w2c_highlights_f91((struct w2c_highlights*) instance);
1706
+}
1707
+static void wrap_w2c_highlights_f92(void *instance) {
1708
+ return w2c_highlights_f92((struct w2c_highlights*) instance);
1709
+}
1710
+static void wrap_w2c_highlights_f93(void *instance) {
1711
+ return w2c_highlights_f93((struct w2c_highlights*) instance);
1712
+}
1713
+static void wrap_w2c_highlights_f94(void *instance) {
1714
+ return w2c_highlights_f94((struct w2c_highlights*) instance);
1715
+}
1716
+static void wrap_w2c_highlights_f102(void *instance) {
1717
+ return w2c_highlights_f102((struct w2c_highlights*) instance);
1718
+}
1719
+static void wrap_w2c_highlights_f118(void *instance) {
1720
+ return w2c_highlights_f118((struct w2c_highlights*) instance);
1721
+}
1722
+static void wrap_w2c_highlights_f128(void *instance) {
1723
+ return w2c_highlights_f128((struct w2c_highlights*) instance);
1724
+}
1725
+static void wrap_w2c_highlights_f151(void *instance) {
1726
+ return w2c_highlights_f151((struct w2c_highlights*) instance);
1727
+}
1728
+static void wrap_w2c_highlights_f173(void *instance) {
1729
+ return w2c_highlights_f173((struct w2c_highlights*) instance);
1730
+}
1731
+static void wrap_w2c_highlights_f180(void *instance) {
1732
+ return w2c_highlights_f180((struct w2c_highlights*) instance);
1733
+}
1734
+static void wrap_w2c_highlights_f188(void *instance) {
1735
+ return w2c_highlights_f188((struct w2c_highlights*) instance);
1736
+}
1737
+static void wrap_w2c_highlights_f193(void *instance) {
1738
+ return w2c_highlights_f193((struct w2c_highlights*) instance);
1739
+}
1740
+static void wrap_w2c_highlights_f202(void *instance) {
1741
+ return w2c_highlights_f202((struct w2c_highlights*) instance);
1742
+}
1743
+static void wrap_w2c_highlights_f203(void *instance) {
1744
+ return w2c_highlights_f203((struct w2c_highlights*) instance);
1745
+}
1746
+static void wrap_w2c_highlights_f209(void *instance) {
1747
+ return w2c_highlights_f209((struct w2c_highlights*) instance);
1748
+}
1749
+static void wrap_w2c_highlights_f229(void *instance) {
1750
+ return w2c_highlights_f229((struct w2c_highlights*) instance);
1751
+}
1752
+static void wrap_w2c_highlights_f232(void *instance) {
1753
+ return w2c_highlights_f232((struct w2c_highlights*) instance);
1754
+}
1755
+static void wrap_w2c_highlights_f238(void *instance) {
1756
+ return w2c_highlights_f238((struct w2c_highlights*) instance);
1757
+}
1758
+static void wrap_w2c_highlights_f239(void *instance) {
1759
+ return w2c_highlights_f239((struct w2c_highlights*) instance);
1760
+}
1761
+static void wrap_w2c_highlights_f242(void *instance) {
1762
+ return w2c_highlights_f242((struct w2c_highlights*) instance);
1763
+}
1764
+static void wrap_w2c_highlights_f245(void *instance) {
1765
+ return w2c_highlights_f245((struct w2c_highlights*) instance);
1766
+}
1767
+static void wrap_w2c_highlights_f249(void *instance) {
1768
+ return w2c_highlights_f249((struct w2c_highlights*) instance);
1769
+}
1770
+static void wrap_w2c_highlights_f256(void *instance) {
1771
+ return w2c_highlights_f256((struct w2c_highlights*) instance);
1772
+}
1773
+static void wrap_w2c_highlights_f258(void *instance) {
1774
+ return w2c_highlights_f258((struct w2c_highlights*) instance);
1775
+}
1776
+static void wrap_w2c_highlights_f260(void *instance) {
1777
+ return w2c_highlights_f260((struct w2c_highlights*) instance);
1778
+}
1779
+static void wrap_w2c_highlights_f261(void *instance) {
1780
+ return w2c_highlights_f261((struct w2c_highlights*) instance);
1781
+}
1782
+static void wrap_w2c_highlights_f262(void *instance) {
1783
+ return w2c_highlights_f262((struct w2c_highlights*) instance);
1784
+}
1785
+static void wrap_w2c_highlights_f265(void *instance) {
1786
+ return w2c_highlights_f265((struct w2c_highlights*) instance);
1787
+}
1788
+static void wrap_w2c_highlights_f271(void *instance) {
1789
+ return w2c_highlights_f271((struct w2c_highlights*) instance);
1790
+}
1791
+static void wrap_w2c_highlights_f274(void *instance) {
1792
+ return w2c_highlights_f274((struct w2c_highlights*) instance);
1793
+}
1794
+static void wrap_w2c_highlights_f275(void *instance) {
1795
+ return w2c_highlights_f275((struct w2c_highlights*) instance);
1796
+}
1797
+static void wrap_w2c_highlights_f277(void *instance) {
1798
+ return w2c_highlights_f277((struct w2c_highlights*) instance);
1799
+}
1800
+static void wrap_w2c_highlights_f280(void *instance) {
1801
+ return w2c_highlights_f280((struct w2c_highlights*) instance);
1802
+}
1803
+static void wrap_w2c_highlights_f281(void *instance) {
1804
+ return w2c_highlights_f281((struct w2c_highlights*) instance);
1805
+}
1806
+static void wrap_w2c_highlights_f285(void *instance) {
1807
+ return w2c_highlights_f285((struct w2c_highlights*) instance);
1808
+}
1809
+static void wrap_w2c_highlights_f292(void *instance) {
1810
+ return w2c_highlights_f292((struct w2c_highlights*) instance);
1811
+}
1812
+static void wrap_w2c_highlights_f295(void *instance) {
1813
+ return w2c_highlights_f295((struct w2c_highlights*) instance);
1814
+}
1815
+static void wrap_w2c_highlights_f297(void *instance) {
1816
+ return w2c_highlights_f297((struct w2c_highlights*) instance);
1817
+}
1818
+static void wrap_w2c_highlights_f298(void *instance) {
1819
+ return w2c_highlights_f298((struct w2c_highlights*) instance);
1820
+}
1821
+static void wrap_w2c_highlights_f299(void *instance) {
1822
+ return w2c_highlights_f299((struct w2c_highlights*) instance);
1823
+}
1824
+static void wrap_w2c_highlights_f301(void *instance) {
1825
+ return w2c_highlights_f301((struct w2c_highlights*) instance);
1826
+}
1827
+static void wrap_w2c_highlights_f303(void *instance) {
1828
+ return w2c_highlights_f303((struct w2c_highlights*) instance);
1829
+}
1830
+static void wrap_w2c_highlights_f305(void *instance) {
1831
+ return w2c_highlights_f305((struct w2c_highlights*) instance);
1832
+}
1833
+static void wrap_w2c_highlights_f306(void *instance) {
1834
+ return w2c_highlights_f306((struct w2c_highlights*) instance);
1835
+}
1836
+static void wrap_w2c_highlights_f308(void *instance) {
1837
+ return w2c_highlights_f308((struct w2c_highlights*) instance);
1838
+}
1839
+static void wrap_w2c_highlights_f310(void *instance) {
1840
+ return w2c_highlights_f310((struct w2c_highlights*) instance);
1841
+}
1842
+static void wrap_w2c_highlights_f311(void *instance) {
1843
+ return w2c_highlights_f311((struct w2c_highlights*) instance);
1844
+}
1845
+static void wrap_w2c_highlights_f312(void *instance) {
1846
+ return w2c_highlights_f312((struct w2c_highlights*) instance);
1847
+}
1848
+static void wrap_w2c_highlights_f313(void *instance) {
1849
+ return w2c_highlights_f313((struct w2c_highlights*) instance);
1850
+}
1851
+static void wrap_w2c_highlights_f314(void *instance) {
1852
+ return w2c_highlights_f314((struct w2c_highlights*) instance);
1853
+}
1854
+static void wrap_w2c_highlights_f315(void *instance) {
1855
+ return w2c_highlights_f315((struct w2c_highlights*) instance);
1856
+}
1857
+static void wrap_w2c_highlights_f322(void *instance) {
1858
+ return w2c_highlights_f322((struct w2c_highlights*) instance);
1859
+}
1860
+static void wrap_w2c_highlights_f324(void *instance) {
1861
+ return w2c_highlights_f324((struct w2c_highlights*) instance);
1862
+}
1863
+static void wrap_w2c_highlights_f327(void *instance) {
1864
+ return w2c_highlights_f327((struct w2c_highlights*) instance);
1865
+}
1866
+static void wrap_w2c_highlights_f330(void *instance) {
1867
+ return w2c_highlights_f330((struct w2c_highlights*) instance);
1868
+}
1869
+static void wrap_w2c_highlights_f332(void *instance) {
1870
+ return w2c_highlights_f332((struct w2c_highlights*) instance);
1871
+}
1872
+static void wrap_w2c_highlights_f338(void *instance) {
1873
+ return w2c_highlights_f338((struct w2c_highlights*) instance);
1874
+}
1875
+static void wrap_w2c_highlights_f341(void *instance) {
1876
+ return w2c_highlights_f341((struct w2c_highlights*) instance);
1877
+}
1878
+static void wrap_w2c_highlights_f345(void *instance) {
1879
+ return w2c_highlights_f345((struct w2c_highlights*) instance);
1880
+}
1881
+static void wrap_w2c_highlights_f349(void *instance) {
1882
+ return w2c_highlights_f349((struct w2c_highlights*) instance);
1883
+}
1884
+static void wrap_w2c_highlights_f352(void *instance) {
1885
+ return w2c_highlights_f352((struct w2c_highlights*) instance);
1886
+}
1887
+static void wrap_w2c_highlights_f354(void *instance) {
1888
+ return w2c_highlights_f354((struct w2c_highlights*) instance);
1889
+}
1890
+static void wrap_w2c_highlights_f356(void *instance) {
1891
+ return w2c_highlights_f356((struct w2c_highlights*) instance);
1892
+}
1893
+static void wrap_w2c_highlights_f359(void *instance) {
1894
+ return w2c_highlights_f359((struct w2c_highlights*) instance);
1895
+}
1896
+static void wrap_w2c_highlights_f364(void *instance) {
1897
+ return w2c_highlights_f364((struct w2c_highlights*) instance);
1898
+}
1899
+static void wrap_w2c_highlights_f368(void *instance) {
1900
+ return w2c_highlights_f368((struct w2c_highlights*) instance);
1901
+}
1902
+static void wrap_w2c_highlights_f369(void *instance) {
1903
+ return w2c_highlights_f369((struct w2c_highlights*) instance);
1904
+}
1905
+static void wrap_w2c_highlights_f371(void *instance) {
1906
+ return w2c_highlights_f371((struct w2c_highlights*) instance);
1907
+}
1908
+static void wrap_w2c_highlights_f372(void *instance) {
1909
+ return w2c_highlights_f372((struct w2c_highlights*) instance);
1910
+}
1911
+static void wrap_w2c_highlights_f373(void *instance) {
1912
+ return w2c_highlights_f373((struct w2c_highlights*) instance);
1913
+}
1914
+static void wrap_w2c_highlights_f375(void *instance) {
1915
+ return w2c_highlights_f375((struct w2c_highlights*) instance);
1916
+}
1917
+static void wrap_w2c_highlights_f376(void *instance) {
1918
+ return w2c_highlights_f376((struct w2c_highlights*) instance);
1919
+}
1920
+static void wrap_w2c_highlights_f377(void *instance) {
1921
+ return w2c_highlights_f377((struct w2c_highlights*) instance);
1922
+}
1923
+static void wrap_w2c_highlights_f379(void *instance) {
1924
+ return w2c_highlights_f379((struct w2c_highlights*) instance);
1925
+}
1926
+static void wrap_w2c_highlights_f380(void *instance) {
1927
+ return w2c_highlights_f380((struct w2c_highlights*) instance);
1928
+}
1929
+static void wrap_w2c_highlights_f391(void *instance) {
1930
+ return w2c_highlights_f391((struct w2c_highlights*) instance);
1931
+}
1932
+static void wrap_w2c_highlights_f396(void *instance) {
1933
+ return w2c_highlights_f396((struct w2c_highlights*) instance);
1934
+}
1935
+static void wrap_w2c_highlights_f398(void *instance) {
1936
+ return w2c_highlights_f398((struct w2c_highlights*) instance);
1937
+}
1938
+static void wrap_w2c_highlights_f399(void *instance) {
1939
+ return w2c_highlights_f399((struct w2c_highlights*) instance);
1940
+}
1941
+static void wrap_w2c_highlights_f405(void *instance) {
1942
+ return w2c_highlights_f405((struct w2c_highlights*) instance);
1943
+}
1944
+static void wrap_w2c_highlights_f406(void *instance) {
1945
+ return w2c_highlights_f406((struct w2c_highlights*) instance);
1946
+}
1947
+
1948
+static void init_globals(w2c_highlights* instance) {
1949
+ instance->w2c_g0 = 65536u;
1950
+ instance->w2c_g1 = 65536u;
1951
+ instance->w2c_g2 = 0u;
1952
+ instance->w2c_g3 = 0u;
1953
+ instance->w2c_g4 = 0u;
1954
+ instance->w2c_g5 = 2147483647u;
1955
+ instance->w2c_g6 = 0u;
1956
+ instance->w2c_g7 = 0u;
1957
+ instance->w2c_g8 = 0u;
1958
+ instance->w2c_g9 = 0u;
1959
+ instance->w2c_g10 = 4294967295u;
1960
+ instance->w2c_g11 = 0ull;
1961
+ instance->w2c_g12 = 0u;
1962
+ instance->w2c_g13 = 0u;
1963
+ instance->w2c_g14 = 0u;
1964
+ instance->w2c_g15 = 0u;
1965
+ instance->w2c_g16 = 0u;
1966
+ instance->w2c_g17 = 0u;
1967
+ instance->w2c_g18 = 4294967295u;
1968
+ instance->w2c_g19 = 96u;
1969
+ instance->w2c_g20 = 0u;
1970
+ instance->w2c_g21 = 4294967295u;
1971
+ instance->w2c_g22 = 0u;
1972
+ instance->w2c_g23 = 0u;
1973
+ instance->w2c_g24 = 0u;
1974
+ instance->w2c_g25 = 0u;
1975
+ instance->w2c_g26 = 0u;
1976
+ instance->w2c_g27 = 0u;
1977
+ instance->w2c_g28 = 0u;
1978
+ instance->w2c_g29 = 0u;
1979
+ instance->w2c_g30 = 0u;
1980
+ instance->w2c_g31 = 0u;
1981
+ instance->w2c_g32 = 0u;
1982
+ instance->w2c_g33 = 0u;
1983
+ instance->w2c_g34 = 0u;
1984
+ instance->w2c_g35 = 4294967295u;
1985
+ instance->w2c_g36 = 0u;
1986
+ instance->w2c_g37 = 0u;
1987
+ instance->w2c_g38 = 0u;
1988
+ instance->w2c_g39 = 0u;
1989
+ instance->w2c_g40 = 0u;
1990
+ instance->w2c_g41 = 0u;
1991
+ instance->w2c_g42 = 0u;
1992
+ instance->w2c_g43 = 0u;
1993
+ instance->w2c_g44 = 0u;
1994
+ instance->w2c_g45 = 0u;
1995
+ instance->w2c_g46 = 0u;
1996
+ instance->w2c_g47 = 3u;
1997
+ instance->w2c_g48 = 65536u;
1998
+ instance->w2c_g49 = 0u;
1999
+ instance->w2c_g50 = 0u;
2000
+ instance->w2c_g51 = 0u;
2001
+ instance->w2c_g52 = 0u;
2002
+ instance->w2c_g53 = 0u;
2003
+ instance->w2c_g54 = 0u;
2004
+ instance->w2c_g55 = 0u;
2005
+ instance->w2c_g56 = 0u;
2006
+ instance->w2c_g57 = 0u;
2007
+ instance->w2c_g58 = 0u;
2008
+ instance->w2c_g59 = 0u;
2009
+ instance->w2c_g60 = 0u;
2010
+ instance->w2c_g61 = 0u;
2011
+ instance->w2c_g62 = 0u;
2012
+ instance->w2c_g63 = 0u;
2013
+ instance->w2c_g64 = 0u;
2014
+ instance->w2c_g65 = 0u;
2015
+ instance->w2c_g66 = 0u;
2016
+ instance->w2c_g67 = 0u;
2017
+ instance->w2c_g68 = 0u;
2018
+ instance->w2c_g69 = 0u;
2019
+ instance->w2c_g70 = 0u;
2020
+ instance->w2c_g71 = 0u;
2021
+ instance->w2c_g72 = 0u;
2022
+ instance->w2c_g73 = 0u;
2023
+ instance->w2c_g74 = 0u;
2024
+ instance->w2c_g75 = 0u;
2025
+ instance->w2c_g76 = 0u;
2026
+ instance->w2c_g77 = 0u;
2027
+ instance->w2c_g78 = 0u;
2028
+ instance->w2c_g79 = 0u;
2029
+ instance->w2c_g80 = 0u;
2030
+ instance->w2c_g81 = 0u;
2031
+ instance->w2c_g82 = 0u;
2032
+ instance->w2c_g83 = 0u;
2033
+ instance->w2c_g84 = 0u;
2034
+ instance->w2c_g85 = 0u;
2035
+ instance->w2c_g86 = 0u;
2036
+ instance->w2c_g87 = 0u;
2037
+ instance->w2c_g88 = 0u;
2038
+ instance->w2c_g89 = 0u;
2039
+ instance->w2c_g90 = 0u;
2040
+ instance->w2c_g91 = 0u;
2041
+ instance->w2c_g92 = 0u;
2042
+ instance->w2c_g93 = 0u;
2043
+ instance->w2c_g94 = 0u;
2044
+ instance->w2c_g95 = 0u;
2045
+ instance->w2c_g96 = 0u;
2046
+ instance->w2c_g97 = 0u;
2047
+ instance->w2c_g98 = 4294967295u;
2048
+ instance->w2c_g99 = 0u;
2049
+ instance->w2c_g100 = 0u;
2050
+ instance->w2c_g101 = 0u;
2051
+ instance->w2c_g102 = 0u;
2052
+ instance->w2c_g103 = 0u;
2053
+ instance->w2c_g104 = 0u;
2054
+ instance->w2c_g105 = 0u;
2055
+ instance->w2c_g106 = 0u;
2056
+ instance->w2c_g107 = 0u;
2057
+ instance->w2c_g108 = 0u;
2058
+ instance->w2c_g109 = 0u;
2059
+ instance->w2c_g110 = 0u;
2060
+ instance->w2c_g111 = 0u;
2061
+ instance->w2c_g112 = 0u;
2062
+ instance->w2c_g113 = 0u;
2063
+ instance->w2c_g114 = 0u;
2064
+ instance->w2c_g115 = 0u;
2065
+ instance->w2c_g116 = 0u;
2066
+ instance->w2c_g117 = 0u;
2067
+ instance->w2c_g118 = 0u;
2068
+ instance->w2c_g119 = 0u;
2069
+ instance->w2c_g120 = 0u;
2070
+ instance->w2c_g121 = 0u;
2071
+ instance->w2c_g122 = 0u;
2072
+ instance->w2c_g123 = 0u;
2073
+}
2074
+
2075
+static const u8 data_segment_data_w2c_highlights_d0[] = {
2076
+ 0x38, 0x59, 0x18, 0x18, 0x59,
2077
+};
2078
+
2079
+static const u8 data_segment_data_w2c_highlights_d1[] = {
2080
+ 0x38, 0x80, 0x18, 0x80, 0x02, 0x00, 0x02, 0x18, 0x00, 0x00, 0xc6, 0x06,
2081
+ 0x00, 0x86, 0x00, 0x0c,
2082
+};
2083
+
2084
+static const u8 data_segment_data_w2c_highlights_d2[] = {
2085
+ 0x5c, 0x0c, 0x1e, 0x80, 0x80,
2086
+};
2087
+
2088
+static const u8 data_segment_data_w2c_highlights_d3[] = {
2089
+ 0x40, 0x40, 0x00, 0x06, 0x40, 0x40,
2090
+};
2091
+
2092
+static const u8 data_segment_data_w2c_highlights_d4[] = {
2093
+ 0x42, 0x00, 0x06,
2094
+};
2095
+
2096
+static const u8 data_segment_data_w2c_highlights_d5[] = {
2097
+ 0x21, 0x00, 0x00, 0x20,
2098
+};
2099
+
2100
+static const u8 data_segment_data_w2c_highlights_d6[] = {
2101
+ 0xa4, 0x21, 0x00, 0x01, 0xa0, 0x86, 0x00, 0x4a, 0x4a, 0x80, 0x80, 0x00,
2102
+ 0x80, 0x00, 0x80,
2103
+};
2104
+
2105
+static const u8 data_segment_data_w2c_highlights_d7[] = {
2106
+ 0x06, 0x86, 0x84, 0x86, 0x00, 0x80,
2107
+};
2108
+
2109
+static const u8 data_segment_data_w2c_highlights_d8[] = {
2110
+ 0x08, 0x01, 0x08, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x10, 0x00, 0x10,
2111
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00,
2112
+ 0x10, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x08, 0x86, 0x08, 0x04,
2113
+
2114
+};
2115
+
2116
+static const u8 data_segment_data_w2c_highlights_d9[] = {
2117
+ 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x40, 0x40,
2118
+ 0x40, 0x40,
2119
+};
2120
+
2121
+static const u8 data_segment_data_w2c_highlights_d10[] = {
2122
+ 0x40, 0x34, 0x40, 0x04, 0x00, 0x14, 0x3e, 0x80, 0x42, 0x42, 0x14, 0x3c,
2123
+ 0x41, 0x3c, 0x00, 0x14,
2124
+};
2125
+
2126
+static const u8 data_segment_data_w2c_highlights_d11[] = {
2127
+ 0x01, 0x41, 0x3c, 0x14, 0x3c, 0x34, 0xc0,
2128
+};
2129
+
2130
+static const u8 data_segment_data_w2c_highlights_d12[] = {
2131
+ 0x40, 0x40, 0x40, 0xd4, 0x00, 0xc0,
2132
+};
2133
+
2134
+static const u8 data_segment_data_w2c_highlights_d13[] = {
2135
+ 0x40, 0x3e, 0x40, 0xd4,
2136
+};
2137
+
2138
+static const u8 data_segment_data_w2c_highlights_d14[] = {
2139
+ 0x40, 0x02, 0x00, 0x00, 0x00, 0x70, 0x02, 0x06, 0x0a, 0x40, 0x51, 0x82,
2140
+ 0x51, 0x83, 0x41,
2141
+};
2142
+
2143
+static const u8 data_segment_data_w2c_highlights_d15[] = {
2144
+ 0x83, 0x22, 0x70, 0x60, 0x70, 0x50,
2145
+};
2146
+
2147
+static const u8 data_segment_data_w2c_highlights_d16[] = {
2148
+ 0x06, 0x40, 0x0a, 0x40,
2149
+};
2150
+
2151
+static const u8 data_segment_data_w2c_highlights_d17[] = {
2152
+ 0x02, 0x70, 0x02, 0x40,
2153
+};
2154
+
2155
+static const u8 data_segment_data_w2c_highlights_d18[] = {
2156
+ 0x08, 0x00, 0x00, 0x08,
2157
+};
2158
+
2159
+static const u8 data_segment_data_w2c_highlights_d19[] = {
2160
+ 0x0f, 0x00, 0x01, 0x00, 0x01, 0x01, 0x00, 0x80, 0x80, 0x07, 0x43, 0x00,
2161
+ 0x43, 0x00, 0x03,
2162
+};
2163
+
2164
+static const u8 data_segment_data_w2c_highlights_d20[] = {
2165
+ 0x03, 0x03, 0x03, 0x01, 0x00, 0x00, 0x10, 0x04, 0x20, 0x20,
2166
+};
2167
+
2168
+static const u8 data_segment_data_w2c_highlights_d21[] = {
2169
+ 0x10, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10,
2170
+ 0x80, 0x01, 0x80, 0x01, 0x00, 0x00, 0x00, 0x10, 0x04, 0x20, 0x20,
2171
+};
2172
+
2173
+static const u8 data_segment_data_w2c_highlights_d22[] = {
2174
+ 0x10, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10,
2175
+ 0x00, 0x03, 0x00, 0x01,
2176
+};
2177
+
2178
+static const u8 data_segment_data_w2c_highlights_d23[] = {
2179
+ 0x22, 0x14, 0x00, 0x42, 0x23, 0x63, 0x10, 0x14, 0x08, 0x33, 0x23, 0x80,
2180
+ 0x33, 0x80, 0x23,
2181
+};
2182
+
2183
+static const u8 data_segment_data_w2c_highlights_d24[] = {
2184
+ 0x82, 0x80, 0x23, 0x23, 0x23, 0x06, 0x22,
2185
+};
2186
+
2187
+static const u8 data_segment_data_w2c_highlights_d25[] = {
2188
+ 0x14, 0x00, 0x08, 0x62, 0x00, 0x04,
2189
+};
2190
+
2191
+static const u8 data_segment_data_w2c_highlights_d26[] = {
2192
+ 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x22, 0x08,
2193
+ 0x26,
2194
+};
2195
+
2196
+static const u8 data_segment_data_w2c_highlights_d27[] = {
2197
+ 0xaf, 0x50, 0x20, 0xa0, 0xaf, 0xaf, 0x10, 0x00, 0x00, 0xaf, 0xaf, 0x00,
2198
+ 0xaf, 0x20, 0xaf,
2199
+};
2200
+
2201
+static const u8 data_segment_data_w2c_highlights_d28[] = {
2202
+ 0xa8, 0x00, 0xaf, 0xaf, 0xaf, 0xa9, 0x20,
2203
+};
2204
+
2205
+static const u8 data_segment_data_w2c_highlights_d29[] = {
2206
+ 0xe1, 0x00, 0xad,
2207
+};
2208
+
2209
+static const u8 data_segment_data_w2c_highlights_d30[] = {
2210
+ 0x10, 0xaf, 0x00, 0xa9,
2211
+};
2212
+
2213
+static const u8 data_segment_data_w2c_highlights_d31[] = {
2214
+ 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x16, 0x14,
2215
+ 0x14, 0x16,
2216
+};
2217
+
2218
+static const u8 data_segment_data_w2c_highlights_d32[] = {
2219
+ 0x14, 0x21, 0x14, 0x10, 0x12, 0x43, 0x81, 0x14, 0x14, 0x14, 0x41, 0x61,
2220
+ 0x14, 0x01, 0x00, 0x01,
2221
+};
2222
+
2223
+static const u8 data_segment_data_w2c_highlights_d33[] = {
2224
+ 0x10, 0x94, 0xc1, 0x11, 0x81, 0x61, 0x40, 0x00, 0x00, 0x00, 0x08, 0x08,
2225
+ 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
2226
+ 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x12, 0x04,
2227
+ 0x41, 0x00, 0x04, 0x00, 0x00, 0x00, 0x08, 0x08, 0x08, 0x00, 0x00, 0x00,
2228
+ 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00,
2229
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0xd1, 0x06,
2230
+};
2231
+
2232
+static const u8 data_segment_data_w2c_highlights_d34[] = {
2233
+ 0x40, 0x00, 0x00, 0x40,
2234
+};
2235
+
2236
+static const u8 data_segment_data_w2c_highlights_d35[] = {
2237
+ 0x09, 0x00, 0x00, 0x00, 0x00, 0x08, 0x40, 0x24, 0x04, 0x28, 0x0b, 0x04,
2238
+ 0x1a, 0x10, 0x18,
2239
+};
2240
+
2241
+static const u8 data_segment_data_w2c_highlights_d36[] = {
2242
+ 0x19, 0x00, 0x08, 0x18, 0x08, 0x01, 0x02,
2243
+};
2244
+
2245
+static const u8 data_segment_data_w2c_highlights_d37[] = {
2246
+ 0xa0, 0x08, 0x00, 0x08, 0x00, 0x20,
2247
+};
2248
+
2249
+static const u8 data_segment_data_w2c_highlights_d38[] = {
2250
+ 0x80, 0x08, 0x00, 0x08,
2251
+};
2252
+
2253
+static const u8 data_segment_data_w2c_highlights_d39[] = {
2254
+ 0x04, 0x04, 0x00, 0x00, 0x04,
2255
+};
2256
+
2257
+static const u8 data_segment_data_w2c_highlights_d40[] = {
2258
+ 0x04, 0x52, 0x20, 0x00, 0x02, 0x12, 0x52, 0x10, 0x21, 0x00, 0x52, 0x5a,
2259
+ 0x94, 0x5a, 0x1a, 0x5a,
2260
+};
2261
+
2262
+static const u8 data_segment_data_w2c_highlights_d41[] = {
2263
+ 0x56, 0x00, 0x42, 0x52, 0x42, 0xd2, 0x52,
2264
+};
2265
+
2266
+static const u8 data_segment_data_w2c_highlights_d42[] = {
2267
+ 0x25, 0x02, 0x00, 0x02,
2268
+};
2269
+
2270
+static const u8 data_segment_data_w2c_highlights_d43[] = {
2271
+ 0x21, 0x42, 0x80, 0x12,
2272
+};
2273
+
2274
+static const u8 data_segment_data_w2c_highlights_d44[] = {
2275
+ 0xac, 0x00, 0x80, 0x00, 0x8c, 0xac, 0x00, 0x10, 0x10, 0xae, 0xae, 0x00,
2276
+ 0xae, 0x04, 0xae,
2277
+};
2278
+
2279
+static const u8 data_segment_data_w2c_highlights_d45[] = {
2280
+ 0xa0, 0x00, 0xbe, 0xae, 0xbe, 0xac, 0x82, 0x00, 0x00, 0x00, 0x00, 0x01,
2281
+ 0x00, 0x00, 0x00, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x40,
2282
+ 0x00, 0x00, 0x01, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10,
2283
+ 0xa6,
2284
+};
2285
+
2286
+static const u8 data_segment_data_w2c_highlights_d46[] = {
2287
+ 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x10, 0xac, 0x10,
2288
+ 0xa4,
2289
+};
2290
+
2291
+static const u8 data_segment_data_w2c_highlights_d47[] = {
2292
+ 0x04,
2293
+};
2294
+
2295
+static const u8 data_segment_data_w2c_highlights_d48[] = {
2296
+ 0x04, 0x13, 0x08, 0x04, 0x00, 0x13, 0x13, 0x00, 0x00, 0x00, 0x13, 0x12,
2297
+ 0x04, 0x12, 0x00, 0x13,
2298
+};
2299
+
2300
+static const u8 data_segment_data_w2c_highlights_d49[] = {
2301
+ 0x12, 0x12, 0x12, 0x02,
2302
+};
2303
+
2304
+static const u8 data_segment_data_w2c_highlights_d50[] = {
2305
+ 0x08, 0x04, 0x11, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x08, 0x08, 0x00,
2306
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00,
2307
+ 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x04, 0x13,
2308
+};
2309
+
2310
+static const u8 data_segment_data_w2c_highlights_d51[] = {
2311
+ 0x9b, 0x02, 0x00, 0x9b, 0x02, 0x09, 0x9b, 0x02, 0x0d, 0xa8, 0x02, 0x07,
2312
+ 0x00, 0x03, 0x07, 0x00, 0x03, 0x0b, 0x0a, 0x03, 0x08, 0x0a, 0x03, 0x10,
2313
+ 0x1f, 0x03, 0x0b, 0xbd, 0x02, 0x0a, 0xdd, 0x02, 0x09, 0xb6, 0x02, 0x08,
2314
+ 0xf1, 0x02, 0x08, 0xf1, 0x02, 0x0f, 0x2a, 0x03, 0x08, 0x2a, 0x03, 0x13,
2315
+ 0x3d, 0x03, 0x0f, 0x4c, 0x03, 0x07, 0x4c, 0x03, 0x0f, 0x6b, 0x03, 0x13,
2316
+ 0x7e, 0x03, 0x0e, 0x9e, 0x03, 0x10, 0x5a, 0x03, 0x05, 0xae, 0x02, 0x09,
2317
+ 0x19, 0x03, 0x06, 0xa6, 0x03, 0x08, 0xae, 0x03, 0x0a, 0xbb, 0x03, 0x07,
2318
+ 0xc2, 0x03, 0x07, 0xc9, 0x03, 0x08, 0xc9, 0x03, 0x11, 0xe4, 0x03, 0x0b,
2319
+ 0xe4, 0x03, 0x13, 0xe4, 0x03, 0x18, 0x03, 0x04, 0x17, 0x1a, 0x04, 0x15,
2320
+ 0x1a, 0x04, 0x1a, 0x34, 0x04, 0x19, 0x4d, 0x04, 0x17, 0x64, 0x04, 0x12,
2321
+ 0x75, 0x04, 0x13, 0xc6, 0x02, 0x08, 0xc6, 0x02, 0x0e, 0xd3, 0x02, 0x0b,
2322
+ 0xe5, 0x02, 0x06, 0xe5, 0x02, 0x0d, 0x88, 0x04, 0x0c, 0x94, 0x04, 0x0e,
2323
+ 0x94, 0x04, 0x15, 0x8b, 0x03, 0x03, 0x8b, 0x03, 0x0b, 0xa9, 0x04, 0x07,
2324
+ 0x63, 0x03, 0x08, 0xb0, 0x04, 0x0c, 0xbc, 0x04, 0x05, 0x92, 0x03, 0x04,
2325
+ 0x92, 0x03, 0x0c, 0xc1, 0x04, 0x0a, 0xd9, 0x04, 0x08, 0xd9, 0x04, 0x12,
2326
+ 0xeb, 0x04, 0x10, 0xb7, 0x03, 0x04, 0xfb, 0x04, 0x04, 0xd7, 0x03, 0x0d,
2327
+ 0x5e, 0x03, 0x09, 0xfb, 0x03, 0x08, 0xca, 0x04, 0x0f, 0xfe, 0x04, 0x11,
2328
+ 0x0f, 0x05, 0x0a, 0x19, 0x05, 0x0e, 0x27, 0x05, 0x07, 0x2e, 0x05, 0x0a,
2329
+ 0x38, 0x05, 0x0a,
2330
+};
2331
+
2332
+static const u8 data_segment_data_w2c_highlights_d52[] = {
2333
+ 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x2d, 0x6a, 0x73,
2334
+ 0x78, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x61, 0x6d, 0x65, 0x73,
2335
+ 0x70, 0x61, 0x63, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x69,
2336
+ 0x66, 0x66, 0x2d, 0x6d, 0x69, 0x6e, 0x75, 0x73, 0x65, 0x6c, 0x65, 0x63,
2337
+ 0x74, 0x6f, 0x72, 0x2d, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x6c, 0x65,
2338
+ 0x63, 0x74, 0x6f, 0x72, 0x2d, 0x69, 0x64, 0x69, 0x66, 0x66, 0x2d, 0x70,
2339
+ 0x6c, 0x75, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2d, 0x65, 0x73, 0x63,
2340
+ 0x61, 0x70, 0x65, 0x6d, 0x70, 0x68, 0x61, 0x73, 0x69, 0x73, 0x2d, 0x73,
2341
+ 0x74, 0x72, 0x6f, 0x6e, 0x67, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
2342
+ 0x2d, 0x64, 0x6f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x2d,
2343
+ 0x62, 0x75, 0x69, 0x6c, 0x74, 0x69, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
2344
+ 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x66,
2345
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x64, 0x65, 0x66, 0x69,
2346
+ 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
2347
+ 0x6f, 0x6e, 0x2d, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x6b, 0x65, 0x79,
2348
+ 0x77, 0x6f, 0x72, 0x64, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
2349
+ 0x61, 0x62, 0x65, 0x6c, 0x69, 0x6e, 0x6b, 0x2d, 0x74, 0x65, 0x78, 0x74,
2350
+ 0x2d, 0x6a, 0x73, 0x78, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x2d,
2351
+ 0x64, 0x65, 0x63, 0x6c, 0x61, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x6b,
2352
+ 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x2d, 0x69, 0x6d, 0x70, 0x6f, 0x72,
2353
+ 0x74, 0x61, 0x67, 0x2d, 0x64, 0x6f, 0x63, 0x74, 0x79, 0x70, 0x65, 0x2d,
2354
+ 0x62, 0x75, 0x69, 0x6c, 0x74, 0x69, 0x6e, 0x6b, 0x65, 0x79, 0x77, 0x6f,
2355
+ 0x72, 0x64, 0x2d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x70,
2356
+ 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x75, 0x6d,
2357
+ 0x70, 0x72, 0x65, 0x70, 0x72, 0x6f, 0x63, 0x70, 0x72, 0x69, 0x6d, 0x61,
2358
+ 0x72, 0x79, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x2d, 0x6a,
2359
+ 0x73, 0x6f, 0x6e, 0x2d, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x2d,
2360
+ 0x6a, 0x73, 0x64, 0x6f, 0x63, 0x70, 0x75, 0x6e, 0x63, 0x74, 0x75, 0x61,
2361
+ 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x62, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x74,
2362
+ 0x2d, 0x68, 0x74, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, 0x2d, 0x75, 0x72, 0x69,
2363
+ 0x70, 0x75, 0x6e, 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d,
2364
+ 0x62, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x2d, 0x6a, 0x73, 0x78, 0x70,
2365
+ 0x75, 0x6e, 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x64,
2366
+ 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x2d, 0x68, 0x74, 0x6d,
2367
+ 0x6c, 0x70, 0x75, 0x6e, 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e,
2368
+ 0x2d, 0x64, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x2d, 0x6a,
2369
+ 0x73, 0x78, 0x70, 0x75, 0x6e, 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f,
2370
+ 0x6e, 0x2d, 0x6c, 0x69, 0x73, 0x74, 0x2d, 0x6d, 0x61, 0x72, 0x6b, 0x65,
2371
+ 0x72, 0x70, 0x75, 0x6e, 0x63, 0x74, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e,
2372
+ 0x2d, 0x6d, 0x61, 0x72, 0x6b, 0x75, 0x70, 0x75, 0x6e, 0x63, 0x74, 0x75,
2373
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x73, 0x70, 0x65, 0x63, 0x69, 0x61,
2374
+ 0x6c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2d, 0x72, 0x65, 0x67, 0x65,
2375
+ 0x78, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2d, 0x73, 0x70, 0x65, 0x63,
2376
+ 0x69, 0x61, 0x6c, 0x2d, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x74, 0x61,
2377
+ 0x67, 0x2d, 0x6a, 0x73, 0x78, 0x74, 0x65, 0x78, 0x74, 0x2d, 0x6c, 0x69,
2378
+ 0x74, 0x65, 0x72, 0x61, 0x6c, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x74, 0x79,
2379
+ 0x70, 0x65, 0x2d, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x6c, 0x65, 0x63,
2380
+ 0x74, 0x6f, 0x72, 0x2d, 0x70, 0x73, 0x65, 0x75, 0x64, 0x6f, 0x76, 0x61,
2381
+ 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x2d, 0x70, 0x61, 0x72, 0x61, 0x6d,
2382
+ 0x65, 0x74, 0x65, 0x72, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65,
2383
+ 0x2d, 0x73, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x68, 0x69, 0x6e, 0x74,
2384
+ 0x61, 0x67, 0x2d, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74,
2385
+ 0x2d, 0x6a, 0x73, 0x78, 0x74, 0x79, 0x70, 0x65, 0x2d, 0x6a, 0x73, 0x64,
2386
+ 0x6f, 0x63, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x2d, 0x6a,
2387
+ 0x73, 0x64, 0x6f, 0x63, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x62,
2388
+ 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x66, 0x6f, 0x72,
2389
+ 0x65, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64,
2390
+};
2391
+
2392
+static const u8 data_segment_data_w2c_highlights_d53[] = {
2393
+ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x61, 0x62,
2394
+ 0x63, 0x64, 0x65, 0x66, 0x3c, 0x70, 0x72, 0x65, 0x20, 0x63, 0x6c, 0x61,
2395
+ 0x73, 0x73, 0x3d, 0x22, 0x68, 0x69, 0x67, 0x68, 0x6c, 0x69, 0x67, 0x68,
2396
+ 0x74, 0x73, 0x22, 0x20, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x3d, 0x22, 0x3c,
2397
+ 0x73, 0x70, 0x61, 0x6e, 0x20, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x3d, 0x22,
2398
+ 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x3a, 0x62, 0x61, 0x63, 0x6b, 0x67, 0x72,
2399
+ 0x6f, 0x75, 0x6e, 0x64, 0x2d, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x3a, 0x3b,
2400
+ 0x66, 0x6f, 0x6e, 0x74, 0x2d, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x3a, 0x69,
2401
+ 0x74, 0x61, 0x6c, 0x69, 0x63, 0x3b, 0x66, 0x6f, 0x6e, 0x74, 0x2d, 0x77,
2402
+ 0x65, 0x69, 0x67, 0x68, 0x74, 0x3a, 0x76, 0x61, 0x72, 0x28, 0x22, 0x3e,
2403
+ 0x3c, 0x63, 0x6f, 0x64, 0x65, 0x3e, 0x3c, 0x2f, 0x63, 0x6f, 0x64, 0x65,
2404
+ 0x3e, 0x3c, 0x2f, 0x70, 0x72, 0x65, 0x3e, 0x6c, 0x69, 0x67, 0x68, 0x74,
2405
+ 0x2d, 0x64, 0x61, 0x72, 0x6b, 0x28,
2406
+};
2407
+
2408
+static const u8 data_segment_data_w2c_highlights_d54[] = {
2409
+ 0x68, 0x69, 0x6e, 0x74, 0x5f, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x5f,
2410
+ 0x72, 0x6f, 0x75, 0x67, 0x68, 0x6e, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x65,
2411
+ 0x78, 0x74, 0x75, 0x72, 0x65, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72,
2412
+ 0x65, 0x74, 0x5f, 0x63, 0x61, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f,
2413
+ 0x61, 0x73, 0x73, 0x65, 0x72, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61,
2414
+ 0x74, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
2415
+ 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74,
2416
+ 0x75, 0x72, 0x69, 0x6e, 0x67, 0x2d, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e,
2417
+ 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x6c, 0x79, 0x63, 0x6f, 0x68, 0x65,
2418
+ 0x72, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x65,
2419
+ 0x72, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x72, 0x62, 0x61, 0x74, 0x69,
2420
+ 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f,
2421
+ 0x6e, 0x65, 0x77, 0x61, 0x79, 0x61, 0x63, 0x63, 0x65, 0x6c, 0x65, 0x72,
2422
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75,
2423
+ 0x72, 0x65, 0x45, 0x58, 0x54, 0x45, 0x58, 0x54, 0x55, 0x52, 0x45, 0x5f,
2424
+ 0x50, 0x49, 0x58, 0x45, 0x4c, 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x78, 0x74,
2425
+ 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6c,
2426
+ 0x6f, 0x72, 0x64, 0x65, 0x72, 0x62, 0x79, 0x74, 0x65, 0x61, 0x72, 0x72,
2427
+ 0x61, 0x79, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x45,
2428
+ 0x58, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x32, 0x44,
2429
+ 0x65, 0x63, 0x6c, 0x61, 0x72, 0x65, 0x4d, 0x61, 0x74, 0x68, 0x4f, 0x70,
2430
+ 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x65, 0x6c, 0x73, 0x65, 0x77, 0x68,
2431
+ 0x65, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,
2432
+ 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74,
2433
+ 0x65, 0x52, 0x61, 0x79, 0x4e, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e,
2434
+ 0x5f, 0x47, 0x52, 0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x45, 0x51, 0x55,
2435
+ 0x41, 0x4c, 0x42, 0x45, 0x44, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x79,
2436
+ 0x70, 0x65, 0x6f, 0x66, 0x5f, 0x75, 0x6e, 0x71, 0x75, 0x61, 0x6c, 0x69,
2437
+ 0x66, 0x69, 0x65, 0x64, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x73,
2438
+ 0x74, 0x6f, 0x72, 0x65, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74,
2439
+ 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70,
2440
+ 0x61, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x6f, 0x69, 0x64, 0x65, 0x66, 0x6f,
2441
+ 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x2d,
2442
+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x61, 0x63, 0x6f, 0x6d, 0x70, 0x61,
2443
+ 0x74, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x6c, 0x69,
2444
+ 0x61, 0x73, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x61, 0x6d,
2445
+ 0x70, 0x6c, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69,
2446
+ 0x73, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x6f, 0x66,
2447
+ 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x65, 0x61, 0x72, 0x65, 0x73,
2448
+ 0x74, 0x5f, 0x6d, 0x69, 0x70, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67,
2449
+ 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x75, 0x6e, 0x69, 0x66, 0x6f, 0x72, 0x6d,
2450
+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x72,
2451
+ 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x69,
2452
+ 0x67, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x64, 0x69, 0x72,
2453
+ 0x65, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x68, 0x61, 0x64, 0x65,
2454
+ 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x45, 0x58, 0x54, 0x52, 0x41,
2455
+ 0x4e, 0x53, 0x46, 0x4f, 0x52, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x4e,
2456
+ 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x5f, 0x4d, 0x41, 0x54, 0x52, 0x49, 0x58,
2457
+ 0x68, 0x69, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
2458
+ 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
2459
+ 0x68, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x6c,
2460
+ 0x61, 0x62, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x49, 0x6e, 0x45, 0x58,
2461
+ 0x54, 0x41, 0x4e, 0x47, 0x45, 0x4e, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54,
2462
+ 0x45, 0x53, 0x54, 0x52, 0x47, 0x52, 0x45, 0x41, 0x54, 0x45, 0x52, 0x65,
2463
+ 0x71, 0x75, 0x69, 0x72, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65,
2464
+ 0x74, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x63, 0x68,
2465
+ 0x6e, 0x69, 0x71, 0x75, 0x65, 0x72, 0x79, 0x49, 0x4e, 0x56, 0x5f, 0x50,
2466
+ 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x41,
2467
+ 0x54, 0x52, 0x49, 0x58, 0x68, 0x69, 0x6e, 0x74, 0x5f, 0x72, 0x6f, 0x75,
2468
+ 0x67, 0x68, 0x6e, 0x65, 0x73, 0x73, 0x5f, 0x6e, 0x6f, 0x72, 0x6d, 0x61,
2469
+ 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x6e, 0x67,
2470
+ 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x6c,
2471
+ 0x61, 0x62, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x49, 0x6e, 0x4e, 0x56,
2472
+ 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, 0x45, 0x53, 0x53, 0x5f,
2473
+ 0x45, 0x51, 0x55, 0x41, 0x4c, 0x50, 0x48, 0x41, 0x54, 0x54, 0x45, 0x4e,
2474
+ 0x55, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x5f,
2475
+ 0x4d, 0x41, 0x50, 0x5f, 0x44, 0x45, 0x50, 0x54, 0x48, 0x69, 0x67, 0x6e,
2476
+ 0x6f, 0x72, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74,
2477
+ 0x69, 0x6f, 0x6e, 0x45, 0x58, 0x54, 0x52, 0x55, 0x45, 0x4d, 0x49, 0x53,
2478
+ 0x53, 0x49, 0x4f, 0x4e, 0x6f, 0x74, 0x49, 0x6d, 0x70, 0x6c, 0x65, 0x6d,
2479
+ 0x65, 0x6e, 0x74, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x75, 0x6c,
2480
+ 0x6c, 0x5f, 0x75, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65,
2481
+ 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x2d, 0x73, 0x79, 0x6e, 0x74, 0x61,
2482
+ 0x78, 0x2d, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x61, 0x76, 0x65, 0x2d, 0x65,
2483
+ 0x78, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x6f, 0x69, 0x6e, 0x74,
2484
+ 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x75, 0x6c,
2485
+ 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x74, 0x61, 0x62, 0x6c, 0x65,
2486
+ 0x74, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x72, 0x69,
2487
+ 0x66, 0x79, 0x5f, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x66, 0x65,
2488
+ 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x70, 0x6c,
2489
+ 0x61, 0x74, 0x65, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a,
2490
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x6f, 0x70, 0x65, 0x72, 0x73, 0x70, 0x65,
2491
+ 0x63, 0x74, 0x69, 0x76, 0x65, 0x6e, 0x64, 0x73, 0x75, 0x62, 0x72, 0x6f,
2492
+ 0x75, 0x74, 0x69, 0x6e, 0x65, 0x78, 0x74, 0x63, 0x61, 0x73, 0x65, 0x6c,
2493
+ 0x66, 0x64, 0x65, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x61,
2494
+ 0x79, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x4e, 0x56,
2495
+ 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c,
2496
+ 0x49, 0x47, 0x48, 0x54, 0x5f, 0x45, 0x4e, 0x45, 0x52, 0x47, 0x59, 0x45,
2497
+ 0x53, 0x43, 0x52, 0x45, 0x45, 0x4e, 0x5f, 0x50, 0x49, 0x58, 0x45, 0x4c,
2498
+ 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x6c, 0x6c, 0x69, 0x70, 0x73, 0x69, 0x73,
2499
+ 0x75, 0x62, 0x70, 0x61, 0x73, 0x73, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73,
2500
+ 0x68, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x4e,
2501
+ 0x56, 0x49, 0x45, 0x57, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x53, 0x49, 0x5a,
2502
+ 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x50, 0x45, 0x43, 0x55, 0x4c, 0x41,
2503
+ 0x52, 0x5f, 0x4c, 0x49, 0x47, 0x48, 0x54, 0x5f, 0x43, 0x4f, 0x4c, 0x4f,
2504
+ 0x52, 0x4f, 0x55, 0x47, 0x48, 0x4e, 0x45, 0x53, 0x53, 0x75, 0x62, 0x52,
2505
+ 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x71, 0x75, 0x69, 0x76, 0x61,
2506
+ 0x6c, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x74, 0x65, 0x72,
2507
+ 0x66, 0x61, 0x63, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e,
2508
+ 0x74, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x65, 0x66,
2509
+ 0x69, 0x6e, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x69, 0x73,
2510
+ 0x70, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x78, 0x74,
2511
+ 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x74, 0x72,
2512
+ 0x69, 0x6e, 0x67, 0x69, 0x66, 0x79, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72,
2513
+ 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x61, 0x72, 0x5f, 0x6d, 0x69, 0x70, 0x6d,
2514
+ 0x61, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
2515
+ 0x6f, 0x6e, 0x6f, 0x74, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73,
2516
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x74, 0x79, 0x70, 0x65, 0x63, 0x61, 0x73,
2517
+ 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
2518
+ 0x5f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x61, 0x76, 0x65, 0x6e,
2519
+ 0x75, 0x6d, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x74, 0x69,
2520
+ 0x76, 0x65, 0x75, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x69, 0x67, 0x6e,
2521
+ 0x6f, 0x72, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74,
2522
+ 0x69, 0x6f, 0x6e, 0x4e, 0x56, 0x45, 0x4c, 0x4f, 0x43, 0x49, 0x54, 0x59,
2523
+ 0x5f, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x66, 0x65, 0x6e, 0x63,
2524
+ 0x65, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x68, 0x61, 0x73, 0x68, 0x61,
2525
+ 0x64, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x61, 0x6c, 0x69, 0x61,
2526
+ 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 0x6f, 0x75, 0x73, 0x75,
2527
+ 0x62, 0x70, 0x61, 0x73, 0x73, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x64, 0x61,
2528
+ 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x76, 0x69,
2529
+ 0x65, 0x77, 0x69, 0x74, 0x68, 0x2d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
2530
+ 0x74, 0x2d, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x6c,
2531
+ 0x65, 0x76, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x6c,
2532
+ 0x6f, 0x77, 0x7a, 0x65, 0x72, 0x6f, 0x77, 0x5f, 0x6d, 0x61, 0x6a, 0x6f,
2533
+ 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x6f,
2534
+ 0x70, 0x79, 0x5f, 0x5f, 0x75, 0x6e, 0x73, 0x61, 0x66, 0x65, 0x5f, 0x75,
2535
+ 0x6e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x64, 0x65, 0x66, 0x65,
2536
+ 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x6f, 0x64, 0x65, 0x66,
2537
+ 0x61, 0x75, 0x6c, 0x74, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x2d, 0x6d,
2538
+ 0x61, 0x63, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65,
2539
+ 0x64, 0x65, 0x66, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65,
2540
+ 0x6e, 0x64, 0x66, 0x6f, 0x72, 0x65, 0x61, 0x63, 0x68, 0x5f, 0x72, 0x65,
2541
+ 0x74, 0x75, 0x72, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x69, 0x7a, 0x65,
2542
+ 0x6f, 0x66, 0x65, 0x74, 0x63, 0x68, 0x54, 0x61, 0x72, 0x62, 0x61, 0x6c,
2543
+ 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6f,
2544
+ 0x6e, 0x61, 0x74, 0x6f, 0x6d, 0x69, 0x63, 0x5f, 0x75, 0x69, 0x6e, 0x74,
2545
+ 0x38, 0x5f, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x61,
2546
+ 0x74, 0x63, 0x68, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x5f,
2547
+ 0x73, 0x74, 0x61, 0x74, 0x65, 0x78, 0x74, 0x63, 0x69, 0x74, 0x65, 0x70,
2548
+ 0x73, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65,
2549
+ 0x74, 0x65, 0x72, 0x73, 0x75, 0x62, 0x73, 0x75, 0x62, 0x73, 0x65, 0x63,
2550
+ 0x74, 0x69, 0x6f, 0x6e, 0x6f, 0x73, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64,
2551
+ 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70,
2552
+ 0x6c, 0x65, 0x2d, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2d, 0x62, 0x69, 0x6e,
2553
+ 0x64, 0x65, 0x78, 0x65, 0x64, 0x65, 0x66, 0x70, 0x61, 0x72, 0x61, 0x6d,
2554
+ 0x65, 0x74, 0x65, 0x72, 0x72, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65,
2555
+ 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x63, 0x61, 0x6c, 0x6c,
2556
+ 0x61, 0x62, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x45, 0x58, 0x54, 0x72,
2557
+ 0x75, 0x65, 0x6e, 0x75, 0x6d, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x61,
2558
+ 0x79, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x45, 0x58, 0x54, 0x79,
2559
+ 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x68, 0x72,
2560
+ 0x65, 0x61, 0x64, 0x49, 0x64, 0x78, 0x6f, 0x72, 0x5f, 0x65, 0x71, 0x6e,
2561
+ 0x61, 0x72, 0x72, 0x61, 0x79, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
2562
+ 0x4e, 0x56, 0x65, 0x72, 0x62, 0x61, 0x74, 0x69, 0x6d, 0x70, 0x6c, 0x65,
2563
+ 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x75, 0x62, 0x5f, 0x72, 0x65, 0x73, 0x6f,
2564
+ 0x75, 0x72, 0x63, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
2565
+ 0x73, 0x75, 0x62, 0x70, 0x61, 0x72, 0x61, 0x67, 0x72, 0x61, 0x70, 0x68,
2566
+ 0x69, 0x6e, 0x74, 0x5f, 0x73, 0x63, 0x72, 0x65, 0x65, 0x6e, 0x5f, 0x74,
2567
+ 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x5f, 0x65,
2568
+ 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x66, 0x6e, 0x61, 0x6d, 0x65, 0x6c,
2569
+ 0x69, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x63, 0x61, 0x73, 0x74,
2570
+ 0x61, 0x63, 0x6b, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x6c, 0x61,
2571
+ 0x62, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x4e, 0x56, 0x61, 0x72, 0x69,
2572
+ 0x61, 0x6e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x76, 0x61, 0x72, 0x61,
2573
+ 0x72, 0x67, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
2574
+ 0x6f, 0x6e, 0x6f, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x72, 0x61, 0x6e,
2575
+ 0x73, 0x69, 0x65, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x66, 0x69, 0x6c, 0x65,
2576
+ 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x78, 0x74, 0x62, 0x66, 0x6c,
2577
+ 0x6f, 0x61, 0x74, 0x31, 0x36, 0x5f, 0x74, 0x6f, 0x53, 0x74, 0x72, 0x69,
2578
+ 0x6e, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x69, 0x75, 0x6d, 0x70, 0x72,
2579
+ 0x6f, 0x76, 0x69, 0x64, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
2580
+ 0x61, 0x6c, 0x73, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x79, 0x6e, 0x61, 0x6d,
2581
+ 0x69, 0x63, 0x5f, 0x63, 0x61, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x63,
2582
+ 0x61, 0x6c, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x63, 0x6f, 0x70, 0x79, 0x68,
2583
+ 0x69, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f,
2584
+ 0x62, 0x6c, 0x61, 0x63, 0x6b, 0x65, 0x63, 0x63, 0x61, 0x6b, 0x32, 0x35,
2585
+ 0x36, 0x68, 0x69, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c,
2586
+ 0x74, 0x5f, 0x77, 0x68, 0x69, 0x74, 0x65, 0x72, 0x61, 0x62, 0x6c, 0x65,
2587
+ 0x71, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x6f, 0x69, 0x6e, 0x6c, 0x69,
2588
+ 0x6e, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x72, 0x61, 0x76, 0x65,
2589
+ 0x72, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x63, 0x72, 0x65,
2590
+ 0x63, 0x6f, 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67,
2591
+ 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x6e, 0x64,
2592
+ 0x66, 0x6f, 0x72, 0x61, 0x6c, 0x6c, 0x73, 0x74, 0x6c, 0x69, 0x73, 0x74,
2593
+ 0x69, 0x6e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x68, 0x61, 0x72, 0x65,
2594
+ 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x70, 0x61, 0x72, 0x61, 0x6d,
2595
+ 0x73, 0x67, 0x64, 0x5f, 0x73, 0x63, 0x65, 0x6e, 0x65, 0x77, 0x74, 0x79,
2596
+ 0x70, 0x65, 0x64, 0x65, 0x73, 0x63, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67,
2597
+ 0x61, 0x73, 0x6c, 0x65, 0x66, 0x74, 0x79, 0x70, 0x65, 0x66, 0x72, 0x6f,
2598
+ 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74,
2599
+ 0x69, 0x6f, 0x6e, 0x6f, 0x6e, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x6c, 0x64,
2600
+ 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x61, 0x64, 0x64, 0x5f, 0x73, 0x75, 0x62,
2601
+ 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x5f, 0x62,
2602
+ 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6e,
2603
+ 0x65, 0x64, 0x65, 0x66, 0x63, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b,
2604
+ 0x73, 0x70, 0x61, 0x63, 0x65, 0x6e, 0x64, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
2605
+ 0x65, 0x6e, 0x64, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x79, 0x70, 0x65,
2606
+ 0x6e, 0x61, 0x6d, 0x65, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63,
2607
+ 0x65, 0x6e, 0x64, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x63, 0x6b,
2608
+ 0x2d, 0x74, 0x79, 0x70, 0x65, 0x64, 0x65, 0x66, 0x63, 0x6f, 0x6e, 0x73,
2609
+ 0x74, 0x61, 0x6e, 0x74, 0x61, 0x67, 0x62, 0x6f, 0x64, 0x79, 0x5f, 0x5f,
2610
+ 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73,
2611
+ 0x66, 0x65, 0x72, 0x61, 0x73, 0x65, 0x74, 0x6c, 0x6f, 0x63, 0x61, 0x6c,
2612
+ 0x6c, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x72, 0x65, 0x6e,
2613
+ 0x65, 0x77, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x65, 0x71,
2614
+ 0x75, 0x61, 0x6c, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x75, 0x6d, 0x65,
2615
+ 0x72, 0x61, 0x74, 0x65, 0x78, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x76, 0x61,
2616
+ 0x6c, 0x2d, 0x77, 0x68, 0x65, 0x6e, 0x2d, 0x66, 0x69, 0x72, 0x73, 0x74,
2617
+ 0x77, 0x6f, 0x72, 0x64, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x73,
2618
+ 0x69, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x72, 0x69, 0x64, 0x44, 0x69,
2619
+ 0x6d, 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x78, 0x74, 0x6e, 0x61,
2620
+ 0x6d, 0x65, 0x6f, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74,
2621
+ 0x69, 0x6f, 0x6e, 0x6f, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x2d, 0x66,
2622
+ 0x72, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72,
2623
+ 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x6f, 0x6e, 0x63, 0x65, 0x6e,
2624
+ 0x64, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x44, 0x69, 0x6d, 0x61, 0x74, 0x63,
2625
+ 0x68, 0x61, 0x72, 0x31, 0x36, 0x5f, 0x74, 0x62, 0x75, 0x66, 0x66, 0x65,
2626
+ 0x72, 0x61, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x58, 0x54, 0x41,
2627
+ 0x55, 0x6e, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x65, 0x69,
2628
+ 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x6e, 0x64, 0x6c, 0x6f,
2629
+ 0x63, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69,
2630
+ 0x61, 0x74, 0x65, 0x64, 0x65, 0x66, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61,
2631
+ 0x74, 0x65, 0x73, 0x74, 0x6f, 0x70, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c,
2632
+ 0x69, 0x67, 0x6e, 0x61, 0x74, 0x6f, 0x6d, 0x69, 0x63, 0x41, 0x64, 0x64,
2633
+ 0x65, 0x66, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
2634
+ 0x6e, 0x5f, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65,
2635
+ 0x41, 0x74, 0x74, 0x72, 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e,
2636
+ 0x69, 0x7a, 0x65, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x6d, 0x61,
2637
+ 0x74, 0x68, 0x65, 0x6e, 0x64, 0x6d, 0x61, 0x63, 0x72, 0x6f, 0x6c, 0x65,
2638
+ 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x6f, 0x62, 0x6a, 0x65, 0x63,
2639
+ 0x74, 0x79, 0x70, 0x65, 0x73, 0x65, 0x74, 0x74, 0x65, 0x72, 0x65, 0x6e,
2640
+ 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x61, 0x6c, 0x6c, 0x6f,
2641
+ 0x63, 0x61, 0x74, 0x65, 0x6e, 0x64, 0x77, 0x68, 0x65, 0x72, 0x65, 0x61,
2642
+ 0x64, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x6f, 0x6e, 0x6c, 0x79, 0x5f,
2643
+ 0x5f, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x62, 0x6f, 0x75, 0x6e,
2644
+ 0x64, 0x73, 0x5f, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x72, 0x65, 0x6c, 0x65,
2645
+ 0x61, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x6e, 0x64, 0x77, 0x68, 0x69,
2646
+ 0x6c, 0x65, 0x76, 0x61, 0x6c, 0x74, 0x79, 0x70, 0x65, 0x69, 0x64, 0x65,
2647
+ 0x66, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x6f, 0x6d, 0x70, 0x74,
2648
+ 0x69, 0x6d, 0x65, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x31, 0x32, 0x38,
2649
+ 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x4d, 0x41,
2650
+ 0x54, 0x52, 0x49, 0x58, 0x68, 0x69, 0x6e, 0x74, 0x5f, 0x72, 0x6f, 0x75,
2651
+ 0x67, 0x68, 0x6e, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x72,
2652
+ 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x70, 0x6f, 0x6f, 0x6c, 0x61, 0x73,
2653
+ 0x74, 0x77, 0x6f, 0x72, 0x64, 0x6c, 0x69, 0x73, 0x74, 0x72, 0x69, 0x63,
2654
+ 0x74, 0x66, 0x70, 0x73, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x74,
2655
+ 0x61, 0x62, 0x6c, 0x65, 0x78, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x65,
2656
+ 0x74, 0x68, 0x65, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x61, 0x62, 0x6c,
2657
+ 0x65, 0x78, 0x70, 0x6f, 0x73, 0x69, 0x6e, 0x67, 0x61, 0x74, 0x68, 0x65,
2658
+ 0x72, 0x65, 0x61, 0x64, 0x77, 0x72, 0x69, 0x74, 0x65, 0x78, 0x74, 0x65,
2659
+ 0x6e, 0x64, 0x65, 0x64, 0x65, 0x66, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67,
2660
+ 0x65, 0x74, 0x74, 0x65, 0x72, 0x69, 0x70, 0x65, 0x6d, 0x64, 0x31, 0x36,
2661
+ 0x30, 0x68, 0x69, 0x6e, 0x74, 0x5f, 0x72, 0x6f, 0x75, 0x67, 0x68, 0x6e,
2662
+ 0x65, 0x73, 0x73, 0x5f, 0x62, 0x69, 0x62, 0x6c, 0x69, 0x6f, 0x67, 0x72,
2663
+ 0x61, 0x70, 0x68, 0x79, 0x64, 0x72, 0x61, 0x74, 0x65, 0x78, 0x74, 0x65,
2664
+ 0x72, 0x6e, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x6f, 0x66, 0x69, 0x6e, 0x64,
2665
+ 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x68, 0x69, 0x6e, 0x74,
2666
+ 0x5f, 0x72, 0x6f, 0x75, 0x67, 0x68, 0x6e, 0x65, 0x73, 0x73, 0x5f, 0x67,
2667
+ 0x69, 0x76, 0x65, 0x6e, 0x64, 0x74, 0x79, 0x70, 0x65, 0x72, 0x6d, 0x69,
2668
+ 0x74, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67,
2669
+ 0x6f, 0x74, 0x6f, 0x64, 0x6f, 0x41, 0x73, 0x73, 0x65, 0x72, 0x74, 0x61,
2670
+ 0x72, 0x67, 0x65, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x79, 0x73, 0x70,
2671
+ 0x65, 0x63, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x78, 0x70, 0x6f, 0x72,
2672
+ 0x74, 0x73, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x78,
2673
+ 0x74, 0x65, 0x6e, 0x64, 0x73, 0x75, 0x62, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
2674
+ 0x65, 0x6c, 0x73, 0x65, 0x69, 0x66, 0x2d, 0x73, 0x6f, 0x6d, 0x65, 0x73,
2675
+ 0x73, 0x61, 0x67, 0x65, 0x71, 0x72, 0x65, 0x66, 0x69, 0x6e, 0x64, 0x5f,
2676
+ 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65,
2677
+ 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x65, 0x72, 0x69, 0x76,
2678
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x6f, 0x74, 0x6d, 0x61, 0x74, 0x63, 0x68,
2679
+ 0x61, 0x70, 0x74, 0x65, 0x72, 0x65, 0x61, 0x64, 0x6f, 0x6e, 0x6c, 0x79,
2680
+ 0x68, 0x69, 0x6e, 0x74, 0x5f, 0x72, 0x6f, 0x75, 0x67, 0x68, 0x6e, 0x65,
2681
+ 0x73, 0x73, 0x5f, 0x72, 0x65, 0x61, 0x6c, 0x70, 0x61, 0x74, 0x68, 0x69,
2682
+ 0x73, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x6f, 0x66, 0x69,
2683
+ 0x6e, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6f, 0x64,
2684
+ 0x69, 0x66, 0x69, 0x65, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72,
2685
+ 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f,
2686
+ 0x73, 0x74, 0x69, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e,
2687
+ 0x2d, 0x63, 0x61, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x61, 0x66,
2688
+ 0x65, 0x63, 0x61, 0x6c, 0x6c, 0x6f, 0x6e, 0x67, 0x62, 0x6f, 0x6f, 0x6c,
2689
+ 0x6f, 0x6e, 0x67, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x66, 0x69, 0x78, 0x65,
2690
+ 0x64, 0x33, 0x32, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4e, 0x43, 0x45, 0x5f,
2691
+ 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x4d,
2692
+ 0x41, 0x54, 0x52, 0x49, 0x58, 0x49, 0x4e, 0x56, 0x5f, 0x56, 0x49, 0x45,
2693
+ 0x57, 0x5f, 0x4d, 0x41, 0x54, 0x52, 0x49, 0x58, 0x5f, 0x5f, 0x66, 0x6f,
2694
+ 0x72, 0x63, 0x65, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x5f, 0x73,
2695
+ 0x79, 0x6e, 0x63, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x66, 0x69,
2696
+ 0x78, 0x65, 0x64, 0x36, 0x34, 0x68, 0x69, 0x6e, 0x74, 0x5f, 0x61, 0x6e,
2697
+ 0x69, 0x73, 0x6f, 0x74, 0x72, 0x6f, 0x70, 0x79, 0x68, 0x69, 0x74, 0x41,
2698
+ 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x45, 0x58, 0x54, 0x69,
2699
+ 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69,
2700
+ 0x63, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x70, 0x72, 0x6f,
2701
+ 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x69,
2702
+ 0x6e, 0x74, 0x72, 0x69, 0x6e, 0x73, 0x69, 0x63, 0x6f, 0x6e, 0x66, 0x69,
2703
+ 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x6f, 0x61, 0x6c, 0x69,
2704
+ 0x61, 0x73, 0x63, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x77, 0x65, 0x69,
2705
+ 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x2d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73,
2706
+ 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x67, 0x75, 0x61, 0x72,
2707
+ 0x64, 0x65, 0x66, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x75, 0x6c, 0x74,
2708
+ 0x6c, 0x69, 0x6e, 0x65, 0x76, 0x65, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72,
2709
+ 0x65, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x71, 0x76,
2710
+ 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6c, 0x65, 0x6e, 0x73, 0x75, 0x72, 0x65,
2711
+ 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x72,
2712
+ 0x61, 0x69, 0x74, 0x75, 0x70, 0x6c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73,
2713
+ 0x6d, 0x61, 0x6c, 0x6c, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,
2714
+ 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x6e, 0x74,
2715
+ 0x65, 0x6e, 0x74, 0x61, 0x69, 0x6c, 0x69, 0x6b, 0x65, 0x78, 0x69, 0x73,
2716
+ 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x78, 0x70, 0x6f, 0x73,
2717
+ 0x65, 0x61, 0x6c, 0x65, 0x64, 0x65, 0x66, 0x6d, 0x61, 0x63, 0x72, 0x6f,
2718
+ 0x70, 0x65, 0x6e, 0x41, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x53, 0x74, 0x61,
2719
+ 0x74, 0x69, 0x63, 0x5f, 0x61, 0x73, 0x73, 0x65, 0x72, 0x74, 0x72, 0x61,
2720
+ 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x69,
2721
+ 0x76, 0x69, 0x6e, 0x67, 0x74, 0x72, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74,
2722
+ 0x72, 0x75, 0x65, 0x63, 0x68, 0x6f, 0x2e, 0x61, 0x64, 0x64, 0x62, 0x69,
2723
+ 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x6c, 0x73, 0x69,
2724
+ 0x66, 0x2d, 0x6e, 0x6f, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x68, 0x69, 0x74,
2725
+ 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4e, 0x56, 0x65,
2726
+ 0x63, 0x74, 0x6f, 0x72, 0x32, 0x75, 0x6e, 0x77, 0x69, 0x6e, 0x64, 0x2d,
2727
+ 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x65, 0x66, 0x6d,
2728
+ 0x65, 0x74, 0x68, 0x6f, 0x64, 0x65, 0x66, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
2729
+ 0x65, 0x6d, 0x62, 0x65, 0x64, 0x65, 0x66, 0x73, 0x74, 0x72, 0x75, 0x63,
2730
+ 0x74, 0x78, 0x77, 0x69, 0x74, 0x68, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x2d,
2731
+ 0x66, 0x69, 0x6c, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x44, 0x49, 0x46, 0x46,
2732
+ 0x55, 0x53, 0x45, 0x5f, 0x4c, 0x49, 0x47, 0x48, 0x54, 0x49, 0x53, 0x5f,
2733
+ 0x4e, 0x45, 0x57, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x41, 0x5f,
2734
+ 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x5f, 0x54, 0x68,
2735
+ 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x61, 0x62,
2736
+ 0x65, 0x6c, 0x73, 0x72, 0x65, 0x74, 0x68, 0x72, 0x6f, 0x77, 0x73, 0x70,
2737
+ 0x72, 0x69, 0x6e, 0x74, 0x66, 0x61, 0x6c, 0x6c, 0x74, 0x68, 0x72, 0x6f,
2738
+ 0x75, 0x67, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x2d, 0x62, 0x69,
2739
+ 0x6e, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x6f, 0x74,
2740
+ 0x6c, 0x69, 0x6b, 0x65, 0x6e, 0x64, 0x64, 0x6f, 0x77, 0x6e, 0x63, 0x61,
2741
+ 0x73, 0x74, 0x64, 0x63, 0x61, 0x6c, 0x6c, 0x61, 0x6d, 0x62, 0x64, 0x61,
2742
+ 0x79, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x6e, 0x64, 0x69, 0x66,
2743
+ 0x6e, 0x64, 0x65, 0x66, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x64, 0x65, 0x66,
2744
+ 0x67, 0x72, 0x6f, 0x75, 0x70, 0x63, 0x61, 0x73, 0x74, 0x72, 0x65, 0x61,
2745
+ 0x6d, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x75, 0x6e, 0x69, 0x63,
2746
+ 0x6f, 0x64, 0x65, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x49, 0x53, 0x5f,
2747
+ 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x5f, 0x63,
2748
+ 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x5f, 0x5f, 0x6d, 0x61, 0x6e,
2749
+ 0x61, 0x67, 0x65, 0x64, 0x5f, 0x5f, 0x73, 0x68, 0x66, 0x6c, 0x5f, 0x73,
2750
+ 0x79, 0x6e, 0x63, 0x5f, 0x6c, 0x6f, 0x6e, 0x67, 0x64, 0x6f, 0x75, 0x62,
2751
+ 0x6c, 0x65, 0x32, 0x63, 0x6f, 0x6d, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x5f,
2752
+ 0x69, 0x6e, 0x74, 0x32, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x5f, 0x61, 0x73,
2753
+ 0x73, 0x65, 0x72, 0x74, 0x63, 0x75, 0x64, 0x61, 0x53, 0x74, 0x72, 0x65,
2754
+ 0x61, 0x6d, 0x5f, 0x74, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x2d,
2755
+ 0x63, 0x61, 0x73, 0x65, 0x74, 0x21, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64,
2756
+ 0x65, 0x5f, 0x6f, 0x6e, 0x63, 0x65, 0x6c, 0x69, 0x66, 0x64, 0x65, 0x66,
2757
+ 0x67, 0x75, 0x61, 0x72, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76,
2758
+ 0x65, 0x6d, 0x69, 0x74, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4e, 0x43, 0x45,
2759
+ 0x5f, 0x49, 0x44, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x72, 0x79,
2760
+ 0x49, 0x53, 0x5f, 0x41, 0x42, 0x53, 0x4f, 0x4c, 0x55, 0x54, 0x45, 0x59,
2761
+ 0x45, 0x44, 0x49, 0x52, 0x45, 0x53, 0x54, 0x41, 0x52, 0x54, 0x4e, 0x41,
2762
+ 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x5f, 0x49, 0x6d, 0x61,
2763
+ 0x67, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f,
2764
+ 0x43, 0x4f, 0x4f, 0x52, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x45,
2765
+ 0x4e, 0x53, 0x49, 0x54, 0x59, 0x63, 0x5f, 0x75, 0x6c, 0x6f, 0x6e, 0x67,
2766
+ 0x6c, 0x6f, 0x6e, 0x67, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x63,
2767
+ 0x74, 0x6f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x6d, 0x70, 0x68,
2768
+ 0x65, 0x61, 0x6c, 0x74, 0x68, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x63,
2769
+ 0x61, 0x6c, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x63,
2770
+ 0x68, 0x65, 0x6d, 0x61, 0x74, 0x6d, 0x75, 0x6c, 0x6d, 0x6f, 0x64, 0x65,
2771
+ 0x63, 0x6c, 0x74, 0x79, 0x70, 0x65, 0x78, 0x65, 0x63, 0x75, 0x64, 0x61,
2772
+ 0x45, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x74, 0x69, 0x6e, 0x63, 0x6c, 0x75,
2773
+ 0x64, 0x65, 0x5f, 0x6c, 0x69, 0x62, 0x61, 0x72, 0x65, 0x6d, 0x6f, 0x64,
2774
+ 0x75, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64,
2775
+ 0x65, 0x6f, 0x6e, 0x6c, 0x79, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c,
2776
+ 0x69, 0x7a, 0x65, 0x72, 0x65, 0x69, 0x66, 0x69, 0x65, 0x64, 0x65, 0x66,
2777
+ 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x6e, 0x2d, 0x70, 0x61, 0x63, 0x6b, 0x61,
2778
+ 0x67, 0x65, 0x78, 0x6e, 0x6f, 0x74, 0x6e, 0x75, 0x6c, 0x6c, 0x69, 0x66,
2779
+ 0x79, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65,
2780
+ 0x75, 0x73, 0x65, 0x2d, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49,
2781
+ 0x53, 0x5f, 0x53, 0x59, 0x4d, 0x4c, 0x49, 0x4e, 0x4b, 0x50, 0x41, 0x54,
2782
+ 0x48, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x6c,
2783
+ 0x61, 0x73, 0x73, 0x65, 0x6d, 0x62, 0x6c, 0x65, 0x72, 0x65, 0x73, 0x68,
2784
+ 0x61, 0x70, 0x65, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x53, 0x49, 0x5a,
2785
+ 0x45, 0x4e, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x6a,
2786
+ 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x75, 0x6c, 0x6c, 0x70, 0x74, 0x72,
2787
+ 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, 0x51,
2788
+ 0x75, 0x61, 0x74, 0x65, 0x72, 0x6e, 0x69, 0x6f, 0x6e, 0x6f, 0x63, 0x69,
2789
+ 0x74, 0x65, 0x53, 0x4b, 0x59, 0x5f, 0x43, 0x4f, 0x4f, 0x52, 0x44, 0x53,
2790
+ 0x43, 0x52, 0x45, 0x45, 0x4e, 0x5f, 0x55, 0x56, 0x32, 0x5f, 0x5f, 0x67,
2791
+ 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61,
2792
+ 0x62, 0x6c, 0x65, 0x5f, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x77, 0x61, 0x72,
2793
+ 0x70, 0x53, 0x69, 0x7a, 0x65, 0x62, 0x61, 0x73, 0x65, 0x4e, 0x61, 0x6d,
2794
+ 0x65, 0x4f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2d, 0x6f, 0x75, 0x74,
2795
+ 0x72, 0x65, 0x66, 0x69, 0x6e, 0x64, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67,
2796
+ 0x62, 0x72, 0x65, 0x61, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x34, 0x63,
2797
+ 0x5f, 0x6c, 0x6f, 0x6e, 0x67, 0x6c, 0x6f, 0x6e, 0x67, 0x63, 0x6f, 0x6d,
2798
+ 0x70, 0x61, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x6c,
2799
+ 0x65, 0x78, 0x31, 0x32, 0x38, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72,
2800
+ 0x65, 0x6e, 0x74, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f,
2801
+ 0x6e, 0x6f, 0x6e, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x65, 0x66, 0x73,
2802
+ 0x75, 0x62, 0x73, 0x74, 0x72, 0x69, 0x70, 0x61, 0x63, 0x6b, 0x6f, 0x66,
2803
+ 0x66, 0x73, 0x65, 0x74, 0x66, 0x69, 0x6e, 0x64, 0x5f, 0x66, 0x69, 0x6c,
2804
+ 0x65, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x5f, 0x63, 0x61, 0x73, 0x74, 0x61,
2805
+ 0x72, 0x74, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74,
2806
+ 0x6f, 0x74, 0x68, 0x65, 0x72, 0x77, 0x69, 0x73, 0x65, 0x74, 0x71, 0x6e,
2807
+ 0x61, 0x6d, 0x65, 0x6f, 0x66, 0x69, 0x6e, 0x64, 0x5f, 0x70, 0x61, 0x74,
2808
+ 0x68, 0x69, 0x6e, 0x74, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x63, 0x6f,
2809
+ 0x6e, 0x74, 0x69, 0x67, 0x75, 0x6f, 0x75, 0x73, 0x65, 0x70, 0x61, 0x63,
2810
+ 0x6b, 0x61, 0x67, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x69,
2811
+ 0x6e, 0x67, 0x75, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x69, 0x6e, 0x74,
2812
+ 0x77, 0x69, 0x64, 0x65, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x77, 0x69,
2813
+ 0x74, 0x68, 0x2d, 0x73, 0x6c, 0x6f, 0x74, 0x73, 0x69, 0x6e, 0x74, 0x33,
2814
+ 0x32, 0x24, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x46, 0x52,
2815
+ 0x41, 0x47, 0x43, 0x4f, 0x4f, 0x52, 0x44, 0x45, 0x4c, 0x54, 0x41, 0x43,
2816
+ 0x54, 0x49, 0x56, 0x45, 0x52, 0x54, 0x45, 0x58, 0x5f, 0x4e, 0x6f, 0x72,
2817
+ 0x65, 0x74, 0x75, 0x72, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x71, 0x5f, 0x4e,
2818
+ 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x5f, 0x61, 0x6c, 0x69,
2819
+ 0x67, 0x6e, 0x5f, 0x5f, 0x6e, 0x6f, 0x6e, 0x6e, 0x75, 0x6c, 0x6c, 0x61,
2820
+ 0x79, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x6d,
2821
+ 0x62, 0x65, 0x72, 0x65, 0x73, 0x63, 0x75, 0x65, 0x61, 0x64, 0x64, 0x72,
2822
+ 0x73, 0x70, 0x61, 0x63, 0x65, 0x61, 0x64, 0x64, 0x73, 0x75, 0x66, 0x66,
2823
+ 0x69, 0x78, 0x61, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x69,
2824
+ 0x6e, 0x67, 0x61, 0x6e, 0x79, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x61,
2825
+ 0x74, 0x6f, 0x6d, 0x69, 0x63, 0x43, 0x41, 0x53, 0x54, 0x52, 0x45, 0x51,
2826
+ 0x55, 0x41, 0x4c, 0x49, 0x46, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x54, 0x41,
2827
+ 0x4c, 0x4c, 0x49, 0x43, 0x61, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x61,
2828
+ 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x62, 0x69, 0x74, 0x73,
2829
+ 0x74, 0x72, 0x75, 0x63, 0x74, 0x63, 0x6f, 0x5f, 0x72, 0x65, 0x74, 0x75,
2830
+ 0x72, 0x6e, 0x6f, 0x74, 0x64, 0x69, 0x72, 0x4f, 0x66, 0x72, 0x6f, 0x7a,
2831
+ 0x65, 0x6e, 0x73, 0x65, 0x74, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x69,
2832
+ 0x6f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
2833
+ 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x36, 0x34, 0x63, 0x6f, 0x6e,
2834
+ 0x73, 0x74, 0x65, 0x76, 0x61, 0x6c, 0x61, 0x6e, 0x64, 0x69, 0x73, 0x74,
2835
+ 0x69, 0x6e, 0x63, 0x74, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x65, 0x78, 0x70,
2836
+ 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x6f, 0x74, 0x69, 0x6e,
2837
+ 0x68, 0x65, 0x72, 0x69, 0x74, 0x65, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61,
2838
+ 0x6c, 0x61, 0x7a, 0x79, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x69, 0x6e, 0x69,
2839
+ 0x74, 0x63, 0x6f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x68, 0x69,
2840
+ 0x6e, 0x74, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x75, 0x74, 0x61, 0x74, 0x69,
2841
+ 0x6f, 0x6e, 0x75, 0x69, 0x6e, 0x74, 0x70, 0x74, 0x72, 0x65, 0x73, 0x75,
2842
+ 0x6d, 0x65, 0x69, 0x6e, 0x73, 0x74, 0x65, 0x61, 0x64, 0x6f, 0x66, 0x61,
2843
+ 0x69, 0x6c, 0x77, 0x69, 0x74, 0x68, 0x65, 0x6c, 0x70, 0x65, 0x72, 0x65,
2844
+ 0x76, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e,
2845
+ 0x74, 0x70, 0x61, 0x6e, 0x73, 0x69, 0x63, 0x68, 0x61, 0x72, 0x38, 0x5f,
2846
+ 0x74, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63, 0x69, 0x74, 0x65, 0x70, 0x72,
2847
+ 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x70, 0x72, 0x6f, 0x63, 0x65,
2848
+ 0x64, 0x75, 0x72, 0x65, 0x77, 0x69, 0x6e, 0x64, 0x65, 0x63, 0x6c, 0x61,
2849
+ 0x69, 0x6d, 0x70, 0x75, 0x72, 0x65, 0x74, 0x72, 0x79, 0x70, 0x75, 0x62,
2850
+ 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64, 0x65, 0x63, 0x6c, 0x61, 0x72, 0x65,
2851
+ 0x70, 0x77, 0x69, 0x64, 0x65, 0x63, 0x68, 0x61, 0x72, 0x61, 0x69, 0x73,
2852
+ 0x65, 0x75, 0x6e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x64, 0x65, 0x66,
2853
+ 0x69, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x64, 0x69,
2854
+ 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x77, 0x61, 0x6e, 0x74, 0x61,
2855
+ 0x72, 0x72, 0x61, 0x79, 0x77, 0x68, 0x65, 0x6e, 0x2d, 0x73, 0x6f, 0x6d,
2856
+ 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x74, 0x72,
2857
+ 0x69, 0x67, 0x68, 0x74, 0x2d, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65,
2858
+ 0x66, 0x74, 0x79, 0x70, 0x65, 0x42, 0x49, 0x4e, 0x4f, 0x52, 0x4d, 0x41,
2859
+ 0x4c, 0x69, 0x73, 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
2860
+ 0x69, 0x6e, 0x74, 0x49, 0x42, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6f,
2861
+ 0x6e, 0x65, 0x49, 0x42, 0x4f, 0x75, 0x74, 0x6c, 0x65, 0x74, 0x49, 0x74,
2862
+ 0x65, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x41, 0x5f, 0x72, 0x65, 0x61,
2863
+ 0x6c, 0x5f, 0x41, 0x6c, 0x69, 0x67, 0x6e, 0x61, 0x73, 0x73, 0x65, 0x6d,
2864
+ 0x62, 0x6c, 0x79, 0x4e, 0x4f, 0x54, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x4e,
2865
+ 0x6f, 0x64, 0x65, 0x50, 0x61, 0x74, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e,
2866
+ 0x61, 0x6e, 0x79, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x75, 0x6e, 0x65, 0x78,
2867
+ 0x70, 0x6f, 0x72, 0x74, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, 0x4e,
2868
+ 0x6f, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x5f, 0x41, 0x6c, 0x69, 0x67, 0x6e,
2869
+ 0x6f, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x43, 0x6f,
2870
+ 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x5f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69,
2871
+ 0x63, 0x5f, 0x75, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x4e, 0x6f, 0x6e,
2872
+ 0x6e, 0x75, 0x6c, 0x6c, 0x6f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f,
2873
+ 0x72, 0x70, 0x63, 0x68, 0x61, 0x72, 0x5f, 0x5f, 0x68, 0x6f, 0x73, 0x74,
2874
+ 0x5f, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x6f, 0x66, 0x65, 0x74, 0x63, 0x68,
2875
+ 0x47, 0x69, 0x74, 0x5f, 0x5f, 0x73, 0x74, 0x72, 0x6f, 0x6e, 0x67, 0x61,
2876
+ 0x62, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x65, 0x61, 0x62, 0x73, 0x74, 0x72,
2877
+ 0x61, 0x63, 0x74, 0x61, 0x6e, 0x79, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x61,
2878
+ 0x6e, 0x79, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x62, 0x61, 0x73, 0x65, 0x6e,
2879
+ 0x61, 0x6d, 0x65, 0x62, 0x6c, 0x6f, 0x62, 0x68, 0x61, 0x73, 0x68, 0x65,
2880
+ 0x6c, 0x6c, 0x6f, 0x77, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c,
2881
+ 0x78, 0x6f, 0x72, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x78, 0x62,
2882
+ 0x75, 0x69, 0x6c, 0x74, 0x69, 0x6e, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34,
2883
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6c, 0x73, 0x73, 0x6d, 0x6f,
2884
+ 0x6f, 0x74, 0x68, 0x69, 0x64, 0x69, 0x6e, 0x67, 0x63, 0x61, 0x72, 0x64,
2885
+ 0x69, 0x6e, 0x61, 0x6c, 0x63, 0x6f, 0x5f, 0x61, 0x77, 0x61, 0x69, 0x74,
2886
+ 0x63, 0x6f, 0x5f, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x65, 0x72, 0x69, 0x76,
2887
+ 0x65, 0x73, 0x62, 0x79, 0x74, 0x65, 0x73, 0x6c, 0x6f, 0x61, 0x64, 0x64,
2888
+ 0x72, 0x65, 0x73, 0x73, 0x6e, 0x6f, 0x72, 0x6d, 0x69, 0x6e, 0x75, 0x74,
2889
+ 0x65, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e,
2890
+ 0x75, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x63, 0x72,
2891
+ 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
2892
+ 0x63, 0x79, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x79, 0x74, 0x79, 0x70, 0x65,
2893
+ 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x69, 0x73, 0x5f, 0x63,
2894
+ 0x6f, 0x6e, 0x73, 0x74, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c,
2895
+ 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x66, 0x76, 0x61, 0x72,
2896
+ 0x79, 0x69, 0x6e, 0x67, 0x70, 0x61, 0x74, 0x73, 0x75, 0x62, 0x73, 0x74,
2897
+ 0x70, 0x72, 0x65, 0x66, 0x65, 0x74, 0x63, 0x68, 0x6f, 0x69, 0x63, 0x65,
2898
+ 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x70, 0x73, 0x63, 0x6d,
2899
+ 0x64, 0x6c, 0x65, 0x74, 0x75, 0x6e, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64,
2900
+ 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x6f, 0x74, 0x69, 0x6d, 0x65, 0x73,
2901
+ 0x75, 0x70, 0x65, 0x72, 0x77, 0x68, 0x65, 0x6e, 0x2d, 0x6e, 0x6f, 0x74,
2902
+ 0x77, 0x69, 0x6c, 0x64, 0x63, 0x61, 0x72, 0x64, 0x65, 0x69, 0x6e, 0x69,
2903
+ 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x61, 0x72, 0x6e,
2904
+ 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x69, 0x6c,
2905
+ 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x46, 0x6c, 0x6f, 0x61, 0x74,
2906
+ 0x33, 0x32, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x36, 0x34, 0x49, 0x4e, 0x5f,
2907
+ 0x4c, 0x49, 0x53, 0x54, 0x52, 0x4c, 0x45, 0x53, 0x53, 0x69, 0x67, 0x6e,
2908
+ 0x61, 0x6c, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x45, 0x53, 0x79, 0x6d, 0x62,
2909
+ 0x6f, 0x6c, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x33, 0x56, 0x65, 0x63,
2910
+ 0x74, 0x6f, 0x72, 0x34, 0x5f, 0x41, 0x74, 0x6f, 0x6d, 0x69, 0x63, 0x5f,
2911
+ 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
2912
+ 0x61, 0x62, 0x73, 0x70, 0x61, 0x74, 0x68, 0x69, 0x67, 0x68, 0x70, 0x61,
2913
+ 0x67, 0x65, 0x72, 0x65, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x61,
2914
+ 0x74, 0x74, 0x72, 0x64, 0x65, 0x66, 0x6e, 0x2d, 0x61, 0x75, 0x74, 0x6f,
2915
+ 0x72, 0x65, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x63, 0x62, 0x75,
2916
+ 0x66, 0x66, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x63,
2917
+ 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x6c,
2918
+ 0x79, 0x66, 0x6c, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x66, 0x6c, 0x6f, 0x61,
2919
+ 0x74, 0x33, 0x32, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x36, 0x34, 0x66, 0x6f,
2920
+ 0x72, 0x53, 0x6f, 0x6d, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e,
2921
+ 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65,
2922
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x6f, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
2923
+ 0x6e, 0x67, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x70, 0x61, 0x74,
2924
+ 0x74, 0x65, 0x72, 0x6e, 0x70, 0x61, 0x79, 0x61, 0x62, 0x6c, 0x65, 0x70,
2925
+ 0x72, 0x65, 0x63, 0x69, 0x73, 0x65, 0x70, 0x72, 0x65, 0x6c, 0x6f, 0x61,
2926
+ 0x64, 0x64, 0x6d, 0x6f, 0x64, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x70, 0x72,
2927
+ 0x65, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x73, 0x70, 0x69, 0x64, 0x6f, 0x6c,
2928
+ 0x69, 0x73, 0x74, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x70, 0x72,
2929
+ 0x6f, 0x63, 0x65, 0x73, 0x73, 0x68, 0x6f, 0x77, 0x63, 0x68, 0x61, 0x72,
2930
+ 0x5f, 0x74, 0x75, 0x6e, 0x6f, 0x77, 0x6e, 0x65, 0x64, 0x6f, 0x77, 0x6e,
2931
+ 0x74, 0x6f, 0x75, 0x6e, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x75, 0x6e, 0x73,
2932
+ 0x68, 0x69, 0x66, 0x74, 0x75, 0x6e, 0x74, 0x79, 0x70, 0x65, 0x64, 0x65,
2933
+ 0x66, 0x75, 0x6e, 0x6c, 0x65, 0x73, 0x73, 0x70, 0x6d, 0x64, 0x6f, 0x73,
2934
+ 0x65, 0x71, 0x76, 0x61, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x76,
2935
+ 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x77, 0x6f, 0x72, 0x6b, 0x64, 0x69,
2936
+ 0x72, 0x24, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x24, 0x65, 0x76, 0x65, 0x6e,
2937
+ 0x74, 0x24, 0x66, 0x69, 0x72, 0x73, 0x74, 0x24, 0x69, 0x6e, 0x64, 0x65,
2938
+ 0x78, 0x46, 0x75, 0x74, 0x75, 0x72, 0x65, 0x49, 0x47, 0x4e, 0x4f, 0x52,
2939
+ 0x45, 0x4e, 0x55, 0x4d, 0x42, 0x45, 0x52, 0x65, 0x63, 0x74, 0x32, 0x69,
2940
+ 0x6e, 0x66, 0x69, 0x78, 0x6c, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x52,
2941
+ 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, 0x5f, 0x77, 0x65, 0x61, 0x6b, 0x61,
2942
+ 0x73, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x62,
2943
+ 0x69, 0x67, 0x69, 0x6e, 0x74, 0x62, 0x69, 0x74, 0x61, 0x6e, 0x64, 0x77,
2944
+ 0x6f, 0x72, 0x64, 0x69, 0x63, 0x74, 0x62, 0x79, 0x63, 0x6f, 0x70, 0x79,
2945
+ 0x63, 0x5f, 0x63, 0x68, 0x61, 0x72, 0x63, 0x6d, 0x61, 0x74, 0x63, 0x68,
2946
+ 0x64, 0x69, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x63, 0x6f, 0x6e,
2947
+ 0x63, 0x61, 0x74, 0x63, 0x68, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x6b, 0x65,
2948
+ 0x64, 0x69, 0x6d, 0x33, 0x63, 0x6f, 0x70, 0x72, 0x6f, 0x63, 0x5f, 0x69,
2949
+ 0x6e, 0x74, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x66, 0x6c, 0x61, 0x76,
2950
+ 0x6f, 0x72, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x32, 0x66, 0x6c, 0x6f, 0x61,
2951
+ 0x74, 0x34, 0x66, 0x72, 0x65, 0x65, 0x7a, 0x65, 0x66, 0x72, 0x69, 0x65,
2952
+ 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x69, 0x6e, 0x66, 0x69, 0x78, 0x72, 0x69,
2953
+ 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x6d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x6d,
2954
+ 0x69, 0x6e, 0x74, 0x65, 0x64, 0x6f, 0x74, 0x6f, 0x6d, 0x6b, 0x6c, 0x69,
2955
+ 0x6e, 0x6b, 0x70, 0x61, 0x72, 0x66, 0x6f, 0x72, 0x70, 0x61, 0x73, 0x63,
2956
+ 0x61, 0x6c, 0x70, 0x72, 0x61, 0x67, 0x6d, 0x61, 0x79, 0x62, 0x65, 0x67,
2957
+ 0x69, 0x6e, 0x2d, 0x6e, 0x73, 0x71, 0x72, 0x74, 0x70, 0x72, 0x6f, 0x6d,
2958
+ 0x70, 0x74, 0x70, 0x73, 0x69, 0x74, 0x65, 0x6d, 0x69, 0x78, 0x65, 0x64,
2959
+ 0x69, 0x65, 0x71, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x64, 0x65, 0x63,
2960
+ 0x6c, 0x69, 0x6b, 0x65, 0x75, 0x66, 0x69, 0x78, 0x65, 0x64, 0x69, 0x76,
2961
+ 0x61, 0x65, 0x78, 0x70, 0x72, 0x6f, 0x67, 0x31, 0x75, 0x69, 0x6e, 0x74,
2962
+ 0x31, 0x36, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x75, 0x69, 0x6e, 0x74,
2963
+ 0x36, 0x34, 0x76, 0x61, 0x74, 0x79, 0x70, 0x65, 0x76, 0x6f, 0x6c, 0x75,
2964
+ 0x6d, 0x65, 0x24, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x45, 0x47, 0x49, 0x4e,
2965
+ 0x44, 0x45, 0x58, 0x42, 0x61, 0x73, 0x69, 0x73, 0x69, 0x7a, 0x65, 0x43,
2966
+ 0x6f, 0x6c, 0x6f, 0x72, 0x46, 0x41, 0x4c, 0x53, 0x45, 0x4c, 0x6f, 0x6e,
2967
+ 0x67, 0x46, 0x61, 0x6c, 0x73, 0x65, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x49,
2968
+ 0x6e, 0x74, 0x36, 0x34, 0x4d, 0x61, 0x79, 0x62, 0x65, 0x4e, 0x65, 0x76,
2969
+ 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x5f, 0x42, 0x6f, 0x6f, 0x6c,
2970
+ 0x61, 0x62, 0x6f, 0x72, 0x74, 0x61, 0x66, 0x74, 0x65, 0x72, 0x62, 0x69,
2971
+ 0x74, 0x6f, 0x72, 0x62, 0x79, 0x72, 0x65, 0x66, 0x61, 0x6c, 0x73, 0x65,
2972
+ 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x63, 0x6f,
2973
+ 0x6e, 0x64, 0x70, 0x61, 0x6e, 0x69, 0x63, 0x72, 0x61, 0x74, 0x65, 0x66,
2974
+ 0x6c, 0x75, 0x73, 0x68, 0x6c, 0x66, 0x6f, 0x6c, 0x64, 0x6c, 0x66, 0x6f,
2975
+ 0x6c, 0x64, 0x72, 0x68, 0x6f, 0x75, 0x72, 0x73, 0x61, 0x79, 0x69, 0x66,
2976
+ 0x6e, 0x65, 0x71, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x69, 0x6e, 0x6f, 0x75,
2977
+ 0x74, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x69, 0x6e, 0x72, 0x65, 0x66, 0x31,
2978
+ 0x32, 0x38, 0x69, 0x73, 0x6e, 0x6f, 0x74, 0x69, 0x73, 0x73, 0x65, 0x74,
2979
+ 0x6d, 0x69, 0x78, 0x69, 0x6e, 0x66, 0x6f, 0x6d, 0x6b, 0x64, 0x69, 0x72,
2980
+ 0x6d, 0x6c, 0x6f, 0x61, 0x64, 0x70, 0x61, 0x74, 0x63, 0x68, 0x61, 0x6e,
2981
+ 0x70, 0x61, 0x75, 0x73, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x67, 0x32, 0x70,
2982
+ 0x72, 0x6f, 0x67, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x64, 0x75, 0x6e, 0x69,
2983
+ 0x6f, 0x6e, 0x75, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x78, 0x75, 0x6e, 0x73,
2984
+ 0x65, 0x74, 0x75, 0x73, 0x69, 0x7a, 0x65, 0x76, 0x61, 0x61, 0x72, 0x67,
2985
+ 0x76, 0x61, 0x72, 0x65, 0x66, 0x6c, 0x61, 0x74, 0x76, 0x70, 0x61, 0x74,
2986
+ 0x68, 0x61, 0x6c, 0x66, 0x6c, 0x65, 0x74, 0x77, 0x65, 0x65, 0x6b, 0x73,
2987
+ 0x68, 0x72, 0x65, 0x66, 0x6c, 0x69, 0x70, 0x6f, 0x70, 0x64, 0x24, 0x6f,
2988
+ 0x64, 0x64, 0x41, 0x41, 0x42, 0x42, 0x4f, 0x4f, 0x4c, 0x42, 0x79, 0x74,
2989
+ 0x65, 0x43, 0x68, 0x61, 0x72, 0x43, 0x72, 0x65, 0x66, 0x6d, 0x61, 0x70,
2990
+ 0x6f, 0x77, 0x4e, 0x55, 0x4c, 0x4c, 0x4e, 0x6f, 0x6e, 0x65, 0x53, 0x65,
2991
+ 0x6c, 0x66, 0x31, 0x36, 0x56, 0x6f, 0x69, 0x64, 0x5f, 0x63, 0x6d, 0x64,
2992
+ 0x62, 0x61, 0x6e, 0x64, 0x62, 0x6e, 0x6f, 0x74, 0x62, 0x78, 0x6f, 0x72,
2993
+ 0x63, 0x68, 0x6f, 0x70, 0x77, 0x64, 0x63, 0x72, 0x65, 0x66, 0x33, 0x32,
2994
+ 0x68, 0x65, 0x61, 0x64, 0x68, 0x69, 0x64, 0x65, 0x68, 0x6f, 0x6d, 0x65,
2995
+ 0x69, 0x66, 0x65, 0x71, 0x69, 0x6f, 0x74, 0x61, 0x62, 0x69, 0x31, 0x36,
2996
+ 0x6a, 0x6f, 0x69, 0x6e, 0x75, 0x6e, 0x69, 0x74, 0x75, 0x73, 0x65, 0x73,
2997
+ 0x76, 0x31, 0x32, 0x38, 0x76, 0x6f, 0x69, 0x64, 0x41, 0x6e, 0x79, 0x49,
2998
+ 0x4d, 0x50, 0x49, 0x4e, 0x46, 0x49, 0x6e, 0x66, 0x36, 0x34, 0x4d, 0x61,
2999
+ 0x70, 0x4e, 0x41, 0x4e, 0x61, 0x4e, 0x61, 0x54, 0x4e, 0x69, 0x6c, 0x4f,
3000
+ 0x46, 0x46, 0x52, 0x49, 0x44, 0x53, 0x65, 0x74, 0x61, 0x73, 0x6d, 0x79,
3001
+ 0x61, 0x73, 0x72, 0x62, 0x73, 0x6c, 0x62, 0x73, 0x72, 0x63, 0x6c, 0x73,
3002
+ 0x63, 0x6d, 0x70, 0x63, 0x6e, 0x65, 0x63, 0x6f, 0x73, 0x66, 0x38, 0x30,
3003
+ 0x69, 0x33, 0x32, 0x69, 0x36, 0x34, 0x69, 0x73, 0x7a, 0x69, 0x70, 0x75,
3004
+ 0x31, 0x36, 0x75, 0x33, 0x32, 0x75, 0x36, 0x34, 0x75, 0x72, 0x6c, 0x75,
3005
+ 0x73, 0x7a, 0x41, 0x4f, 0x69, 0x38, 0x75, 0x38,
3006
+};
3007
+
3008
+static const u8 data_segment_data_w2c_highlights_d55[] = {
3009
+ 0x02, 0x0b, 0x05, 0x0a, 0x01, 0x06, 0x05, 0x0e, 0x0c, 0x0f, 0x0d, 0x00,
3010
+ 0x00, 0x3d, 0x00, 0x00, 0x51, 0xc3, 0x20, 0x88, 0x41, 0x18, 0x4b, 0x29,
3011
+ 0x30, 0x10, 0xc6, 0x48, 0xbb, 0xf8, 0x30, 0xea, 0x20, 0x18, 0xb2, 0x25,
3012
+ 0x28, 0xea, 0x6b, 0x38, 0x45, 0x22, 0x38, 0x06, 0x6e, 0x28, 0xc1, 0xf8,
3013
+ 0x30, 0xbb, 0xf8, 0x28, 0xc9, 0xec, 0x20, 0xfd, 0xf2, 0x48, 0x22, 0xfb,
3014
+ 0x20, 0x81, 0x28, 0x38, 0x3f, 0x6c, 0x28, 0x46, 0x60, 0x10, 0xd1, 0x26,
3015
+ 0x28, 0x1b, 0x2f, 0x28, 0xeb, 0x23, 0x20, 0x46, 0x61, 0x10, 0xab, 0xae,
3016
+ 0x20, 0x4f, 0x21, 0x10, 0xcd, 0x8c, 0x50, 0x94, 0x2e, 0x58, 0xb5, 0xf8,
3017
+ 0x30, 0x94, 0x9b, 0x20, 0xe0, 0x76, 0x40, 0x28, 0x60, 0x10, 0xb6, 0x69,
3018
+ 0x20, 0x5f, 0xba, 0x28, 0x42, 0x81, 0x30, 0x02, 0x21, 0x20, 0xc7, 0xf8,
3019
+ 0x30, 0x06, 0xfa, 0x28, 0x01, 0x80, 0x10, 0x00, 0x00, 0x12, 0x00, 0x13,
3020
+ 0x00, 0x11, 0x00, 0x15, 0x00, 0x03, 0x00, 0x07, 0x00, 0x3c,
3021
+};
3022
+
3023
+static const u8 data_segment_data_w2c_highlights_d56[] = {
3024
+ 0x02,
3025
+};
3026
+
3027
+static const u8 data_segment_data_w2c_highlights_d57[] = {
3028
+ 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x10, 0x08, 0x00, 0x00, 0x00, 0x00,
3029
+ 0x02, 0x00, 0x08, 0x41, 0x61, 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
3030
+ 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
3031
+ 0x00, 0x00, 0x00, 0x00, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x23, 0x00,
3032
+ 0x01, 0x02, 0x00, 0x00, 0x10, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
3033
+ 0x00, 0x00, 0x00, 0x00, 0x80, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00,
3034
+ 0x02, 0x82, 0x00, 0x00, 0x00, 0x01, 0x02, 0x84, 0x20, 0x84, 0x00, 0x00,
3035
+ 0x00, 0x00, 0x01, 0x00, 0x01, 0x80, 0x41, 0x00, 0x01, 0x82, 0x00, 0x00,
3036
+ 0x00, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x10, 0x02, 0x00,
3037
+ 0x41, 0x41, 0x41, 0x41, 0x61, 0x01, 0x61, 0x41, 0x41, 0x41, 0x41, 0x41,
3038
+ 0x41, 0x51, 0x51, 0x41, 0x41,
3039
+};
3040
+
3041
+static const u8 data_segment_data_w2c_highlights_d58[] = {
3042
+ 0x01, 0x05, 0x00, 0x2d, 0x0a, 0x2a, 0x00, 0x12, 0x30, 0x00, 0x09, 0x07,
3043
+ 0x18, 0x27, 0x0c, 0xc6, 0x06, 0x8e, 0x06, 0x97, 0x0c, 0x6a, 0x13, 0xca,
3044
+ 0x08, 0x12, 0x0a, 0x24, 0x0b, 0x74, 0x09, 0x38, 0x0c, 0x35, 0x07, 0x30,
3045
+ 0x09, 0xfb, 0x0e, 0x07, 0x08, 0xda, 0x14, 0x83, 0x14, 0x27, 0x10, 0xbf,
3046
+ 0x0c, 0x0d, 0x0d, 0x76, 0x04, 0x57, 0x05, 0x6d, 0x10, 0x9e, 0x0a, 0x00,
3047
+ 0x00, 0x60, 0x13, 0xe5, 0x12, 0x51, 0x0b, 0x39, 0x05, 0x40, 0x11, 0x00,
3048
+ 0x00, 0x0c, 0x0a, 0x03, 0x13, 0xd5, 0x08, 0x69, 0x06, 0x79, 0x0c, 0x82,
3049
+ 0x11, 0xef, 0x06, 0x61, 0x0e, 0x1e, 0x10, 0x2a, 0x0b, 0x53, 0x0e, 0x1b,
3050
+ 0x0b, 0xb0, 0x0a, 0x5a, 0x0b, 0x92, 0x08, 0x79, 0x11, 0x18, 0x0a, 0x42,
3051
+ 0x08, 0xab, 0x08, 0xa4, 0x0c, 0x49, 0x0f, 0x21, 0x05, 0xbb, 0x06, 0x01,
3052
+ 0x0a, 0x14, 0x0d, 0x80, 0x04, 0x3f, 0x04, 0x30, 0x0e, 0xcf, 0x0a, 0xf3,
3053
+ 0x0e, 0x4c, 0x0c, 0x47, 0x08, 0xb6, 0x08, 0x3c, 0x07, 0x5b, 0x0a, 0x49,
3054
+ 0x62, 0x72, 0x65, 0x61, 0x6b, 0x4a, 0x63, 0x61, 0x73, 0x65, 0x4b, 0x63,
3055
+ 0x61, 0x74, 0x63, 0x68, 0x4c, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4d, 0x63,
3056
+ 0x6f, 0x6e, 0x73, 0x74, 0x4e, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75,
3057
+ 0x65, 0x4f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x67, 0x65, 0x72, 0x50, 0x64,
3058
+ 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x51, 0x64, 0x65, 0x6c, 0x65, 0x74,
3059
+ 0x65, 0x52, 0x64, 0x6f, 0x53, 0x65, 0x6c, 0x73, 0x65, 0x54, 0x65, 0x6e,
3060
+ 0x75, 0x6d, 0x55, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x56, 0x65, 0x78,
3061
+ 0x74, 0x65, 0x6e, 0x64, 0x73, 0x57, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x58,
3062
+ 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x6c, 0x79, 0x59, 0x66, 0x6f, 0x72, 0x5a,
3063
+ 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5b, 0x69, 0x66, 0x5c,
3064
+ 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5d, 0x69, 0x6e, 0x5e, 0x69, 0x6e,
3065
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x77,
3066
+ 0x60, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
3067
+ 0x62, 0x73, 0x75, 0x70, 0x65, 0x72, 0x63, 0x73, 0x77, 0x69, 0x74, 0x63,
3068
+ 0x68, 0x64, 0x74, 0x68, 0x69, 0x73, 0x65, 0x74, 0x68, 0x72, 0x6f, 0x77,
3069
+ 0x66, 0x74, 0x72, 0x75, 0x65, 0x67, 0x74, 0x72, 0x79, 0x68, 0x74, 0x79,
3070
+ 0x70, 0x65, 0x6f, 0x66, 0x69, 0x76, 0x61, 0x72, 0x6a, 0x76, 0x6f, 0x69,
3071
+ 0x64, 0x6b, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x6c, 0x77, 0x69, 0x74, 0x68,
3072
+ 0x6d, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x6e,
3073
+ 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x6f, 0x6c, 0x65,
3074
+ 0x74, 0x70, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x71, 0x70, 0x72,
3075
+ 0x69, 0x76, 0x61, 0x74, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63,
3076
+ 0x74, 0x65, 0x64, 0x73, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x74, 0x73,
3077
+ 0x74, 0x61, 0x74, 0x69, 0x63, 0x75, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x76,
3078
+ 0x61, 0x73, 0x77, 0x61, 0x73, 0x79, 0x6e, 0x63, 0x78, 0x61, 0x77, 0x61,
3079
+ 0x69, 0x74, 0x79, 0x66, 0x72, 0x6f, 0x6d, 0x7a, 0x67, 0x65, 0x74, 0x7b,
3080
+ 0x6f, 0x66, 0x7c, 0x73, 0x65, 0x74, 0x7d, 0x61, 0x62, 0x73, 0x74, 0x72,
3081
+ 0x61, 0x63, 0x74, 0x7e, 0x64, 0x65, 0x63, 0x6c, 0x61, 0x72, 0x65, 0x7f,
3082
+ 0x69, 0x6e, 0x66, 0x65, 0x72, 0x80, 0x69, 0x73, 0x81, 0x6b, 0x65, 0x79,
3083
+ 0x6f, 0x66, 0x82, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65,
3084
+ 0x85, 0x73, 0x61, 0x74, 0x69, 0x73, 0x66, 0x69, 0x65, 0x73, 0x86, 0x74,
3085
+ 0x79, 0x70, 0x65, 0x84, 0x72, 0x65, 0x61, 0x64, 0x6f, 0x6e, 0x6c, 0x79,
3086
+ 0x83, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65,
3087
+};
3088
+
3089
+static const u8 data_segment_data_w2c_highlights_d59[] = {
3090
+ 0xfd, 0xfd, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x01, 0xfd,
3091
+ 0x19, 0x19, 0x19, 0xfe, 0x23, 0xfd, 0xfd, 0x23, 0x19, 0x19, 0x19, 0x19,
3092
+ 0xfd, 0x1d, 0xff, 0x20, 0x20, 0x19, 0x19, 0x19, 0x19, 0x20, 0x19, 0x19,
3093
+ 0x19, 0xfd, 0x19, 0x19, 0x23, 0xfe, 0x18, 0x19, 0x19, 0x19, 0x19, 0x19,
3094
+ 0x19, 0x19, 0x20, 0x20, 0x19, 0x19, 0x19, 0x19, 0x20, 0x19, 0x2e, 0x23,
3095
+ 0x19, 0x19, 0x19, 0xfd, 0x19, 0x19, 0x19, 0x19, 0x19, 0x18, 0x19, 0x19,
3096
+ 0x19, 0x12, 0x12, 0x12, 0x13, 0x13, 0x12, 0x11, 0x12, 0x11, 0x12, 0x12,
3097
+ 0x13, 0x14, 0x11, 0x03, 0x12, 0x12, 0x13, 0x12, 0x14, 0x11, 0x11, 0x11,
3098
+ 0x07, 0x12, 0x3c, 0x12, 0x3c, 0x12, 0x03, 0x12, 0x11, 0x13, 0x11, 0x12,
3099
+ 0x11, 0x11, 0x13, 0x13, 0x11, 0x11, 0x11, 0x11, 0x11, 0x12, 0xff, 0xff,
3100
+ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
3101
+ 0xff, 0xff, 0xff,
3102
+};
3103
+
3104
+static const u8 data_segment_data_w2c_highlights_d60[] = {
3105
+ 0xb0, 0xb5, 0x17, 0x00, 0x02, 0x01, 0x00, 0x74, 0x0f, 0xa5, 0x30, 0xb0,
3106
+ 0x2a, 0x20, 0x24, 0x52, 0x28, 0x60, 0x21, 0x10, 0x02, 0x21, 0x20, 0xb1,
3107
+ 0xf4, 0x38, 0x5e, 0xe2, 0x28, 0xf2, 0x04, 0x41, 0xeb, 0xc3, 0x20, 0xa2,
3108
+ 0x38, 0x28, 0xc8, 0xea, 0x38, 0x01, 0x80, 0x10, 0xac, 0xec, 0x40, 0x50,
3109
+ 0x41, 0x10, 0x96, 0x25, 0x21, 0x4f, 0x21, 0x10, 0x49, 0x30, 0x20, 0x75,
3110
+ 0x59, 0x20, 0x86, 0x56, 0x40, 0x48, 0x39, 0x31, 0x90, 0x61, 0x20, 0xd0,
3111
+ 0x45, 0x30, 0x4f, 0xec, 0x30, 0x19, 0x2b, 0x28, 0xea, 0xa0, 0x18,
3112
+};
3113
+
3114
+static const u8 data_segment_data_w2c_highlights_d61[] = {
3115
+ 0x06, 0x0d, 0x7f, 0x05, 0x03, 0x09, 0x25, 0x24, 0x11, 0x00, 0x48, 0x05,
3116
+ 0x30, 0xb9, 0x0d, 0x2c, 0xd0, 0x99, 0x10, 0xcd, 0x80, 0x10, 0xf0, 0x41,
3117
+ 0x18, 0x60, 0x22, 0x20, 0xc7, 0x8c, 0x20, 0xe0, 0x9a, 0x28, 0xcc, 0x8b,
3118
+ 0x10, 0xb8, 0x99, 0x30, 0x7c, 0x69, 0x40, 0xad, 0x89, 0x28, 0x83, 0x98,
3119
+ 0x28, 0xc9, 0x80, 0x28, 0x42, 0x81, 0x20, 0x60, 0x21, 0x10, 0x56, 0x48,
3120
+ 0x18, 0xd0, 0x9a, 0x28, 0x12, 0x26, 0x38, 0xf9, 0x24, 0x18, 0xd8, 0x86,
3121
+ 0x18, 0x01, 0x20, 0x10, 0x2f, 0x2c, 0x20, 0xa4, 0x83, 0x30, 0x3f, 0x56,
3122
+ 0x18, 0x02, 0x21, 0x20, 0x79, 0x89, 0x28, 0xe6, 0x96, 0x30, 0x92, 0xaa,
3123
+ 0x18, 0xc3, 0x61, 0x18, 0x2a, 0x99, 0x28, 0xd4, 0x88, 0x28, 0x56, 0x8a,
3124
+ 0x28, 0x49, 0x93, 0x30, 0x7d, 0x80, 0x18, 0x0d, 0x82, 0x18, 0xea, 0x20,
3125
+ 0x18, 0x4f, 0x21, 0x10, 0xb2, 0x25, 0x50, 0xc9, 0x9b, 0x18, 0xd8, 0x94,
3126
+ 0x28, 0x1b, 0x8e, 0x18, 0x1e, 0x9b, 0x20, 0x94, 0x99, 0x30, 0xae, 0x8e,
3127
+ 0x20, 0xda, 0x85, 0x20, 0xbf, 0x9a, 0x28, 0x1e, 0x31, 0x20, 0xa3, 0x4e,
3128
+ 0x18, 0x8d, 0x92, 0x28, 0x60, 0x2e, 0x28, 0xae, 0x8e, 0x28, 0x18, 0x4e,
3129
+ 0x18, 0x94, 0x8a, 0x20, 0x4b, 0x6a, 0x40, 0x7a, 0x4c, 0x18, 0x6c, 0x80,
3130
+ 0x18, 0x00, 0x00, 0x12, 0x00, 0x15, 0x00, 0x13, 0x00, 0x0e, 0x00, 0x04,
3131
+
3132
+};
3133
+
3134
+static const u8 data_segment_data_w2c_highlights_d62[] = {
3135
+ 0x79, 0x43, 0x13, 0xfa, 0x30, 0x01, 0x36, 0x05, 0x04, 0x0f, 0x2f, 0x00,
3136
+ 0x84, 0x0e, 0x06, 0x00, 0xd0, 0x25, 0x30, 0x38, 0x86, 0x30, 0x80, 0x97,
3137
+ 0x38, 0x1f, 0x6a, 0x20, 0x02, 0x21, 0x20, 0x18, 0x6d, 0x20, 0xfc, 0x93,
3138
+ 0x48, 0x60, 0x21, 0x10, 0x4e, 0x60, 0x30, 0x5f, 0xba, 0x28, 0x84, 0x8e,
3139
+ 0x70, 0xe8, 0x4c, 0x40, 0x45, 0x22, 0x38, 0x42, 0x81, 0x68, 0x25, 0x6c,
3140
+ 0x28, 0xea, 0x20, 0x18, 0x26, 0x65, 0x20, 0x99, 0x75, 0x40, 0xeb, 0x23,
3141
+ 0x20, 0x47, 0x7a, 0x28, 0x5c, 0x89, 0x28, 0x51, 0x8a, 0x38, 0xe5, 0x7a,
3142
+ 0x28, 0x55, 0x49, 0x38, 0x2f, 0x2c, 0x20, 0x08, 0x4b, 0x20, 0x45, 0x4f,
3143
+ 0x68, 0xc4, 0x69, 0x20, 0x4b, 0x29, 0x30, 0xfe, 0x76, 0x30, 0x42, 0x81,
3144
+ 0x30, 0x1b, 0x8e, 0x40, 0xab, 0xae, 0x20, 0x4f, 0x21, 0x10, 0x29, 0x80,
3145
+ 0x68, 0xa1, 0x95, 0x40, 0x24, 0x32, 0x28, 0x94, 0x70, 0x50, 0x49, 0x95,
3146
+ 0x40, 0x57, 0x42, 0x60, 0x60, 0x48, 0x30, 0x2b, 0x8e, 0x40, 0x29, 0x40,
3147
+ 0x30, 0x04, 0x70, 0x30, 0x8a, 0x95, 0x40, 0xf0, 0x4b, 0x30, 0xb1, 0xd1,
3148
+ 0x38, 0x01, 0x60, 0x18, 0xde, 0x67, 0x28, 0xfc, 0x76, 0x40, 0x1c, 0x53,
3149
+ 0x48, 0x19, 0x2b, 0x28, 0xf6, 0x8b, 0x38, 0x94, 0x7b, 0x20, 0x00, 0x00,
3150
+ 0x12, 0x00, 0x13, 0x00, 0x38, 0x00, 0x11, 0x00, 0x03, 0x00, 0x07,
3151
+};
3152
+
3153
+static const u8 data_segment_data_w2c_highlights_d63[] = {
3154
+ 0x01, 0x00, 0x00, 0x10, 0x00, 0x0d, 0x00, 0x06, 0x0a, 0x00, 0x0e, 0x06,
3155
+ 0xdb, 0x1c, 0x18, 0x0a, 0x15, 0x07, 0x36, 0x47, 0x00, 0x01, 0x56, 0x07,
3156
+ 0x85, 0x04, 0x7d, 0x1b, 0x01, 0x3d, 0x27, 0x2a, 0xd9, 0x10, 0x31, 0x60,
3157
+ 0xc8, 0x30, 0xbc, 0x3b, 0x18, 0x55, 0x69, 0x38, 0x25, 0xec, 0x28, 0x05,
3158
+ 0x02, 0x39, 0x1f, 0xea, 0x20, 0x00, 0x00, 0x00, 0xfd, 0x10, 0x21, 0x26,
3159
+ 0x26, 0x38, 0xb7, 0xf0, 0x28, 0x42, 0x01, 0x31, 0x7a, 0x47, 0x10, 0x60,
3160
+ 0x21, 0x10, 0xae, 0x0e, 0x21, 0xab, 0x2e, 0x21, 0xce, 0x15, 0x31, 0x86,
3161
+ 0x36, 0x40, 0xec, 0x04, 0x31, 0xff, 0x65, 0x40, 0x76, 0xf3, 0x18, 0xfc,
3162
+ 0xf4, 0x20, 0x29, 0xc0, 0x30, 0x5c, 0xc9, 0x28, 0xeb, 0x23, 0x20, 0x38,
3163
+ 0xeb, 0x40, 0xab, 0x77, 0x38, 0xba, 0x17, 0x39, 0x23, 0x06, 0x51, 0x36,
3164
+ 0xe5, 0x38, 0x4f, 0x21, 0x10, 0xdf, 0x19, 0x31, 0x4e, 0x60, 0x30, 0x7c,
3165
+ 0x61, 0x18, 0xb8, 0x16, 0x41, 0xf3, 0xf5, 0x40, 0xa3, 0x0f, 0x29, 0xef,
3166
+ 0xfb, 0x18, 0xfb, 0x1a, 0x29, 0x06, 0x00, 0x11, 0xa6, 0xae, 0x30, 0x18,
3167
+ 0xed, 0x20, 0x7e, 0xc9, 0x30, 0xd1, 0x26, 0x28, 0xac, 0xc7, 0x18, 0xd1,
3168
+ 0x04, 0x49, 0x12, 0x06, 0x39, 0xe5, 0x7a, 0x28, 0x01, 0xe0, 0x18, 0x6f,
3169
+ 0x20, 0x18, 0x48, 0x09, 0x49, 0xdf, 0x09, 0x49, 0xea, 0x20, 0x18, 0x38,
3170
+ 0x39, 0x28, 0xde, 0xfb, 0x18, 0x26, 0x26, 0x48, 0xde, 0xe7, 0x28, 0x38,
3171
+ 0x06, 0x31, 0x69, 0xe8, 0x20, 0x94, 0xfb, 0x20, 0xdc, 0x88, 0x30, 0x26,
3172
+ 0x65, 0x20, 0xb1, 0x09, 0x21, 0xa6, 0x12, 0x39, 0x35, 0x19, 0x31, 0x36,
3173
+ 0xe5, 0x20, 0x00, 0x00, 0x00, 0x47, 0xe2, 0x28, 0x02, 0x21, 0x20, 0x45,
3174
+ 0x22, 0x38, 0x93, 0x64, 0x48, 0x00, 0x0f, 0x29, 0x23, 0x06, 0x31, 0x1d,
3175
+ 0x0b, 0x41, 0x00, 0x1b, 0x29, 0xde, 0xe7, 0x38, 0xe2, 0x09, 0x31, 0x21,
3176
+ 0xeb, 0x30, 0xb2, 0x05, 0x29, 0x30, 0x20, 0x30, 0xe7, 0x23, 0x40, 0xf4,
3177
+ 0x73, 0x40, 0xa1, 0x61, 0x28, 0x04, 0xf0, 0x30, 0x5f, 0x3a, 0x29, 0x51,
3178
+ 0x43, 0x21, 0x01, 0x08, 0x19, 0x24, 0x32, 0x28, 0xd0, 0x25, 0x30, 0x4b,
3179
+ 0x29, 0x30, 0x0b, 0x46, 0x28, 0xc4, 0xe9, 0x20, 0xac, 0x73, 0x48, 0xf0,
3180
+ 0xcb, 0x30, 0xdd, 0xe7, 0x40, 0x37, 0xe5, 0x30, 0xc0, 0x01, 0x41, 0x9e,
3181
+ 0x18, 0x39, 0x19, 0x2b, 0x28, 0xaa, 0xf5, 0x30, 0xfa, 0x19, 0x31, 0xf6,
3182
+ 0x0b, 0x39, 0xd5, 0x08, 0x41, 0x75, 0xf4, 0x28, 0x00, 0x00, 0x12, 0x00,
3183
+ 0x13, 0x01, 0x13, 0x02, 0x13, 0x03, 0x14, 0x03, 0x13, 0x00, 0x38, 0x00,
3184
+ 0x11, 0x04, 0x03, 0x00, 0x07,
3185
+};
3186
+
3187
+static const u8 data_segment_data_w2c_highlights_d64[] = {
3188
+ 0x02, 0x04, 0x23, 0x03, 0x00, 0x02, 0x16, 0x0e, 0x34, 0x22, 0x04, 0x22,
3189
+ 0x02, 0x15, 0x0a, 0x0a, 0x75, 0x38, 0xf0, 0x2e, 0x48, 0x9d, 0xa3, 0x28,
3190
+ 0x64, 0xd1, 0x18, 0x11, 0x2e, 0x48, 0xeb, 0xa3, 0x20, 0xb7, 0xb5, 0x20,
3191
+ 0xac, 0xc7, 0x18, 0x14, 0xb7, 0x40, 0x90, 0xc0, 0x18, 0x77, 0xc7, 0x28,
3192
+ 0x5a, 0xc0, 0x38, 0x6f, 0xa0, 0x18, 0x06, 0xe0, 0x10, 0x5f, 0x1a, 0x29,
3193
+ 0x09, 0xb7, 0x38, 0x04, 0x6f, 0x48, 0x3a, 0xd0, 0x20, 0x01, 0xe8, 0x18,
3194
+ 0x00, 0x00, 0x00, 0x74, 0x2e, 0x40, 0xb6, 0xa9, 0x50, 0x7c, 0xd8, 0x28,
3195
+ 0xe8, 0x80, 0x10, 0x3d, 0x37, 0x19, 0x19, 0xab, 0x28, 0xc8, 0xd7, 0x38,
3196
+ 0x7f, 0x6a, 0x58, 0xef, 0xc1, 0x38, 0xaf, 0x37, 0x28, 0x59, 0xaf, 0x28,
3197
+ 0xb6, 0xa9, 0x20, 0xd6, 0xb7, 0x38, 0x99, 0xb8, 0x28, 0xb0, 0x99, 0x28,
3198
+ 0xaf, 0x37, 0x20, 0x38, 0xb9, 0x28, 0x88, 0xc1, 0x18, 0xf9, 0xe4, 0x18,
3199
+ 0x70, 0xac, 0x38, 0x60, 0xa1, 0x10, 0xea, 0xa0, 0x18, 0xab, 0x0e, 0x21,
3200
+ 0xa6, 0xce, 0x30, 0xc3, 0xae, 0x30, 0x4f, 0xa1, 0x10, 0x7a, 0xc7, 0x10,
3201
+ 0x3d, 0x31, 0x40, 0x90, 0xd9, 0x20, 0x18, 0x66, 0x60, 0x7c, 0x41, 0x18,
3202
+ 0x6e, 0xba, 0x28, 0xff, 0xac, 0x20, 0xec, 0xb4, 0x48, 0x00, 0x00, 0x13,
3203
+ 0x01, 0x13, 0x02, 0x13, 0x03, 0x13, 0x04, 0x12, 0x00, 0x11, 0x00, 0x15,
3204
+ 0x00, 0x03, 0x00, 0x07,
3205
+};
3206
+
3207
+static const u8 data_segment_data_w2c_highlights_d65[] = {
3208
+ 0x29, 0x00, 0x48, 0x02, 0x00, 0x09, 0x15, 0x09, 0x0c, 0x02, 0x06, 0x73,
3209
+ 0x3c, 0x12, 0x1f, 0x12, 0x1e, 0xa4, 0x18, 0x2d, 0x8f, 0x68, 0xac, 0x52,
3210
+ 0x48, 0x07, 0x84, 0x68, 0x35, 0x81, 0x28, 0x23, 0x26, 0x50, 0x7f, 0x4c,
3211
+ 0x60, 0x87, 0x93, 0x40, 0xd6, 0x4c, 0x60, 0x20, 0xba, 0x28, 0x44, 0x97,
3212
+ 0x18, 0x86, 0x36, 0x40, 0x00, 0x00, 0x00, 0x16, 0x2b, 0x40, 0x25, 0x81,
3213
+ 0x78, 0xf3, 0x82, 0x60, 0xef, 0x24, 0x58, 0x2d, 0x81, 0x68, 0x26, 0x26,
3214
+ 0x38, 0x6c, 0x2c, 0x30, 0xa3, 0x2f, 0x28, 0xc3, 0x61, 0x18, 0x7b, 0x82,
3215
+ 0x20, 0x66, 0x97, 0x38, 0xec, 0x4d, 0x68, 0x2a, 0xa1, 0x10, 0x00, 0x00,
3216
+ 0x00, 0xc0, 0x76, 0x30, 0x00, 0x00, 0x00, 0x5a, 0x97, 0x38, 0xfb, 0x82,
3217
+ 0x20, 0x55, 0x97, 0x38, 0x79, 0x91, 0x50, 0x35, 0xa3, 0x20, 0xf9, 0x48,
3218
+ 0x80, 0xb2, 0x2a, 0x40, 0xf3, 0x82, 0x90, 0x00, 0x00, 0x00, 0x05, 0x42,
3219
+ 0x98, 0xe9, 0x98, 0x30, 0x2b, 0x82, 0x10, 0x5c, 0x84, 0x30, 0x00, 0x00,
3220
+ 0x00, 0xd5, 0x8f, 0x60, 0x12, 0x2a, 0x40, 0x25, 0x81, 0xa8, 0x02, 0x21,
3221
+ 0x20, 0xf2, 0x24, 0x40, 0x40, 0x97, 0x38, 0x57, 0x95, 0x18, 0x66, 0x25,
3222
+ 0x28, 0x74, 0x90, 0x58, 0x7c, 0x52, 0x48, 0x2d, 0x81, 0x38, 0xd3, 0xb8,
3223
+ 0x30, 0x24, 0x32, 0x28, 0x33, 0xa2, 0x10, 0x05, 0x42, 0x38, 0x19, 0x2b,
3224
+ 0x28, 0x76, 0x82, 0x30, 0xd0, 0x25, 0x30, 0x0b, 0x26, 0x28, 0x7d, 0x82,
3225
+ 0x50, 0x57, 0xb5, 0x40, 0x4f, 0x21, 0x10, 0xa8, 0x90, 0x38, 0xf1, 0x7a,
3226
+ 0x28, 0xfc, 0x4b, 0x60, 0xfb, 0x82, 0x50, 0x6f, 0x91, 0x50, 0xb3, 0xbb,
3227
+ 0x18,
3228
+};
3229
+
3230
+static const u8 data_segment_data_w2c_highlights_d66[] = {
3231
+ 0x01, 0x07, 0x1d, 0x1a, 0x04, 0x02, 0x02, 0x13, 0x1e, 0x00, 0x00, 0x00,
3232
+ 0x20, 0x24, 0x36, 0x02, 0x0a, 0x05, 0x00, 0x3a, 0x08, 0x00, 0x11, 0x06,
3233
+ 0x00, 0x2d, 0x38, 0x1c, 0x09, 0x1b, 0x90, 0x07, 0xf6, 0x90, 0x41, 0x71,
3234
+ 0x73, 0x28, 0xa7, 0x98, 0x39, 0xc8, 0x96, 0x41, 0x59, 0x2f, 0x28, 0x38,
3235
+ 0x86, 0x31, 0xb9, 0x95, 0x41, 0x1b, 0x80, 0x81, 0xcb, 0x99, 0x31, 0x4f,
3236
+ 0x21, 0x10, 0x8b, 0x8b, 0x41, 0x45, 0x22, 0x38, 0x18, 0xed, 0x20, 0xd9,
3237
+ 0x89, 0x39, 0x20, 0x94, 0x49, 0xea, 0x20, 0x18, 0xf9, 0x64, 0x19, 0x26,
3238
+ 0x8e, 0x41, 0x60, 0xa8, 0x30, 0x68, 0x41, 0x28, 0x5f, 0x1a, 0x29, 0xde,
3239
+ 0xe7, 0x28, 0x24, 0x73, 0x31, 0x01, 0x68, 0x19, 0x1f, 0xea, 0x20, 0x06,
3240
+ 0x98, 0x31, 0x67, 0xf8, 0x38, 0xe5, 0x5a, 0x28, 0x70, 0x99, 0x31, 0x01,
3241
+ 0xe0, 0x18, 0xbc, 0x9b, 0x19, 0x6e, 0x81, 0x48, 0x96, 0x69, 0x31, 0xf6,
3242
+ 0x8b, 0x39, 0x38, 0x39, 0x28, 0x19, 0x67, 0x31, 0xe7, 0x89, 0x29, 0x1f,
3243
+ 0xea, 0x40, 0x0b, 0x88, 0x61, 0x4e, 0x40, 0x30, 0xa6, 0xce, 0x30, 0xdc,
3244
+ 0xc8, 0x30, 0x29, 0x80, 0x69, 0x81, 0x87, 0x59, 0x19, 0x2b, 0x28, 0x90,
3245
+ 0x80, 0x19, 0x06, 0x60, 0x11, 0xe9, 0x93, 0x49, 0x76, 0xf4, 0x38, 0x5c,
3246
+ 0x89, 0x29, 0xab, 0x0e, 0x21, 0xfc, 0x93, 0x49, 0x26, 0x65, 0x20, 0x55,
3247
+ 0x69, 0x38, 0x94, 0xfb, 0x20, 0xeb, 0x23, 0x20, 0xcf, 0x77, 0x38, 0xbb,
3248
+ 0xa3, 0x40, 0xe8, 0x8e, 0x49, 0x2f, 0x2c, 0x20, 0x56, 0x7a, 0x29, 0x04,
3249
+ 0xf0, 0x30, 0x19, 0x67, 0x19, 0x85, 0x92, 0x51, 0xb5, 0x33, 0x48, 0x6f,
3250
+ 0x20, 0x18, 0x51, 0x8a, 0x39, 0x08, 0xeb, 0x20, 0x5c, 0x36, 0x40, 0x02,
3251
+ 0x21, 0x20, 0x00, 0x00, 0x00, 0x60, 0x21, 0x10, 0x00, 0x00, 0x00, 0xd4,
3252
+ 0x87, 0x39, 0xfe, 0xf6, 0x30, 0x21, 0x8b, 0x31, 0x29, 0xa0, 0x30, 0xb1,
3253
+ 0x31, 0x39, 0xfc, 0xf6, 0x40, 0x0d, 0x79, 0x31, 0xf0, 0xab, 0x30, 0x24,
3254
+ 0x32, 0x28, 0xbd, 0x87, 0x41, 0x4b, 0x29, 0x30, 0xd0, 0x25, 0x30, 0x4f,
3255
+ 0xcc, 0x30, 0x25, 0xec, 0x28, 0x54, 0x36, 0x40, 0x1b, 0x8e, 0x41, 0x38,
3256
+ 0x89, 0x41, 0xc9, 0x4c, 0x21, 0x1a, 0x67, 0x29, 0xe8, 0xac, 0x40, 0x43,
3257
+ 0x72, 0x29, 0xc4, 0xe9, 0x20, 0x57, 0x82, 0x61, 0x00, 0x00, 0x12, 0x00,
3258
+ 0x13, 0x01, 0x13, 0x02, 0x13, 0x03, 0x13, 0x00, 0x14, 0x00, 0x38, 0x00,
3259
+ 0x03, 0x00, 0x07, 0x00, 0x3c, 0x00, 0x19, 0x00, 0x11,
3260
+};
3261
+
3262
+static const u8 data_segment_data_w2c_highlights_d67[] = {
3263
+ 0x4e, 0x2f, 0x00, 0x30, 0x2c, 0x00, 0x06, 0x02, 0x64, 0x79, 0x30, 0x14,
3264
+ 0x70, 0x20, 0x58, 0x2d, 0x78, 0xf8, 0x72, 0x20, 0xf7, 0x2a, 0x88, 0xd2,
3265
+ 0x49, 0x38, 0xee, 0x79, 0x28, 0x11, 0x47, 0x48, 0x77, 0x8a, 0x48, 0x2b,
3266
+ 0x72, 0x20, 0x24, 0x70, 0x60, 0xeb, 0x2f, 0x58, 0xe1, 0x2f, 0x60, 0x33,
3267
+ 0x33, 0x48, 0x65, 0x8d, 0x68, 0xe5, 0x31, 0x50, 0xf7, 0x91, 0x50, 0xc6,
3268
+ 0x35, 0x40, 0x7f, 0x93, 0x48, 0x00, 0x00, 0x00, 0x15, 0x4a, 0x40, 0xaa,
3269
+ 0x83, 0x68, 0x58, 0x85, 0x98, 0x5e, 0x79, 0x30, 0xe4, 0x77, 0x30, 0x04,
3270
+ 0x70, 0x38, 0xfd, 0x51, 0x40, 0x23, 0x56, 0x40, 0xaa, 0x83, 0xa0, 0x00,
3271
+ 0x71, 0x58, 0x44, 0x79, 0x20, 0xf4, 0x8f, 0x58, 0x00, 0x00, 0x11, 0x00,
3272
+ 0x3c, 0x00, 0x38, 0x00, 0x0e,
3273
+};
3274
+
3275
+static const u8 data_segment_data_w2c_highlights_d68[] = {
3276
+ 0x01, 0x00, 0x00, 0x4e, 0x31, 0x24, 0x32, 0x01, 0x11, 0x00, 0x0a, 0x01,
3277
+ 0x25, 0x88, 0x21, 0x10, 0x21, 0x00, 0x04, 0x50, 0x11, 0x02, 0x9d, 0x25,
3278
+ 0x09, 0x00, 0x36, 0x0c, 0x5f, 0x04, 0x24, 0x09, 0xd1, 0xc0, 0x20, 0x0f,
3279
+ 0xc5, 0x31, 0xa7, 0xb8, 0x38, 0x69, 0xd6, 0x28, 0x38, 0x46, 0x31, 0xde,
3280
+ 0xc7, 0x28, 0x02, 0x21, 0x20, 0x60, 0xa0, 0x30, 0xe0, 0xa5, 0x30, 0xc5,
3281
+ 0x34, 0x48, 0x26, 0x26, 0x38, 0x00, 0x00, 0x00, 0xfe, 0xb2, 0x40, 0x57,
3282
+ 0xb6, 0x28, 0x5f, 0xfa, 0x28, 0xb3, 0xa8, 0x30, 0x6e, 0x61, 0x48, 0x71,
3283
+ 0x93, 0x28, 0x86, 0x36, 0x40, 0xd4, 0xa7, 0x38, 0x88, 0xc1, 0x19, 0xaa,
3284
+ 0xd5, 0x30, 0x04, 0xd0, 0x30, 0x28, 0x40, 0x11, 0x00, 0x00, 0x00, 0x5c,
3285
+ 0xa9, 0x28, 0xb9, 0xb5, 0x40, 0x00, 0x00, 0x00, 0x4f, 0x21, 0x10, 0xc7,
3286
+ 0x34, 0x38, 0xc3, 0xe3, 0x21, 0xd4, 0xcd, 0x49, 0x84, 0xdb, 0x21, 0x59,
3287
+ 0x2f, 0x28, 0xd1, 0xc4, 0x30, 0x40, 0xa9, 0x18, 0x05, 0x32, 0x21, 0x45,
3288
+ 0x22, 0x38, 0xcb, 0xb9, 0x30, 0xf0, 0xab, 0x30, 0xab, 0xee, 0x20, 0x36,
3289
+ 0xc5, 0x20, 0x1b, 0xae, 0x40, 0x92, 0xe2, 0x19, 0x8b, 0xab, 0x40, 0xd0,
3290
+ 0x25, 0x30, 0x4e, 0x40, 0x30, 0xac, 0xa7, 0x18, 0x19, 0x2b, 0x28, 0xc6,
3291
+ 0xc8, 0x51, 0x68, 0x41, 0x28, 0x41, 0xd4, 0x28, 0x63, 0x72, 0x31, 0xea,
3292
+ 0x20, 0x18, 0xe2, 0x49, 0x31, 0xcc, 0xc0, 0x39, 0x5f, 0x36, 0x28, 0xc9,
3293
+ 0x2c, 0x21, 0x60, 0x21, 0x10, 0x29, 0xa0, 0x30, 0x67, 0x25, 0x20, 0x4f,
3294
+ 0xb1, 0x38, 0xf9, 0xe8, 0x19, 0x94, 0xdb, 0x20, 0x01, 0xc0, 0x18, 0x3a,
3295
+ 0xae, 0x28, 0x44, 0xae, 0x40, 0x9a, 0xc9, 0x31, 0xe8, 0xae, 0x48, 0x6f,
3296
+ 0x20, 0x18, 0xe3, 0xa3, 0x18, 0xc8, 0xb6, 0x40, 0xb6, 0x29, 0x20, 0x2f,
3297
+ 0x2c, 0x20, 0x0b, 0xc8, 0x38, 0xdf, 0xc1, 0x29, 0xb7, 0xd0, 0x28, 0x0a,
3298
+ 0xae, 0x40, 0x90, 0x40, 0x19, 0xd0, 0x87, 0x21, 0xc3, 0xe1, 0x19, 0xac,
3299
+ 0xac, 0x40, 0xed, 0xaf, 0x38, 0x28, 0xad, 0x28, 0xd6, 0x37, 0x38, 0x42,
3300
+ 0x41, 0x31, 0x99, 0xd2, 0x21, 0xd9, 0xa8, 0x21, 0xeb, 0x23, 0x20, 0xc3,
3301
+ 0xca, 0x30, 0xc4, 0xc9, 0x20, 0x7b, 0xa5, 0x28, 0x51, 0x03, 0x21, 0x16,
3302
+ 0xd4, 0x38, 0x24, 0x32, 0x28, 0x23, 0xd5, 0x20, 0x4b, 0x29, 0x30, 0x1f,
3303
+ 0xca, 0x20, 0xeb, 0xb5, 0x40, 0x92, 0xea, 0x31, 0x1a, 0xb8, 0x38, 0x38,
3304
+ 0x39, 0x28, 0xd8, 0x46, 0x40, 0x6f, 0xae, 0x30, 0x26, 0x45, 0x20, 0x93,
3305
+ 0x44, 0x48, 0x8a, 0x47, 0x51, 0x18, 0xcd, 0x20, 0x01, 0xa0, 0x10, 0x25,
3306
+ 0xcc, 0x28, 0xd1, 0xc0, 0x11, 0xbb, 0x41, 0x11, 0x00, 0x00, 0x12, 0x00,
3307
+ 0x13, 0x01, 0x13, 0x02, 0x14, 0x02, 0x13, 0x00, 0x38, 0x00, 0x03, 0x00,
3308
+ 0x07, 0x00, 0x3c, 0x00, 0x15, 0x00, 0x13, 0x21, 0x13, 0x20, 0x13, 0x08,
3309
+ 0x13, 0x04, 0x13, 0x10,
3310
+};
3311
+
3312
+static const u8 data_segment_data_w2c_highlights_d69[] = {
3313
+ 0x01, 0x01, 0x09, 0x60, 0x0b, 0x0c, 0x06, 0x0b, 0x0a, 0x00, 0x07, 0x69,
3314
+ 0x1e, 0x0a, 0x16, 0x06, 0x06, 0x39, 0x23, 0x00, 0x0a, 0x00, 0x02, 0x00,
3315
+ 0x00, 0x19, 0x00, 0x08, 0x04, 0x00, 0x68, 0x02, 0x29, 0xb4, 0x48, 0x51,
3316
+ 0x03, 0x21, 0xe8, 0xc7, 0x30, 0x4f, 0x21, 0x10, 0x6c, 0xd7, 0x30, 0x18,
3317
+ 0xd5, 0x20, 0x00, 0x00, 0x00, 0xb8, 0x5a, 0x28, 0x1a, 0x78, 0x21, 0xbb,
3318
+ 0x41, 0x11, 0x5c, 0xa9, 0x28, 0x01, 0xc0, 0x18, 0xa4, 0xb7, 0x38, 0x55,
3319
+ 0x49, 0x38, 0x29, 0xa0, 0x30, 0xbf, 0xa3, 0x20, 0xc9, 0x2c, 0x21, 0x1c,
3320
+ 0xd5, 0x40, 0xcd, 0xd8, 0x30, 0xe7, 0xa9, 0x28, 0x02, 0x21, 0x20, 0x5f,
3321
+ 0xfa, 0x28, 0x3d, 0xc1, 0x30, 0x5e, 0xac, 0x38, 0x6f, 0x20, 0x18, 0x64,
3322
+ 0x78, 0x21, 0x46, 0x80, 0x11, 0xd1, 0x86, 0x40, 0xa6, 0xdb, 0x18, 0x59,
3323
+ 0x2f, 0x28, 0x7b, 0xa5, 0x28, 0xeb, 0xb5, 0x40, 0x3a, 0xd5, 0x40, 0x70,
3324
+ 0x7b, 0x21, 0xac, 0xa7, 0x18, 0x28, 0x40, 0x11, 0xab, 0xee, 0x20, 0x7c,
3325
+ 0x45, 0x21, 0x19, 0x2b, 0x28, 0x38, 0x39, 0x28, 0x3d, 0xda, 0x28, 0x04,
3326
+ 0xd0, 0x30, 0xea, 0x20, 0x18, 0x6f, 0xae, 0x30, 0x57, 0x36, 0x28, 0x92,
3327
+ 0x62, 0x18, 0x94, 0xdb, 0x20, 0x57, 0x2f, 0x38, 0x26, 0x45, 0x20, 0xc3,
3328
+ 0x61, 0x18, 0x86, 0x36, 0x40, 0x68, 0x41, 0x28, 0x33, 0xa7, 0x50, 0xc4,
3329
+ 0xc9, 0x20, 0xa1, 0xa5, 0x20, 0x4f, 0x8c, 0x30, 0xb9, 0xb5, 0x40, 0x06,
3330
+ 0xc7, 0x20, 0xd6, 0x37, 0x38, 0x30, 0x20, 0x30, 0xb9, 0xdb, 0x18, 0x60,
3331
+ 0x21, 0x10, 0x2b, 0xd3, 0x20, 0x0f, 0x37, 0x29, 0x90, 0x40, 0x19, 0x5f,
3332
+ 0x36, 0x28, 0x27, 0xc5, 0x18, 0x01, 0x8c, 0x38, 0x0a, 0xae, 0x40, 0x24,
3333
+ 0x32, 0x28, 0x4b, 0x29, 0x30, 0x0b, 0xc8, 0x38, 0xd0, 0x25, 0x30, 0x45,
3334
+ 0x22, 0x38, 0x28, 0xd0, 0x30, 0x93, 0xa4, 0x48, 0x01, 0x40, 0x11, 0x05,
3335
+ 0xb2, 0x20, 0x47, 0x47, 0x48, 0xa6, 0x8e, 0x30, 0xf0, 0xab, 0x40, 0xeb,
3336
+ 0x23, 0x20,
3337
+};
3338
+
3339
+static const u8 data_segment_data_w2c_highlights_d70[] = {
3340
+ 0x1a, 0x04, 0x05, 0xc6, 0xd3, 0x90, 0x58, 0x0e, 0x41, 0x18, 0x6b, 0x4e,
3341
+ 0x30, 0x73, 0x35, 0x18, 0x46, 0x80, 0x38, 0x6a, 0x4a, 0x50, 0x28, 0x60,
3342
+ 0x10, 0x6d, 0x20, 0x50, 0x51, 0x4f, 0x28, 0xaf, 0x47, 0x18, 0xda, 0x45,
3343
+ 0x20, 0xf9, 0x48, 0x18, 0x00, 0x5a, 0x30, 0xae, 0x58, 0x38, 0x11, 0x36,
3344
+ 0x28, 0xd9, 0x48, 0x20, 0xfe, 0x49, 0x50, 0xd2, 0x5a, 0x20, 0xf6, 0x36,
3345
+ 0x18,
3346
+};
3347
+
3348
+static const u8 data_segment_data_w2c_highlights_d71[] = {
3349
+ 0x13, 0x26, 0x02, 0x01, 0x11, 0x1f, 0x06, 0x03, 0x02, 0x4b, 0x2d, 0x0e,
3350
+ 0x00, 0x53, 0x1b, 0x18, 0x5f, 0x4a, 0x58, 0x01, 0xc0, 0x10, 0x02, 0x21,
3351
+ 0x20, 0x74, 0x4e, 0x40, 0x4d, 0x50, 0x40, 0xb6, 0xc9, 0x20, 0x3d, 0x17,
3352
+ 0x19, 0x51, 0x3a, 0x28, 0x52, 0x33, 0x30, 0xf8, 0x6e, 0x48, 0xc4, 0x46,
3353
+ 0x20, 0x91, 0x38, 0x30, 0x7f, 0x6a, 0x58, 0x64, 0xb1, 0x18, 0xff, 0x2c,
3354
+ 0x20, 0xa1, 0xa1, 0x28, 0x06, 0xc0, 0x10, 0x7c, 0x38, 0x28, 0x04, 0x8f,
3355
+ 0x48, 0xb0, 0x2a, 0x20, 0xcd, 0x74, 0x38, 0x01, 0xc8, 0x18, 0x74, 0x4e,
3356
+ 0x48, 0xef, 0xa1, 0x38, 0x7a, 0x27, 0x10, 0x38, 0x39, 0x28, 0xeb, 0x23,
3357
+ 0x20, 0x19, 0x89, 0x58, 0xab, 0xee, 0x20, 0xf9, 0xc4, 0x18, 0xa6, 0xae,
3358
+ 0x30, 0xf0, 0x85, 0x60, 0x59, 0x2f, 0x28, 0x5f, 0xfa, 0x28, 0xa1, 0x25,
3359
+ 0x20, 0xc0, 0x34, 0x28, 0x6f, 0x20, 0x18, 0x60, 0x21, 0x10, 0xdc, 0x23,
3360
+ 0x18, 0x4f, 0x21, 0x10, 0xea, 0x20, 0x18, 0x0f, 0x37, 0x29, 0x7a, 0x38,
3361
+ 0x38, 0x7c, 0x81, 0x70, 0xed, 0x23, 0x21, 0x7c, 0x41, 0x18,
3362
+};
3363
+
3364
+static const u8 data_segment_data_w2c_highlights_d72[] = {
3365
+ 0x13, 0x05, 0x07, 0x0a, 0x06, 0xa0, 0x10, 0x16, 0x51, 0xac, 0x20, 0xa1,
3366
+ 0xa1, 0x28, 0x31, 0xfb, 0x20, 0x37, 0xf7, 0x20, 0xa0, 0x6b, 0x40, 0xb0,
3367
+ 0x2a, 0x20, 0x02, 0x21, 0x20, 0x27, 0xe3, 0x18, 0xd2, 0xa8, 0x20, 0xef,
3368
+ 0xf8, 0x30, 0x42, 0x81, 0x20, 0xdc, 0x48, 0x30, 0xe3, 0xb8, 0x28, 0x52,
3369
+ 0xa6, 0x18, 0x3d, 0xfa, 0x28, 0x47, 0xf7, 0x28, 0x28, 0x60, 0x10, 0x38,
3370
+ 0xfa, 0x28, 0x4f, 0x21, 0x10, 0xa6, 0x4e, 0x30, 0xff, 0xb4, 0x28, 0xeb,
3371
+ 0x23, 0x20, 0x18, 0xf5, 0x20, 0xee, 0xc6, 0x20, 0xe8, 0xe7, 0x30, 0x29,
3372
+ 0xda, 0x28, 0x01, 0x20, 0x10, 0x46, 0x21, 0x10, 0x88, 0x21, 0x18, 0x00,
3373
+ 0x00, 0x12, 0x00, 0x14, 0x01, 0x14, 0x00, 0x13, 0x02, 0x13, 0x00, 0x03,
3374
+ 0x00, 0x38,
3375
+};
3376
+
3377
+static const u8 data_segment_data_w2c_highlights_d73[] = {
3378
+ 0x0a, 0x96, 0x01, 0x00, 0x66, 0x00, 0x47, 0x00, 0x5c, 0x05, 0x80, 0x29,
3379
+ 0x00, 0x03, 0x3f, 0x01, 0xab, 0x8e, 0x20, 0x63, 0x12, 0x31, 0x02, 0x21,
3380
+ 0x20, 0xeb, 0x23, 0x20, 0xca, 0x30, 0x38, 0x92, 0x6a, 0x18, 0x00, 0x61,
3381
+ 0x30, 0x42, 0x01, 0x21, 0x1c, 0x49, 0x41, 0xf9, 0x64, 0x18, 0xc6, 0x7b,
3382
+ 0x18, 0xdc, 0xe8, 0x30, 0x5c, 0x7b, 0x20, 0xad, 0x39, 0x28, 0x01, 0x68,
3383
+ 0x38, 0xaa, 0x39, 0x28, 0xdc, 0x23, 0x18, 0xa6, 0xce, 0x30, 0x46, 0x21,
3384
+ 0x10, 0x0b, 0xd1, 0x58, 0x51, 0x3a, 0x28, 0x4f, 0x21, 0x10, 0xdd, 0x79,
3385
+ 0x18, 0x10, 0xa6, 0x48, 0x01, 0x68, 0x18, 0x58, 0x7b, 0x20, 0x60, 0x23,
3386
+ 0x31, 0x6f, 0x20, 0x18, 0x38, 0x39, 0x28, 0x58, 0x43, 0x21, 0xf2, 0x44,
3387
+ 0x18, 0x4d, 0x7a, 0x18, 0x54, 0x7b, 0x20, 0x19, 0x67, 0x18, 0x79, 0x13,
3388
+ 0x31, 0x5f, 0x9a, 0x28, 0xb6, 0x69, 0x20, 0x06, 0x60, 0x10, 0xc3, 0x7b,
3389
+ 0x18, 0x05, 0xc2, 0x38, 0xff, 0x2c, 0x20, 0x00, 0x00, 0x12, 0x00, 0x11,
3390
+ 0x00, 0x15, 0x00, 0x03, 0x00, 0x07, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff,
3391
+ 0xff, 0xff, 0xff, 0xff, 0xff,
3392
+};
3393
+
3394
+static const u8 data_segment_data_w2c_highlights_d74[] = {
3395
+ 0x01, 0x01, 0x02, 0x06, 0x01, 0x19, 0x07, 0x02, 0x00, 0x03, 0x01, 0x02,
3396
+ 0x09, 0x0e, 0x03, 0x4f, 0x04, 0x05, 0x00, 0x01, 0x00, 0x0f, 0x00, 0x01,
3397
+ 0x45, 0x00, 0x00, 0x02, 0x11, 0x03, 0x03, 0x04, 0x01, 0x00, 0x01, 0x00,
3398
+ 0x04, 0x0e, 0x00, 0x08, 0x3c, 0x00, 0x01, 0x14, 0x04, 0x03, 0x09, 0x54,
3399
+ 0x01, 0x00, 0x14, 0x01, 0x04, 0x07, 0x00, 0x0d, 0x00, 0x16, 0x0d, 0x56,
3400
+ 0x09, 0x05, 0x1b, 0xf0, 0xeb, 0x40, 0xf9, 0x64, 0x19, 0x64, 0x6c, 0x48,
3401
+ 0xcb, 0xf9, 0x30, 0x2f, 0x2c, 0x20, 0xe3, 0x35, 0x19, 0x52, 0x31, 0x39,
3402
+ 0x02, 0x21, 0x48, 0xeb, 0x23, 0x20, 0x58, 0x36, 0x21, 0xa4, 0x36, 0x28,
3403
+ 0x67, 0x06, 0x31, 0x90, 0x04, 0x61, 0x7b, 0xe5, 0x60, 0x2f, 0xf9, 0x30,
3404
+ 0x18, 0x6e, 0x21, 0x3a, 0xec, 0x30, 0x69, 0x3a, 0x29, 0xc3, 0xcc, 0x20,
3405
+ 0xdc, 0x03, 0x19, 0xce, 0x15, 0x21, 0x92, 0x31, 0x29, 0x1a, 0x0c, 0x39,
3406
+ 0xd4, 0xe7, 0x38, 0x0f, 0x25, 0x30, 0xda, 0xf3, 0x30, 0xe3, 0x03, 0x19,
3407
+ 0xff, 0x20, 0x10, 0x93, 0xe4, 0x48, 0x28, 0x09, 0x49, 0x86, 0x60, 0x11,
3408
+ 0x4a, 0x34, 0x19, 0x11, 0x60, 0x11, 0x72, 0xe3, 0x20, 0x11, 0x2b, 0x19,
3409
+ 0x7b, 0x3a, 0x29, 0x20, 0x29, 0x49, 0xb4, 0x39, 0x21, 0x5e, 0xec, 0x38,
3410
+ 0xf1, 0xe6, 0x50, 0xa3, 0x2f, 0x28, 0x9d, 0xe3, 0x48, 0x8c, 0xe1, 0x28,
3411
+ 0xcf, 0xe2, 0x58, 0x72, 0xe0, 0x38, 0x43, 0xd2, 0x38, 0x56, 0x2a, 0x51,
3412
+ 0xa6, 0xae, 0x30, 0xd0, 0x25, 0x30, 0x05, 0xa2, 0x38, 0xd8, 0x02, 0x19,
3413
+ 0xa5, 0x24, 0x49, 0xb2, 0x25, 0x28, 0x03, 0xd4, 0x48, 0x91, 0x28, 0x48,
3414
+ 0x19, 0x2b, 0x28, 0x79, 0xef, 0x48, 0x38, 0x20, 0x19, 0x3c, 0xcf, 0x48,
3415
+ 0xa2, 0xf4, 0x20, 0x2e, 0xf5, 0x20, 0x92, 0x62, 0x11, 0x57, 0x38, 0x39,
3416
+ 0xa8, 0x66, 0x38, 0xf0, 0x61, 0x11, 0x5f, 0x2f, 0x29, 0x06, 0x60, 0x11,
3417
+ 0x5f, 0x5a, 0x29, 0xa5, 0x24, 0x41, 0x26, 0xe5, 0x20, 0x01, 0x00, 0x11,
3418
+ 0xbe, 0xf2, 0x50, 0xe8, 0xee, 0x48, 0x96, 0x34, 0x31, 0xdc, 0x68, 0x30,
3419
+ 0x04, 0xd0, 0x30, 0x4d, 0x32, 0x50, 0xdc, 0x03, 0x69, 0xd6, 0xe5, 0x20,
3420
+ 0xd2, 0x3b, 0x19, 0x87, 0x2f, 0x28, 0xbb, 0xed, 0x48, 0xee, 0x3a, 0x19,
3421
+ 0xba, 0xe5, 0x48, 0x86, 0x36, 0x40, 0xef, 0x04, 0x59, 0x4f, 0x21, 0x10,
3422
+ 0x6a, 0x2a, 0x20, 0xdb, 0x62, 0x11, 0x55, 0xee, 0x30, 0x68, 0xe1, 0x28,
3423
+ 0x8d, 0xd0, 0x38, 0xf3, 0xaa, 0x20, 0xf2, 0x44, 0x40, 0x4b, 0xce, 0x38,
3424
+ 0x64, 0x91, 0x18, 0x01, 0x68, 0x19, 0x29, 0xeb, 0x38, 0x7b, 0xe7, 0x40,
3425
+ 0x2f, 0x2c, 0x10, 0x30, 0x29, 0x48, 0xe3, 0x2a, 0x40, 0x60, 0x21, 0x10,
3426
+ 0x6c, 0x2c, 0x30, 0x86, 0xe4, 0x58, 0xfe, 0xf2, 0x40, 0xee, 0x2a, 0x29,
3427
+ 0x59, 0x22, 0x21, 0xdf, 0x43, 0x50, 0xee, 0x30, 0x31, 0x8a, 0xe6, 0x48,
3428
+ 0x9c, 0x1a, 0x29, 0x19, 0x6e, 0x19, 0x1e, 0x31, 0x20, 0x42, 0xe1, 0x20,
3429
+ 0x6d, 0x40, 0x28, 0xa0, 0xf4, 0x30, 0x5a, 0xe0, 0x20, 0xab, 0x4e, 0x21,
3430
+ 0xc0, 0xf6, 0x40, 0xb0, 0x2a, 0x20, 0xeb, 0xf5, 0x40, 0xda, 0x2a, 0x51,
3431
+ 0xc9, 0x61, 0x11, 0xfc, 0x04, 0x41, 0x7b, 0x2e, 0x21, 0x02, 0x21, 0x20,
3432
+ 0x1b, 0xee, 0x40, 0x94, 0x28, 0x30, 0x66, 0x25, 0x28, 0x90, 0x31, 0x39,
3433
+ 0xa5, 0x06, 0x51, 0x12, 0x0a, 0x41, 0x38, 0x26, 0x21, 0x56, 0x2a, 0x48,
3434
+ 0x8f, 0xf4, 0x48, 0x60, 0x22, 0x20, 0xa4, 0x2e, 0x21, 0x00, 0x00, 0x12,
3435
+ 0x00, 0x13, 0x01, 0x13, 0x02, 0x14, 0x02, 0x14, 0x00, 0x38, 0x00, 0x13,
3436
+ 0x00, 0x11, 0x00, 0x0e, 0x00, 0x03, 0x00, 0x15,
3437
+};
3438
+
3439
+static const u8 data_segment_data_w2c_highlights_d75[] = {
3440
+ 0x02, 0x36, 0xef, 0x01, 0x0a, 0x72, 0xfe, 0x0b, 0x0a, 0x00, 0x06, 0x53,
3441
+ 0x4c, 0x04, 0x41, 0xf0, 0xab, 0x40, 0x01, 0xe0, 0x18, 0x2d, 0xb1, 0x58,
3442
+ 0x0f, 0x42, 0x18, 0x40, 0xe9, 0x18, 0xdc, 0x88, 0x30, 0xa1, 0x25, 0x20,
3443
+ 0x55, 0xcf, 0x18, 0x28, 0xa0, 0x10, 0xf2, 0x24, 0x40, 0x0c, 0x98, 0x38,
3444
+ 0xc3, 0xaa, 0x30, 0x01, 0x48, 0x18, 0xea, 0x20, 0x18, 0xd4, 0xa7, 0x38,
3445
+ 0x1f, 0xd6, 0x20, 0x6f, 0x20, 0x18, 0x42, 0x61, 0x20, 0xb0, 0x2a, 0x20,
3446
+ 0x05, 0x82, 0x38, 0xb6, 0x29, 0x20, 0x19, 0x2b, 0x28, 0x1f, 0xea, 0x20,
3447
+ 0x4d, 0xf1, 0x18, 0xf3, 0xa5, 0x48, 0x30, 0x20, 0x30, 0x06, 0xc0, 0x10,
3448
+ 0xa7, 0xb8, 0x38, 0xc4, 0xe9, 0x20, 0xf1, 0xd3, 0x20, 0x4f, 0x21, 0x10,
3449
+ 0x88, 0xfb, 0x20, 0x00, 0x00, 0x00, 0xa7, 0xa1, 0x30, 0xcb, 0xc0, 0x18,
3450
+ 0x01, 0xa0, 0x10, 0x00, 0x00, 0x00, 0x74, 0x38, 0x30, 0x68, 0xa1, 0x28,
3451
+ 0xd5, 0xe0, 0x28, 0x90, 0xa0, 0x18, 0x1c, 0x34, 0x20, 0xff, 0x20, 0x10,
3452
+ 0xc0, 0xdb, 0x18, 0x60, 0x21, 0x10, 0x6a, 0xf6, 0x28, 0x92, 0xb2, 0x50,
3453
+ 0xd9, 0xa9, 0x38, 0x7f, 0xe7, 0x20, 0xc0, 0xf6, 0x30, 0x6e, 0x8a, 0x18,
3454
+ 0x0e, 0xb4, 0x38, 0xab, 0x0e, 0x21, 0x88, 0x41, 0x18, 0xd1, 0xe4, 0x30,
3455
+ 0xdc, 0xa3, 0x18, 0xf2, 0xa4, 0x18, 0x7b, 0x8e, 0x20, 0xde, 0xe7, 0x28,
3456
+ 0x46, 0x21, 0x10, 0xdc, 0xc8, 0x18, 0x6a, 0x26, 0x28, 0xad, 0x39, 0x28,
3457
+ 0x4e, 0x80, 0x30, 0x02, 0x21, 0x20, 0x9e, 0xc9, 0x18, 0x60, 0x52, 0x30,
3458
+ 0x8c, 0xa1, 0x18, 0x75, 0x39, 0x20, 0x5f, 0x1a, 0x29, 0x00, 0x00, 0x12,
3459
+ 0x00, 0x13, 0x01, 0x13, 0x02, 0x13, 0x04, 0x13, 0x00, 0x15, 0x00, 0x38,
3460
+ 0x00, 0x03,
3461
+};
3462
+
3463
+static const u8 data_segment_data_w2c_highlights_d76[] = {
3464
+ 0x1d, 0x18, 0x03, 0x16, 0x36, 0x4a, 0x3b, 0x04, 0x02, 0x00, 0x55, 0x00,
3465
+ 0x6f, 0x17, 0x08, 0x13, 0x04, 0x0f, 0x05, 0x23, 0x0d, 0x00, 0x00, 0xba,
3466
+ 0x05, 0x52, 0x00, 0x01, 0x6b, 0x0b, 0x10, 0x4b, 0xdc, 0x23, 0x18, 0x05,
3467
+ 0xd2, 0x20, 0x02, 0x21, 0x20, 0xc4, 0x09, 0x21, 0xff, 0x20, 0x10, 0x60,
3468
+ 0xc8, 0x30, 0xd6, 0x37, 0x38, 0x6e, 0x81, 0x48, 0x7b, 0x8e, 0x20, 0xea,
3469
+ 0x20, 0x18, 0xad, 0x39, 0x28, 0xa6, 0x1a, 0x29, 0x01, 0x48, 0x18, 0x68,
3470
+ 0xc1, 0x28, 0x60, 0xc0, 0x30, 0x28, 0xcd, 0x28, 0x55, 0xef, 0x18, 0x00,
3471
+ 0x00, 0x00, 0x45, 0xa2, 0x38, 0xdc, 0x88, 0x30, 0xd1, 0x00, 0x21, 0x8c,
3472
+ 0xc1, 0x18, 0x74, 0x38, 0x30, 0x15, 0x12, 0x31, 0x07, 0x19, 0x31, 0x90,
3473
+ 0xc0, 0x18, 0x16, 0x14, 0x39, 0x1f, 0x0a, 0x21, 0x5c, 0x06, 0x29, 0xc9,
3474
+ 0x6c, 0x21, 0xde, 0x07, 0x29, 0xc0, 0x34, 0x28, 0x6a, 0x26, 0x28, 0x1f,
3475
+ 0xf6, 0x20, 0x46, 0xc1, 0x10, 0x1c, 0x34, 0x20, 0xc0, 0x16, 0x31, 0xb6,
3476
+ 0x29, 0x20, 0x01, 0x00, 0x19, 0xe9, 0x19, 0x29, 0xc8, 0xb6, 0x40, 0x42,
3477
+ 0x61, 0x20, 0xd0, 0x25, 0x30, 0x71, 0x08, 0x19, 0x33, 0x16, 0x29, 0x7f,
3478
+ 0x07, 0x21, 0x4f, 0x21, 0x10, 0x4d, 0xb3, 0x30, 0x9e, 0xe9, 0x18, 0xda,
3479
+ 0x12, 0x51, 0x19, 0x2b, 0x28, 0xdb, 0x12, 0x49, 0xd1, 0x04, 0x31, 0x44,
3480
+ 0xce, 0x40, 0x0f, 0x42, 0x18, 0x30, 0x20, 0x30, 0xf1, 0xf3, 0x20, 0x5f,
3481
+ 0x3a, 0x29, 0x4d, 0x11, 0x19, 0xf2, 0x24, 0x40, 0xe8, 0x19, 0x31, 0x94,
3482
+ 0xdb, 0x20, 0x64, 0x51, 0x18, 0xf2, 0x24, 0x18, 0x88, 0x1b, 0x21, 0xcb,
3483
+ 0xd9, 0x30, 0x6f, 0x20, 0x18, 0x51, 0x43, 0x21, 0x4e, 0xc0, 0x30, 0xd8,
3484
+ 0xc6, 0x40, 0xa1, 0x25, 0x20, 0x11, 0x0b, 0x31, 0xee, 0x19, 0x31, 0x49,
3485
+ 0x30, 0x20, 0x06, 0xe0, 0x10, 0x5f, 0x36, 0x28, 0x75, 0x39, 0x20, 0xeb,
3486
+ 0xb5, 0x40, 0x69, 0x16, 0x29, 0x0e, 0xd4, 0x38, 0x60, 0x21, 0x10, 0x88,
3487
+ 0x41, 0x18, 0xd4, 0xc7, 0x38, 0xaa, 0x63, 0x11, 0xf8, 0x12, 0x29, 0x29,
3488
+ 0xc0, 0x30, 0x5b, 0x1a, 0x29, 0xf3, 0x65, 0x48, 0xb7, 0xcf, 0x30, 0xcb,
3489
+ 0xe0, 0x18, 0xf0, 0xcb, 0x30, 0x01, 0x20, 0x10, 0xd5, 0x00, 0x29, 0xdc,
3490
+ 0xe8, 0x18, 0xe4, 0x17, 0x39, 0x93, 0xc4, 0x48, 0xf4, 0x19, 0x31, 0x8a,
3491
+ 0xcf, 0x40, 0x04, 0x10, 0x31, 0x5d, 0x06, 0x21, 0xab, 0x2e, 0x21, 0xf9,
3492
+ 0xe4, 0x18, 0x56, 0x34, 0x40, 0xc0, 0xfb, 0x18, 0x28, 0xc0, 0x10, 0xb0,
3493
+ 0x2a, 0x20, 0xd9, 0xc9, 0x38, 0xc3, 0x0a, 0x19, 0x00, 0x00, 0x12, 0x00,
3494
+ 0x13, 0x01, 0x13, 0x02, 0x13, 0x03, 0x13, 0x05, 0x13, 0x00, 0x15, 0x00,
3495
+ 0x38, 0x00, 0x03, 0x00, 0x07, 0x00, 0x3c,
3496
+};
3497
+
3498
+static const u8 data_segment_data_w2c_highlights_d77[] = {
3499
+ 0x0a, 0x05, 0x17, 0x01, 0x09, 0x00, 0x43, 0x23, 0x25, 0x04, 0x04, 0x03,
3500
+ 0x01, 0x53, 0x07, 0x1e, 0x00, 0x2b, 0x09, 0x0a, 0x02, 0x0a, 0x04, 0x15,
3501
+ 0x00, 0x00, 0x0a, 0x00, 0x01, 0x04, 0x34, 0x0f, 0xa1, 0x5a, 0x29, 0xb9,
3502
+ 0x32, 0x29, 0xd8, 0x06, 0x19, 0xe3, 0x55, 0x19, 0xd9, 0x41, 0x19, 0x7f,
3503
+ 0x27, 0x21, 0x50, 0x48, 0x21, 0x92, 0x42, 0x39, 0x0f, 0x57, 0x29, 0x16,
3504
+ 0x39, 0x21, 0xd1, 0x20, 0x49, 0x06, 0x48, 0x31, 0xed, 0x63, 0x20, 0x02,
3505
+ 0x01, 0x21, 0x36, 0x2e, 0x29, 0x98, 0x25, 0x51, 0x42, 0x5b, 0x20, 0x68,
3506
+ 0xa1, 0x28, 0x6f, 0x00, 0x19, 0x6a, 0x36, 0x29, 0x57, 0x16, 0x29, 0xf3,
3507
+ 0x05, 0x31, 0x3a, 0x04, 0x21, 0x19, 0x0b, 0x29, 0x96, 0x0f, 0x31, 0x7b,
3508
+ 0x4e, 0x21, 0x60, 0x42, 0x41, 0xe7, 0x43, 0x21, 0xe0, 0x5b, 0x19, 0x01,
3509
+ 0x20, 0x19, 0x0e, 0x46, 0x29, 0xa1, 0x05, 0x21, 0x86, 0x16, 0x41, 0xea,
3510
+ 0x00, 0x19, 0x38, 0x40, 0x19, 0x42, 0x21, 0x21, 0x06, 0xe0, 0x10, 0xd9,
3511
+ 0xc8, 0x20, 0x7b, 0x05, 0x29, 0x4a, 0x54, 0x19, 0x3b, 0x5b, 0x19, 0x60,
3512
+ 0x00, 0x31, 0x29, 0x3a, 0x28, 0x9f, 0x29, 0x29, 0xc4, 0x33, 0x49, 0xa3,
3513
+ 0x49, 0x49, 0xee, 0x5a, 0x19, 0xc3, 0x2a, 0x31, 0x4f, 0x01, 0x11, 0x5f,
3514
+ 0x16, 0x29, 0xc9, 0x7b, 0x18, 0xea, 0x08, 0x41, 0x3f, 0x43, 0x70, 0x49,
3515
+ 0x10, 0x21, 0x01, 0xe8, 0x18, 0x4e, 0x20, 0x19, 0x76, 0x53, 0x19, 0x24,
3516
+ 0x12, 0x29, 0xcb, 0x4c, 0x51, 0xc3, 0x21, 0x19, 0xf9, 0xe4, 0x18, 0xd8,
3517
+ 0x42, 0x19, 0xa6, 0xce, 0x30, 0x43, 0x32, 0x39, 0xee, 0x26, 0x20, 0xd6,
3518
+ 0x17, 0x39, 0xd0, 0x05, 0x31, 0xc4, 0x29, 0x21, 0xc7, 0x41, 0x31, 0x01,
3519
+ 0xe0, 0x10, 0x30, 0x44, 0x40, 0xab, 0x4d, 0x21, 0x5f, 0x4f, 0x29, 0x7c,
3520
+ 0x81, 0x18, 0x30, 0x00, 0x31, 0x64, 0x40, 0x19, 0xde, 0x27, 0x29, 0xbb,
3521
+ 0xe1, 0x10, 0x00, 0x00, 0x03, 0x00, 0x07, 0x00, 0x3c, 0x00, 0x13, 0x01,
3522
+ 0x13, 0x02, 0x14, 0x00, 0x15, 0x00, 0x12, 0x00, 0x38, 0x00, 0x0e,
3523
+};
3524
+
3525
+static const u8 data_segment_data_w2c_highlights_d78[] = {
3526
+ 0x08, 0x01, 0x35, 0x01, 0x02, 0x0e, 0x18, 0xf3, 0xc4, 0x29, 0x20, 0x13,
3527
+ 0x3a, 0x28, 0xda, 0x2e, 0x38, 0x9b, 0x33, 0x40, 0x3d, 0x21, 0x30, 0xe8,
3528
+ 0x27, 0x30, 0xde, 0x38, 0x30, 0x72, 0x37, 0x38, 0xe8, 0x27, 0x50, 0xde,
3529
+ 0x27, 0x28, 0x00, 0x00, 0x00, 0x1b, 0x3a, 0x28, 0x26, 0x3b, 0x20, 0xa0,
3530
+ 0x27, 0x38, 0x7f, 0x2e, 0x28, 0x79, 0x37, 0x38, 0xde, 0x38, 0x28, 0xe5,
3531
+ 0x20, 0x58, 0x42, 0x3a, 0x28, 0x01, 0x20, 0x18, 0x60, 0x37, 0x30, 0xc3,
3532
+ 0x31, 0x50, 0x94, 0x3b, 0x20, 0x6a, 0x30, 0x50, 0x5f, 0x35, 0x40, 0xb6,
3533
+ 0x3b, 0x18, 0xa8, 0x31, 0x50, 0x00, 0x00, 0x38,
3534
+};
3535
+
3536
+static const u8 data_segment_data_w2c_highlights_d79[] = {
3537
+ 0x02, 0x05, 0x06, 0x0d, 0x2d, 0x3b, 0x20, 0x4e, 0x37, 0x38, 0x1b, 0x3a,
3538
+ 0x28, 0x79, 0x37, 0x38, 0xe8, 0x27, 0x30, 0x2e, 0x3a, 0x28, 0xda, 0x2e,
3539
+ 0x38, 0x33, 0x3a, 0x28, 0x47, 0x37, 0x38, 0x72, 0x37, 0x38, 0x00, 0x00,
3540
+ 0x38,
3541
+};
3542
+
3543
+static const u8 data_segment_data_w2c_highlights_d80[] = {
3544
+ 0x03, 0x02, 0x00, 0x02, 0x08, 0x0f, 0x05, 0x24, 0x06, 0x07, 0x00, 0x3c,
3545
+ 0x06, 0x03, 0x01, 0xab, 0x2e, 0x20, 0x3a, 0xa4, 0x20, 0xed, 0x63, 0x20,
3546
+ 0x36, 0x58, 0x39, 0xb6, 0xa9, 0x20, 0xac, 0xc7, 0x18, 0x02, 0xa1, 0x20,
3547
+ 0x28, 0x80, 0x10, 0x6e, 0xea, 0x30, 0x68, 0x01, 0x51, 0x5e, 0x2c, 0x39,
3548
+ 0xea, 0xa0, 0x18, 0x9e, 0x5b, 0x18, 0x19, 0xab, 0x28, 0x06, 0x80, 0x10,
3549
+ 0xf9, 0x84, 0x18, 0x51, 0x43, 0x20, 0xf2, 0xe4, 0x20, 0xbb, 0x81, 0x10,
3550
+ 0x5f, 0x3a, 0x28, 0x86, 0xb6, 0x40, 0x36, 0x4a, 0x18, 0x24, 0xb2, 0x50,
3551
+ 0xa9, 0x5b, 0x18, 0x0f, 0x77, 0x28, 0x4f, 0xa1, 0x10, 0x68, 0x01, 0x29,
3552
+ 0x49, 0xb0, 0x20, 0x01, 0x88, 0x18, 0x24, 0xb2, 0x28, 0xb4, 0x40, 0x10,
3553
+ 0x29, 0x20, 0x31, 0x57, 0xb6, 0x28, 0x26, 0x05, 0x21, 0xd0, 0xa5, 0x30,
3554
+ 0x6a, 0xa6, 0x28, 0x5c, 0xc9, 0x28, 0x01, 0x80, 0x10, 0x30, 0x40, 0x31,
3555
+ 0x5f, 0xb6, 0x28, 0x00, 0x00, 0x03, 0x00, 0x07, 0x00, 0x3c, 0x00, 0x15,
3556
+ 0x00, 0x12, 0x00, 0x13, 0x00, 0x13, 0x01, 0x13, 0x02, 0x11, 0x00, 0x0e,
3557
+
3558
+};
3559
+
3560
+static const u8 data_segment_data_w2c_highlights_d81[] = {
3561
+ 0x1b, 0x14, 0x3c, 0x01, 0xab, 0x2e, 0x20, 0xe3, 0x58, 0x18, 0xfb, 0x85,
3562
+ 0x20, 0xb9, 0x88, 0x40, 0x7c, 0x64, 0x58, 0xbd, 0x60, 0x58, 0x5f, 0x3a,
3563
+ 0x28, 0xc0, 0x60, 0x40, 0x52, 0x81, 0x40, 0x00, 0x00, 0x00, 0xc9, 0x84,
3564
+ 0x40, 0x87, 0x88, 0x58, 0x57, 0x92, 0x50, 0x3c, 0x87, 0x60, 0x51, 0x43,
3565
+ 0x20, 0x6b, 0x55, 0x18, 0x3d, 0x57, 0x18, 0xc5, 0x84, 0x60, 0x00, 0x00,
3566
+ 0x03, 0x00, 0x07, 0x00, 0x0e, 0x00, 0x31,
3567
+};
3568
+
3569
+static const u8 data_segment_data_w2c_highlights_d82[] = {
3570
+ 0x01, 0x09, 0x17, 0x36, 0x20, 0x00, 0x0d, 0x00, 0x07, 0x00, 0x00, 0x01,
3571
+ 0x21, 0x0b, 0x06, 0x08, 0x00, 0x39, 0x08, 0x16, 0x02, 0x06, 0x01, 0x04,
3572
+ 0x11, 0x00, 0x0d, 0x05, 0x15, 0x0a, 0x37, 0x06, 0x3d, 0x45, 0xa0, 0xd1,
3573
+ 0xb6, 0x38, 0x88, 0xad, 0x78, 0x85, 0x85, 0x68, 0xdf, 0xa3, 0x50, 0x22,
3574
+ 0xa7, 0x60, 0x60, 0x41, 0x10, 0xeb, 0x43, 0x20, 0xe5, 0xba, 0x28, 0xab,
3575
+ 0x2e, 0x20, 0x15, 0xb6, 0x20, 0xd0, 0xa3, 0x68, 0xc4, 0x89, 0x20, 0x2f,
3576
+ 0xb8, 0x38, 0x02, 0x41, 0x20, 0x68, 0xb4, 0x48, 0xe3, 0xa3, 0x18, 0x86,
3577
+ 0x56, 0x40, 0x17, 0xa2, 0x78, 0xe5, 0xa1, 0x38, 0x93, 0xa7, 0x70, 0x1d,
3578
+ 0xa5, 0x38, 0xea, 0x40, 0x18, 0x42, 0xb3, 0x30, 0xcd, 0xae, 0x70, 0x5c,
3579
+ 0xa9, 0x28, 0xae, 0xa5, 0x30, 0x2c, 0x8a, 0x58, 0x55, 0x86, 0x58, 0x19,
3580
+ 0x4b, 0x28, 0x2b, 0xae, 0x40, 0x03, 0xb4, 0x48, 0x5f, 0x3a, 0x28, 0xfa,
3581
+ 0xa6, 0x68, 0xee, 0xaa, 0x48, 0x04, 0xbb, 0x20, 0x26, 0xa5, 0x20, 0x4e,
3582
+ 0x60, 0x30, 0x37, 0x84, 0x60, 0x60, 0xa2, 0x88, 0x5d, 0x86, 0x30, 0x01,
3583
+ 0xa0, 0x10, 0x95, 0x80, 0xc0, 0x5c, 0x86, 0x38, 0xe0, 0xa6, 0x78, 0xad,
3584
+ 0xa1, 0x30, 0x94, 0x9b, 0x20, 0xde, 0x87, 0x28, 0x95, 0xa2, 0x48, 0x41,
3585
+ 0xb6, 0x30, 0x68, 0xa0, 0x40, 0x4f, 0x41, 0x10, 0x73, 0xa7, 0x30, 0x40,
3586
+ 0x58, 0x30, 0x01, 0x80, 0x18, 0xc9, 0xba, 0x28, 0xe4, 0xa2, 0x80, 0x9a,
3587
+ 0xb7, 0x28, 0x18, 0x41, 0x70, 0x43, 0xa4, 0x70, 0xac, 0xac, 0x40, 0xfa,
3588
+ 0xa3, 0x70, 0xa7, 0xa8, 0x30, 0x45, 0x42, 0x38, 0x04, 0x90, 0x30, 0x9c,
3589
+ 0xba, 0x28, 0xd7, 0xa0, 0x78, 0x1b, 0xae, 0x40, 0x24, 0x52, 0x28, 0xd0,
3590
+ 0x45, 0x30, 0x4b, 0x49, 0x30, 0x36, 0x84, 0x68, 0x30, 0xb7, 0x20, 0x03,
3591
+ 0x57, 0x38, 0x35, 0x40, 0x98, 0x55, 0xa9, 0x38, 0xef, 0xa1, 0x38, 0x21,
3592
+ 0x43, 0xa8, 0x75, 0xa1, 0x40, 0x36, 0x85, 0x20, 0xf0, 0xa7, 0x38, 0x00,
3593
+ 0x00, 0x03, 0x00, 0x12, 0x00, 0x13, 0x00, 0x38, 0x00, 0x11,
3594
+};
3595
+
3596
+static const u8 data_segment_data_w2c_highlights_d83[] = {
3597
+ 0x8d, 0x26, 0x0b, 0x03, 0x0f, 0x00, 0x04, 0x0d, 0x1d, 0x16, 0x0c, 0x00,
3598
+ 0x18, 0x02, 0x0c, 0x03, 0x01, 0x03, 0x74, 0x12, 0x1f, 0x1e, 0x01, 0x00,
3599
+ 0x64, 0x06, 0x11, 0x20, 0x5f, 0x04, 0x12, 0x40, 0x38, 0x81, 0x30, 0x36,
3600
+ 0xaa, 0x18, 0x50, 0x84, 0x68, 0xd1, 0x56, 0x38, 0x70, 0x84, 0x28, 0x00,
3601
+ 0x00, 0x00, 0x74, 0x84, 0x48, 0x97, 0x91, 0x50, 0x04, 0x5b, 0x20, 0x1c,
3602
+ 0x83, 0x28, 0xd1, 0x2a, 0x58, 0x3d, 0x8d, 0x60, 0xe3, 0x43, 0x18, 0x00,
3603
+ 0x60, 0x58, 0x11, 0x83, 0x50, 0x50, 0x6b, 0x80, 0xd1, 0x6b, 0x80, 0xc7,
3604
+ 0x61, 0xa8, 0x83, 0x90, 0x38, 0xda, 0x64, 0xa0, 0x32, 0x74, 0x48, 0xac,
3605
+ 0x80, 0x38, 0xbc, 0x62, 0xa8, 0xe5, 0x41, 0x38, 0x49, 0x8d, 0x78, 0x94,
3606
+ 0x93, 0x40, 0x16, 0x65, 0x70, 0x08, 0x6c, 0x80, 0xb4, 0x6c, 0x80, 0x13,
3607
+ 0x84, 0x60, 0x9a, 0x57, 0x28, 0x45, 0x8b, 0x58, 0x5c, 0x49, 0x28, 0x01,
3608
+ 0x45, 0x40, 0x7e, 0x90, 0x30, 0x13, 0x84, 0x28, 0x9c, 0x5a, 0x28, 0x40,
3609
+ 0x62, 0xc0, 0x11, 0x83, 0x80, 0x06, 0x93, 0x48, 0x7c, 0x95, 0x40, 0xc2,
3610
+ 0x60, 0x60, 0xae, 0x90, 0x38, 0x70, 0x82, 0x38, 0x5b, 0x67, 0x98, 0x27,
3611
+ 0x68, 0x90, 0x60, 0x40, 0x30, 0xb4, 0x72, 0x50, 0x92, 0x93, 0x20, 0xdf,
3612
+ 0x41, 0x70, 0x9e, 0x90, 0x58, 0x6a, 0x84, 0x58, 0xc7, 0x61, 0x70, 0x2d,
3613
+ 0x82, 0x98, 0xb4, 0xa0, 0x10, 0xd2, 0x91, 0x50, 0x20, 0x84, 0x88, 0x0e,
3614
+ 0x9a, 0x28, 0x20, 0x8f, 0x68, 0x11, 0x95, 0x40, 0x2f, 0x8d, 0x78, 0x79,
3615
+ 0x6d, 0x78, 0x01, 0x40, 0x10, 0xf0, 0x47, 0x38, 0x33, 0x82, 0x30, 0x0e,
3616
+ 0x93, 0x28, 0x41, 0x68, 0x90, 0x61, 0x84, 0x70, 0x40, 0x8b, 0x80, 0xe2,
3617
+ 0x91, 0x10, 0x41, 0x56, 0x30, 0xda, 0x64, 0x68, 0x6c, 0x67, 0x68, 0x50,
3618
+ 0x85, 0x40, 0x25, 0x82, 0x48, 0x00, 0x60, 0xe8, 0x38, 0x8d, 0x30, 0x03,
3619
+ 0x83, 0x28, 0xac, 0x80, 0x90, 0x6d, 0x25, 0x58, 0x61, 0x84, 0x40, 0xd9,
3620
+ 0x98, 0x30, 0x00, 0x00, 0x00, 0x38, 0x83, 0x40, 0xab, 0x82, 0x88, 0x60,
3621
+ 0x90, 0x58, 0x15, 0x56, 0x20, 0xe2, 0x91, 0x18, 0x12, 0x93, 0x30, 0x16,
3622
+ 0x93, 0x30, 0x07, 0x83, 0x58, 0x8e, 0x93, 0x40, 0xdb, 0x91, 0x48, 0xa7,
3623
+ 0x82, 0xa8, 0xf2, 0x9b, 0x10, 0x00, 0x00, 0x11, 0x01, 0x11, 0x00, 0x01,
3624
+ 0x00, 0x3c, 0x00, 0x07,
3625
+};
3626
+
3627
+static const u8 data_segment_data_w2c_highlights_d84[] = {
3628
+ 0x04, 0x09, 0x00, 0x05, 0x03, 0x0d, 0xa6, 0x57, 0xd8, 0x86, 0x40, 0xa9,
3629
+ 0x94, 0x18, 0x29, 0xda, 0x28, 0x63, 0x96, 0x30, 0x7a, 0x47, 0x10, 0xeb,
3630
+ 0x23, 0x20, 0xa6, 0xae, 0x30, 0x5c, 0x89, 0x28, 0x28, 0xa0, 0x10, 0xae,
3631
+ 0x2e, 0x20, 0x02, 0x21, 0x20, 0x08, 0x8b, 0x20, 0xee, 0xc6, 0x20, 0x30,
3632
+ 0x20, 0x30, 0x31, 0x2c, 0x20, 0x4f, 0x21, 0x10, 0xb0, 0xfb, 0x18, 0x64,
3633
+ 0x31, 0x18, 0x88, 0x81, 0x18, 0x72, 0x3a, 0x28, 0x83, 0x80, 0x48, 0x79,
3634
+ 0x93, 0x30, 0x68, 0x8a, 0x20, 0x42, 0x61, 0x20, 0x0b, 0x86, 0x28, 0x00,
3635
+ 0x00, 0x12, 0x00, 0x13, 0x01, 0x13, 0x02, 0x13, 0x00, 0x14, 0x00, 0x03,
3636
+ 0x00, 0x07,
3637
+};
3638
+
3639
+static const u8 data_segment_data_w2c_highlights_d85[] = {
3640
+ 0x16, 0x04, 0x55, 0x14, 0x03, 0x0e, 0x07, 0x00, 0x13, 0x4b, 0xf5, 0x01,
3641
+ 0x15, 0x01, 0x00, 0x00, 0x4b, 0x29, 0x30, 0x2f, 0x2c, 0x20, 0xe4, 0xf7,
3642
+ 0x38, 0x3d, 0x37, 0x19, 0x39, 0xf2, 0x50, 0x36, 0xe5, 0x20, 0x64, 0x2f,
3643
+ 0x58, 0xf2, 0x44, 0x20, 0xc4, 0xe9, 0x20, 0xb2, 0xe5, 0x28, 0xd1, 0x26,
3644
+ 0x28, 0x45, 0x22, 0x38, 0xee, 0xf9, 0x30, 0xea, 0x20, 0x18, 0xb9, 0x32,
3645
+ 0x28, 0xe0, 0xf3, 0x48, 0x5d, 0xe6, 0x20, 0x73, 0xf5, 0x20, 0xd0, 0x25,
3646
+ 0x30, 0xcc, 0xba, 0x20, 0xac, 0xa7, 0x18, 0x4f, 0x21, 0x10, 0x02, 0x21,
3647
+ 0x20, 0xf8, 0xf2, 0x28, 0xeb, 0x23, 0x20, 0x76, 0xf3, 0x18, 0xeb, 0xf7,
3648
+ 0x38, 0xd1, 0xe4, 0x30, 0xf4, 0xf9, 0x30, 0x5f, 0x1a, 0x29, 0xab, 0x0e,
3649
+ 0x21, 0xd1, 0xe0, 0x20, 0x42, 0x61, 0x20, 0x93, 0xa4, 0x48, 0xe8, 0xf9,
3650
+ 0x30, 0x5c, 0xe6, 0x28, 0xbe, 0x8b, 0x38, 0x2f, 0x2c, 0x10, 0xa6, 0xce,
3651
+ 0x30, 0x43, 0xf2, 0x50, 0x0f, 0x25, 0x30, 0x5c, 0xa9, 0x28, 0x42, 0xf4,
3652
+ 0x38, 0x7c, 0x3b, 0x21, 0x01, 0xe0, 0x18, 0x4e, 0xa0, 0x30, 0x24, 0x32,
3653
+ 0x28, 0xe9, 0xf9, 0x28, 0x33, 0xf6, 0x28, 0x86, 0x36, 0x40, 0xd9, 0xa1,
3654
+ 0x18, 0x00, 0x00, 0x12, 0x00, 0x13, 0x01, 0x13, 0x02, 0x13, 0x03, 0x13,
3655
+ 0x00, 0x14, 0x00, 0x38, 0x00, 0x03, 0x00, 0x07,
3656
+};
3657
+
3658
+static const u8 data_segment_data_w2c_highlights_d86[] = {
3659
+ 0x01, 0x07, 0x01, 0x1d, 0x03, 0x0f, 0x00, 0x05, 0x3a, 0x54, 0x40, 0xb0,
3660
+ 0x56, 0x40, 0xb4, 0x6b, 0x30, 0x93, 0x24, 0x48, 0x26, 0x25, 0x20, 0x51,
3661
+ 0xa3, 0x20, 0x47, 0xd7, 0x28, 0xa2, 0x42, 0x28, 0xea, 0x70, 0x30, 0xa1,
3662
+ 0x3a, 0x28, 0xe8, 0xc7, 0x30, 0x42, 0x21, 0x20, 0x5f, 0x9a, 0x28, 0xb2,
3663
+ 0x47, 0x60, 0x46, 0x20, 0x10, 0x37, 0xd7, 0x38, 0xab, 0x8e, 0x20, 0xde,
3664
+ 0x30, 0x30, 0x97, 0x6b, 0x50, 0xe5, 0x3a, 0x28, 0x33, 0x27, 0x50, 0x69,
3665
+ 0xd0, 0x10, 0x54, 0x70, 0x48, 0x27, 0xc3, 0x18, 0x00, 0x00, 0x11, 0x01,
3666
+ 0x11, 0x02, 0x11, 0x00, 0x03, 0x00, 0x07, 0x00, 0x38,
3667
+};
3668
+
3669
+static const u8 data_segment_data_w2c_highlights_d87[] = {
3670
+ 0x08, 0x5e, 0x69, 0x06, 0x07, 0x38, 0x0d, 0x24, 0x1a, 0x03, 0x03, 0x13,
3671
+ 0x1f, 0x1b, 0x01, 0x29, 0x80, 0x30, 0xab, 0x2e, 0x21, 0x4f, 0x21, 0x10,
3672
+ 0x93, 0x64, 0x48, 0x00, 0x00, 0x00, 0x68, 0x61, 0x28, 0x0f, 0x77, 0x29,
3673
+ 0xd6, 0x37, 0x38, 0xac, 0x87, 0x18, 0x9c, 0x8a, 0x60, 0x45, 0x22, 0x38,
3674
+ 0x28, 0xe0, 0x10, 0x02, 0x21, 0x20, 0x6f, 0x20, 0x18, 0xc4, 0x87, 0x48,
3675
+ 0x30, 0x85, 0x30, 0x33, 0x87, 0x50, 0x32, 0x6e, 0x28, 0xe8, 0x8e, 0x48,
3676
+ 0x25, 0x0c, 0x29, 0x30, 0x20, 0x30, 0x54, 0x61, 0x11, 0xcd, 0xec, 0x50,
3677
+ 0x94, 0x1b, 0x21, 0x18, 0x0d, 0x21, 0x51, 0x43, 0x21, 0xde, 0x07, 0x29,
3678
+ 0xc4, 0x09, 0x39, 0x60, 0x21, 0x10, 0x90, 0xc0, 0x18, 0x01, 0x00, 0x19,
3679
+ 0x59, 0x2f, 0x28, 0x01, 0xe0, 0x10, 0x59, 0x2f, 0x30, 0xd1, 0x00, 0x21,
3680
+ 0xc9, 0x6c, 0x21, 0xbe, 0xab, 0x38, 0x1b, 0x8e, 0x40, 0xe7, 0x89, 0x28,
3681
+ 0x04, 0x10, 0x31, 0x4b, 0x29, 0x30, 0xeb, 0x95, 0x40, 0x38, 0x39, 0x28,
3682
+ 0x5e, 0x8c, 0x38, 0x24, 0x32, 0x28, 0xcb, 0x99, 0x30, 0x86, 0x36, 0x40,
3683
+ 0xeb, 0x23, 0x20, 0xa6, 0xae, 0x30, 0x77, 0x8b, 0x40, 0x26, 0x65, 0x20,
3684
+ 0x19, 0x2b, 0x28, 0xd0, 0x25, 0x30, 0x1f, 0x0a, 0x21, 0x5f, 0x3a, 0x29,
3685
+ 0xea, 0x20, 0x18, 0x7c, 0x41, 0x18, 0x5f, 0x36, 0x28, 0x63, 0x72, 0x30,
3686
+ 0xd4, 0x87, 0x38, 0x00, 0x00, 0x12, 0x00, 0x13, 0x01, 0x13, 0x02, 0x13,
3687
+ 0x00, 0x14, 0x00, 0x11, 0x00, 0x15, 0x00, 0x38, 0x00, 0x03, 0x00, 0x07,
3688
+ 0x00, 0x3c,
3689
+};
3690
+
3691
+static const u8 data_segment_data_w2c_highlights_d88[] = {
3692
+ 0x2a, 0x00, 0x00, 0x01, 0x10, 0x04, 0x17, 0x69, 0x0a, 0x07, 0x00, 0x3e,
3693
+ 0x27, 0x5c, 0x2f, 0x1e, 0x46, 0xa1, 0x10, 0xe3, 0xd8, 0x30, 0x38, 0xfb,
3694
+ 0x20, 0xeb, 0xa3, 0x20, 0x52, 0xd9, 0x30, 0x9c, 0xae, 0x40, 0x29, 0x3a,
3695
+ 0x28, 0x21, 0xd8, 0x38, 0xd8, 0xe2, 0x30, 0x71, 0xe8, 0x40, 0xf4, 0xad,
3696
+ 0x28, 0x4b, 0x41, 0x48, 0x86, 0xfa, 0x28, 0x5c, 0xe9, 0x28, 0xe0, 0xfb,
3697
+ 0x18, 0x46, 0x56, 0x30, 0xb2, 0xe5, 0x28, 0x60, 0xa1, 0x10, 0xb0, 0xaa,
3698
+ 0x20, 0x7b, 0xe1, 0x10, 0x64, 0xf8, 0x20, 0x6b, 0xe8, 0x40, 0x4f, 0xa1,
3699
+ 0x10, 0x06, 0x81, 0x28, 0xd6, 0x65, 0x20, 0x28, 0xc0, 0x10, 0x81, 0xfa,
3700
+ 0x28, 0x98, 0xb8, 0x18, 0x00, 0x00, 0x00, 0x35, 0xf9, 0x30, 0x01, 0xa0,
3701
+ 0x10, 0xf9, 0xd7, 0x38, 0x45, 0xc2, 0x38, 0x6c, 0xfb, 0x20, 0x10, 0xe6,
3702
+ 0x48, 0x59, 0xe2, 0x20, 0xe3, 0xd8, 0x28, 0xa2, 0xf4, 0x20, 0x42, 0x61,
3703
+ 0x20, 0x01, 0x65, 0x40, 0xc7, 0xe1, 0x30, 0x1b, 0xfb, 0x20, 0xb8, 0xca,
3704
+ 0x20, 0x00, 0x00, 0x00, 0x88, 0x81, 0x18, 0x5f, 0xef, 0x28, 0x00, 0x00,
3705
+ 0x00, 0x02, 0xa1, 0x20, 0x51, 0xe3, 0x20, 0xee, 0x26, 0x20, 0xbf, 0x68,
3706
+ 0x38, 0xdc, 0x48, 0x30, 0x79, 0xd9, 0x30, 0xd0, 0xe5, 0x30, 0x5a, 0xee,
3707
+ 0x20, 0x94, 0xc8, 0x30, 0x68, 0x61, 0x28, 0xa6, 0x4e, 0x30, 0xd9, 0xe1,
3708
+ 0x18, 0x00, 0x00, 0x03, 0x00, 0x14, 0x00, 0x13, 0x00, 0x12, 0x01, 0x12,
3709
+ 0x00, 0x11, 0x00, 0x0e,
3710
+};
3711
+
3712
+static const u8 data_segment_data_w2c_highlights_d89[] = {
3713
+ 0x01, 0x57, 0x03, 0x0d, 0x06, 0x04, 0x2e, 0x04, 0xa3, 0xc1, 0x07, 0x01,
3714
+ 0x0c, 0x0f, 0x13, 0x02, 0x93, 0x64, 0x48, 0x4f, 0xcc, 0x30, 0x72, 0xd2,
3715
+ 0x50, 0xad, 0xc1, 0x30, 0xeb, 0x43, 0x20, 0x00, 0x00, 0x00, 0xea, 0x40,
3716
+ 0x18, 0x45, 0x42, 0x38, 0x9c, 0xc2, 0x48, 0x01, 0xa0, 0x18, 0x00, 0x00,
3717
+ 0x00, 0x2f, 0xd8, 0x38, 0x00, 0x00, 0x00, 0x60, 0xc8, 0x30, 0x02, 0x41,
3718
+ 0x20, 0x6e, 0x81, 0x48, 0xe1, 0xc4, 0x30, 0x5f, 0x3a, 0x28, 0xc9, 0xec,
3719
+ 0x20, 0x77, 0xd6, 0x28, 0x60, 0x41, 0x10, 0x4e, 0x60, 0x30, 0x5c, 0xc9,
3720
+ 0x28, 0xf0, 0xcb, 0x30, 0xc8, 0xc5, 0x48, 0x86, 0x56, 0x40, 0x19, 0x4b,
3721
+ 0x28, 0x60, 0xc0, 0x80, 0x4f, 0x41, 0x10, 0xab, 0x2e, 0x20, 0xd0, 0xc3,
3722
+ 0x68, 0xd1, 0xa4, 0x30, 0x70, 0xa6, 0x68, 0x85, 0xb9, 0x30, 0x12, 0xb9,
3723
+ 0x28, 0x29, 0xc0, 0x30, 0x26, 0x6a, 0x38, 0xe8, 0xcc, 0x40, 0x94, 0xbb,
3724
+ 0x20, 0xde, 0xa7, 0x28, 0x36, 0xa5, 0x20, 0xad, 0xa1, 0x38, 0xfd, 0xa1,
3725
+ 0x30, 0x75, 0xc1, 0x40, 0x3a, 0xc4, 0x20, 0xc4, 0xa9, 0x20, 0x55, 0x69,
3726
+ 0x38, 0xea, 0xda, 0x28, 0x00, 0x00, 0x00, 0x87, 0xca, 0x60, 0x04, 0xb0,
3727
+ 0x30, 0x1b, 0xce, 0x40, 0xc1, 0x77, 0x38, 0xa2, 0xc8, 0x58, 0xe5, 0xc1,
3728
+ 0x38, 0x0c, 0xbb, 0x20, 0x24, 0x52, 0x28, 0x4b, 0x49, 0x30, 0xd0, 0x45,
3729
+ 0x30, 0xde, 0xa7, 0x48, 0xa7, 0xc8, 0x30, 0x03, 0x57, 0x38, 0x01, 0xc0,
3730
+ 0x10, 0x68, 0x61, 0x28, 0xe3, 0xc3, 0x18, 0x9c, 0xda, 0x28, 0x7f, 0xc3,
3731
+ 0x78, 0x00, 0x00, 0x03, 0x00, 0x12, 0x00, 0x13, 0x01, 0x13, 0x02, 0x38,
3732
+ 0x00, 0x11, 0x00, 0x3c,
3733
+};
3734
+
3735
+static const u8 data_segment_data_w2c_highlights_d90[] = {
3736
+ 0x03, 0x00, 0x2a, 0x35, 0x12, 0x01, 0x42, 0x12, 0x19, 0x00, 0x00, 0x16,
3737
+ 0x81, 0x4c, 0x9e, 0x73, 0x29, 0xa0, 0x30, 0xde, 0xc7, 0x28, 0x24, 0x32,
3738
+ 0x28, 0x1f, 0xca, 0x20, 0x68, 0x41, 0x28, 0xd1, 0xc0, 0x20, 0x04, 0xd0,
3739
+ 0x30, 0x9c, 0xaa, 0x60, 0x60, 0x21, 0x10, 0x38, 0x39, 0x28, 0x86, 0x36,
3740
+ 0x40, 0x6f, 0xae, 0x30, 0x0f, 0x37, 0x29, 0xe8, 0xae, 0x48, 0x5c, 0xa9,
3741
+ 0x28, 0x4b, 0x29, 0x30, 0x6f, 0x20, 0x18, 0x4f, 0x21, 0x10, 0x26, 0x45,
3742
+ 0x20, 0x02, 0x21, 0x20, 0xeb, 0x23, 0x20, 0xcb, 0xb9, 0x30, 0x59, 0xaf,
3743
+ 0x30, 0x77, 0xab, 0x40, 0x5f, 0x36, 0x28, 0x1f, 0xac, 0x38, 0x59, 0x2f,
3744
+ 0x28, 0x90, 0x40, 0x19, 0x93, 0x44, 0x48, 0x30, 0x20, 0x30, 0x00, 0x00,
3745
+ 0x00, 0xc9, 0x2c, 0x21, 0x5f, 0xfa, 0x28, 0xe7, 0xa9, 0x28, 0xeb, 0xb5,
3746
+ 0x40, 0x33, 0xa7, 0x50, 0xc4, 0xa7, 0x48, 0x63, 0x72, 0x31, 0xab, 0xee,
3747
+ 0x20, 0x2f, 0x2c, 0x20, 0xcd, 0x4c, 0x51, 0x01, 0xc0, 0x18, 0x1b, 0xae,
3748
+ 0x40, 0xd4, 0xa7, 0x38, 0xbe, 0x6b, 0x38, 0xc4, 0xc9, 0x38, 0xd6, 0x37,
3749
+ 0x38, 0x00, 0x00, 0x00, 0x5e, 0xac, 0x38, 0x45, 0x22, 0x38, 0x51, 0x03,
3750
+ 0x21, 0x18, 0xcd, 0x20, 0x00, 0x00, 0x00, 0x25, 0xcc, 0x28, 0xa6, 0x8e,
3751
+ 0x30, 0xd0, 0x25, 0x30, 0x94, 0xdb, 0x20, 0x19, 0x2b, 0x28, 0xea, 0x20,
3752
+ 0x18, 0x30, 0xa5, 0x30, 0xac, 0xa7, 0x18, 0x00, 0x00, 0x12, 0x00, 0x13,
3753
+ 0x01, 0x13, 0x02, 0x14, 0x00, 0x13, 0x00, 0x38, 0x00, 0x03, 0x00, 0x07,
3754
+ 0x00, 0x3c, 0x00, 0x15, 0x00, 0x13, 0x05,
3755
+};
3756
+
3757
+static const u8 data_segment_data_w2c_highlights_d91[] = {
3758
+ 0x0c, 0x00, 0x00, 0x1e, 0x00, 0x02, 0x33, 0x00, 0x00, 0x00, 0x05, 0x03,
3759
+ 0x2b, 0x30, 0x00, 0x05, 0xa1, 0x3b, 0x19, 0x4f, 0x21, 0x10, 0x4e, 0x60,
3760
+ 0x30, 0x10, 0x26, 0x29, 0xf2, 0x44, 0x40, 0xdc, 0x21, 0x11, 0xa6, 0xce,
3761
+ 0x30, 0x86, 0x36, 0x40, 0x6c, 0x2c, 0x30, 0x86, 0xb4, 0x48, 0x5c, 0xa9,
3762
+ 0x28, 0x01, 0xe0, 0x10, 0xea, 0x20, 0x18, 0x4f, 0xcc, 0x30, 0x83, 0x20,
3763
+ 0x11, 0x1e, 0xe5, 0x18, 0xcb, 0xd9, 0x30, 0x6f, 0x20, 0x18, 0xdc, 0x23,
3764
+ 0x18, 0x13, 0x38, 0x39, 0x19, 0x2b, 0x28, 0xad, 0x39, 0x28, 0x45, 0xb3,
3765
+ 0x28, 0xd9, 0xa9, 0x38, 0x60, 0x21, 0x10, 0x7c, 0x38, 0x28, 0x42, 0x61,
3766
+ 0x20, 0x5f, 0x1a, 0x29, 0x71, 0xd3, 0x28, 0x88, 0x21, 0x18, 0x02, 0x21,
3767
+ 0x20, 0x00, 0x00, 0x00, 0xab, 0x0e, 0x21, 0xc6, 0x2e, 0x39, 0x5e, 0xa2,
3768
+ 0x28, 0xd6, 0x37, 0x38, 0xdc, 0x88, 0x30, 0x38, 0x39, 0x28, 0xab, 0x3b,
3769
+ 0x19, 0xd0, 0x25, 0x30, 0x0b, 0x46, 0x28, 0xeb, 0xb5, 0x40, 0x00, 0x00,
3770
+ 0x00, 0x24, 0x32, 0x28, 0x00, 0x00, 0x00, 0x15, 0x91, 0x50, 0x60, 0xa0,
3771
+ 0x30, 0x00, 0x00, 0x12, 0x00, 0x13, 0x01, 0x13, 0x02, 0x13, 0x03, 0x13,
3772
+ 0x00, 0x14, 0x00, 0x15, 0x00, 0x03, 0x00, 0x07,
3773
+};
3774
+
3775
+static const u8 data_segment_data_w2c_highlights_d92[] = {
3776
+ 0x15, 0x00, 0x36, 0x12, 0x20, 0x00, 0x0b, 0x14, 0x65, 0x54, 0x7d, 0x00,
3777
+ 0x00, 0x02, 0x15, 0x22, 0x00, 0x00, 0x00, 0xb9, 0xf5, 0x40, 0x5f, 0x3a,
3778
+ 0x29, 0xc9, 0x6c, 0x21, 0xa2, 0x11, 0x31, 0x98, 0x1b, 0x19, 0xa1, 0xe6,
3779
+ 0x38, 0xc0, 0x90, 0x58, 0xac, 0x87, 0x18, 0xd1, 0xe0, 0x10, 0x74, 0x65,
3780
+ 0x48, 0x86, 0x36, 0x40, 0x8c, 0x81, 0x18, 0x2d, 0x1b, 0x21, 0xcd, 0xf3,
3781
+ 0x48, 0x37, 0xf1, 0x38, 0x5c, 0xe9, 0x28, 0x25, 0x1a, 0x21, 0x00, 0x00,
3782
+ 0x00, 0xc3, 0x83, 0x20, 0x83, 0x15, 0x39, 0xb6, 0x29, 0x20, 0x38, 0x39,
3783
+ 0x28, 0x31, 0x1b, 0x21, 0x00, 0x00, 0x00, 0xcb, 0xf9, 0x30, 0xea, 0x20,
3784
+ 0x18, 0x97, 0xfa, 0x28, 0xa6, 0xae, 0x30, 0x00, 0x00, 0x00, 0xd6, 0xe5,
3785
+ 0x20, 0x27, 0x03, 0x19, 0x60, 0xe8, 0x30, 0x19, 0x2b, 0x28, 0x6f, 0x20,
3786
+ 0x18, 0x37, 0x17, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe7, 0xe9,
3787
+ 0x28, 0xbf, 0xe3, 0x40, 0xbb, 0xc1, 0x10, 0xbe, 0xab, 0x38, 0x28, 0xc0,
3788
+ 0x10, 0xe8, 0x07, 0x31, 0x0f, 0x77, 0x29, 0x4f, 0x21, 0x10, 0x01, 0xc0,
3789
+ 0x10, 0x44, 0xee, 0x40, 0x93, 0x64, 0x48, 0xc8, 0xf6, 0x40, 0xac, 0xe7,
3790
+ 0x30, 0xe8, 0xee, 0x48, 0x68, 0x61, 0x28, 0x60, 0x21, 0x10, 0xd6, 0x37,
3791
+ 0x38, 0xd4, 0xe7, 0x38, 0xe3, 0xf8, 0x28, 0xab, 0x2e, 0x21, 0x24, 0x32,
3792
+ 0x28, 0x51, 0x43, 0x21, 0xc3, 0x6a, 0x30, 0xe3, 0xe3, 0x18, 0x7b, 0xee,
3793
+ 0x20, 0x47, 0x17, 0x29, 0xeb, 0xf5, 0x40, 0x6f, 0xee, 0x30, 0x26, 0x85,
3794
+ 0x20, 0x02, 0x21, 0x20, 0xd0, 0x25, 0x30, 0x38, 0x0a, 0x21, 0xf2, 0x44,
3795
+ 0x18, 0x59, 0x2f, 0x28, 0x00, 0x00, 0x12, 0x00, 0x13, 0x01, 0x13, 0x02,
3796
+ 0x13, 0x00, 0x14, 0x00, 0x15, 0x00, 0x11, 0x04, 0x38, 0x00, 0x03, 0x00,
3797
+ 0x07, 0x00, 0x3c,
3798
+};
3799
+
3800
+static const u8 data_segment_data_w2c_highlights_d93[] = {
3801
+ 0x51, 0x00, 0x08, 0x19, 0x75, 0x04, 0x1c, 0x08, 0x03, 0x03, 0x11, 0x01,
3802
+ 0x00, 0x2a, 0x0c, 0x16, 0x0b, 0x03, 0x00, 0x03, 0x17, 0x00, 0x01, 0x04,
3803
+ 0x0b, 0x00, 0x00, 0x06, 0x00, 0x04, 0x96, 0x26, 0x50, 0x18, 0x9b, 0x20,
3804
+ 0x82, 0x51, 0x48, 0x8d, 0xe9, 0x60, 0xa7, 0x6b, 0x31, 0x35, 0x7b, 0x20,
3805
+ 0x7b, 0x6c, 0x28, 0x7f, 0x66, 0x28, 0xf6, 0xe7, 0x70, 0x8f, 0xe9, 0x50,
3806
+ 0xc8, 0x17, 0x3a, 0x50, 0x27, 0x60, 0xa1, 0x5a, 0x28, 0x2c, 0x23, 0x38,
3807
+ 0xe0, 0x4b, 0x60, 0x51, 0x6a, 0x29, 0x53, 0x27, 0x48, 0x05, 0x42, 0x38,
3808
+ 0x99, 0xc8, 0x51, 0x3c, 0x69, 0x38, 0xec, 0x9b, 0x18, 0x7d, 0x74, 0x48,
3809
+ 0x2d, 0xa7, 0x41, 0x00, 0x6e, 0x41, 0x7d, 0x40, 0x21, 0xdc, 0x23, 0x19,
3810
+ 0xef, 0xe0, 0x98, 0x51, 0x6f, 0x28, 0x22, 0x51, 0x58, 0x8b, 0xf9, 0x31,
3811
+ 0xd9, 0xa7, 0x30, 0x97, 0x4d, 0x78, 0xae, 0x6a, 0x21, 0xb3, 0x4e, 0x70,
3812
+ 0xa7, 0x6a, 0x59, 0x72, 0x6a, 0x39, 0xdd, 0x77, 0x39, 0xa6, 0x2c, 0x38,
3813
+ 0xad, 0x39, 0x29, 0x1d, 0x67, 0x41, 0xc0, 0x19, 0x21, 0xc6, 0x52, 0x50,
3814
+ 0x09, 0xe1, 0x80, 0x88, 0xe1, 0x18, 0x7f, 0x66, 0x20, 0x90, 0x6b, 0x28,
3815
+ 0xb4, 0x77, 0x38, 0x1a, 0x38, 0x20, 0x93, 0x26, 0x68, 0x01, 0x39, 0x30,
3816
+ 0x7b, 0x66, 0x40, 0xad, 0x29, 0x28, 0x86, 0x42, 0x70, 0x40, 0x69, 0x18,
3817
+ 0x9e, 0x77, 0x38, 0x7c, 0xe1, 0x18, 0x66, 0x7b, 0x20, 0x57, 0x68, 0x41,
3818
+ 0x7d, 0x80, 0x41, 0xcc, 0x71, 0x30, 0x60, 0x41, 0x68, 0xd0, 0xd0, 0x20,
3819
+ 0xaa, 0xc9, 0x30, 0x0b, 0xe1, 0x70, 0x00, 0x00, 0x36, 0x01, 0x2c, 0x02,
3820
+ 0x06, 0x00, 0x41, 0x00, 0x0d, 0x00, 0x0c, 0x00, 0x0e, 0x00, 0x00, 0x03,
3821
+ 0x37, 0x04, 0x00, 0x05, 0x00, 0x06, 0x35, 0x07, 0x35, 0x08, 0x35, 0x09,
3822
+ 0x35, 0x0a, 0x04, 0x0b,
3823
+};
3824
+
3825
+static const u8 data_segment_data_w2c_highlights_d94[] = {
3826
+ 0x31, 0x03, 0x09, 0x00, 0x70, 0x00, 0x24, 0x2c, 0x46, 0x0e, 0x00, 0x0b,
3827
+ 0x09, 0x0d, 0x01, 0x0d, 0x15, 0x00, 0x00, 0x00, 0x00, 0x04, 0x12, 0x00,
3828
+ 0x14, 0x06, 0x7c, 0x02, 0x23, 0x07, 0x0d, 0x06, 0x09, 0x85, 0x40, 0x51,
3829
+ 0x0f, 0x31, 0xef, 0x81, 0x38, 0xb2, 0x85, 0x28, 0x0e, 0x8f, 0x70, 0x79,
3830
+ 0x92, 0x20, 0xbb, 0x6b, 0x50, 0x5f, 0xba, 0x28, 0xeb, 0x83, 0x20, 0xab,
3831
+ 0xae, 0x20, 0x68, 0x32, 0x40, 0x44, 0x91, 0x50, 0x66, 0x85, 0x28, 0x2f,
3832
+ 0x8c, 0x10, 0x91, 0x98, 0x30, 0xae, 0xc6, 0x98, 0x7a, 0x87, 0x10, 0x4f,
3833
+ 0x89, 0x50, 0x3d, 0xb7, 0x18, 0x4f, 0x81, 0x10, 0xf6, 0x87, 0x38, 0xdf,
3834
+ 0x8d, 0x68, 0xa3, 0x92, 0x20, 0x26, 0x2b, 0x50, 0xf2, 0x84, 0x40, 0x60,
3835
+ 0x81, 0x10, 0xb0, 0x8a, 0x18, 0x7c, 0x81, 0x18, 0x4f, 0x8c, 0x30, 0xd6,
3836
+ 0x9a, 0x28, 0x59, 0x8f, 0x28, 0xad, 0x99, 0x28, 0x9a, 0xe3, 0x30, 0xa6,
3837
+ 0x8e, 0x30, 0x88, 0xe1, 0x18, 0xe8, 0x80, 0x10, 0xe1, 0x8e, 0x70, 0x00,
3838
+ 0x00, 0x00, 0x0a, 0x75, 0x38, 0x88, 0x81, 0x50, 0xdb, 0x9a, 0x28, 0x06,
3839
+ 0x80, 0x10, 0x30, 0x90, 0x60, 0x9b, 0x94, 0x38, 0xee, 0x92, 0x50, 0x01,
3840
+ 0x88, 0x18, 0x8e, 0x38, 0x28, 0xb7, 0x95, 0x20, 0x0f, 0x1b, 0x21, 0xc4,
3841
+ 0x46, 0x60, 0x38, 0x99, 0x28, 0xff, 0x8c, 0x20, 0x04, 0x26, 0x60, 0x0c,
3842
+ 0x85, 0x28, 0x04, 0x6f, 0x48, 0xff, 0x8c, 0x70, 0x60, 0x23, 0x30, 0x7c,
3843
+ 0x98, 0x28, 0x74, 0x2e, 0x40, 0x08, 0x85, 0x48, 0xa1, 0x85, 0x98, 0x09,
3844
+ 0x97, 0x38, 0x63, 0x89, 0x38, 0xaf, 0x97, 0x20, 0xb6, 0x89, 0x20, 0xf4,
3845
+ 0x89, 0x58, 0x30, 0x80, 0x30, 0x60, 0x23, 0x68, 0xf0, 0x2e, 0x48, 0xb1,
3846
+ 0x6f, 0x40, 0xce, 0x56, 0x30, 0xa9, 0x6f, 0x40, 0x74, 0x80, 0x58, 0xd0,
3847
+ 0x85, 0x30, 0xf8, 0x4d, 0x48, 0x96, 0xcf, 0x30, 0x4c, 0xc0, 0x90, 0xb1,
3848
+ 0x89, 0x48, 0xe3, 0x99, 0x28, 0x64, 0x91, 0x58, 0x6e, 0x8f, 0x60, 0x72,
3849
+ 0x83, 0x70, 0x67, 0x83, 0x60, 0x51, 0x98, 0x30, 0x7f, 0x6a, 0x58, 0x59,
3850
+ 0x49, 0x58, 0x00, 0x00, 0x13, 0x01, 0x13, 0x02, 0x13, 0x03, 0x11, 0x00,
3851
+ 0x07, 0x00, 0x11, 0x04, 0x11, 0x08, 0x11, 0x0c,
3852
+};
3853
+
3854
+static const u8 data_segment_data_w2c_highlights_d95[] = {
3855
+ 0x27, 0x33, 0x02, 0x00, 0x02, 0x00, 0x00, 0x1b, 0xdc, 0x83, 0x18, 0x3d,
3856
+ 0x57, 0x18, 0xa2, 0x98, 0x28, 0x02, 0x81, 0x20, 0x01, 0x60, 0x10, 0x5e,
3857
+ 0xa2, 0x28, 0xf2, 0xc4, 0x40, 0x16, 0x85, 0x30, 0x06, 0x60, 0x10, 0xb0,
3858
+ 0x8a, 0x20, 0x19, 0x8b, 0x28, 0x5f, 0x3a, 0x28, 0x24, 0x92, 0x28, 0x4f,
3859
+ 0x81, 0x10, 0xf9, 0x64, 0x18, 0x01, 0x68, 0x18, 0x60, 0x81, 0x10, 0xea,
3860
+ 0x80, 0x18, 0xd0, 0xe5, 0x30, 0xab, 0x2e, 0x20, 0x6c, 0x8c, 0x30, 0x2f,
3861
+ 0xec, 0x20, 0x00, 0x00, 0x03, 0x00, 0x07, 0x00, 0x15, 0x00, 0x12, 0x00,
3862
+ 0x13, 0x00, 0x13, 0x01, 0x11,
3863
+};
3864
+
3865
+static const u8 data_segment_data_w2c_highlights_d96[] = {
3866
+ 0x18, 0x13, 0x19, 0x01, 0x00, 0x06, 0x01, 0x0e, 0x09, 0x04, 0x05, 0x03,
3867
+ 0x01, 0x05, 0x10, 0x09, 0x11, 0xb6, 0x28, 0x4f, 0xa1, 0x10, 0x61, 0xb3,
3868
+ 0x48, 0xbd, 0xb3, 0x30, 0x00, 0x00, 0x00, 0xc3, 0xac, 0x40, 0x94, 0xb7,
3869
+ 0x38, 0x04, 0x55, 0x40, 0x06, 0xa8, 0x20, 0x74, 0x95, 0x40, 0xc7, 0xa1,
3870
+ 0x30, 0xeb, 0x4d, 0x40, 0xb2, 0xa5, 0x28, 0x92, 0x3a, 0x28, 0x4f, 0x8c,
3871
+ 0x30, 0xa6, 0x2f, 0x30, 0x71, 0xab, 0x40, 0x8c, 0xa1, 0x28, 0x08, 0x9b,
3872
+ 0x28, 0x0e, 0xb2, 0x50, 0xc8, 0x96, 0x40, 0xd8, 0xb6, 0x40, 0x23, 0xad,
3873
+ 0x28, 0x6e, 0xb2, 0x28, 0x01, 0xa2, 0x30, 0x84, 0xbb, 0x20, 0x60, 0x63,
3874
+ 0x30, 0x0d, 0xa2, 0x18, 0x06, 0xa0, 0x10, 0x6b, 0xb2, 0x28, 0xc0, 0xa9,
3875
+ 0x20, 0x26, 0xa6, 0x38, 0x1a, 0xb2, 0x50, 0x88, 0xa1, 0x18, 0x02, 0x21,
3876
+ 0x20, 0xbb, 0xba, 0x20, 0x4b, 0x30, 0x28, 0x1c, 0xb7, 0x40, 0x05, 0x42,
3877
+ 0x38, 0x10, 0x86, 0x40, 0x30, 0xb7, 0x38, 0xa3, 0x2f, 0x28, 0x64, 0xb3,
3878
+ 0x30, 0xbb, 0xa9, 0x48, 0x78, 0x3b, 0x20, 0x6d, 0xab, 0x40, 0x58, 0xb9,
3879
+ 0x30, 0x60, 0xa2, 0x20, 0x03, 0xb6, 0x40, 0x01, 0xa8, 0x18, 0xd0, 0xa7,
3880
+ 0x20, 0xb1, 0xa9, 0x20, 0xd4, 0x87, 0x38,
3881
+};
3882
+
3883
+static const u8 data_segment_data_w2c_highlights_d97[] = {
3884
+ 0x3b, 0x23, 0x70, 0x05, 0x02, 0x09, 0x6f, 0x02, 0xa1, 0xfb, 0x18, 0xab,
3885
+ 0xfb, 0x18, 0xe3, 0xf8, 0x18, 0xac, 0x6f, 0x40, 0xa6, 0xae, 0x30, 0x08,
3886
+ 0x87, 0x50, 0x02, 0x21, 0x20, 0x00, 0x00, 0x00, 0xad, 0x8d, 0x50, 0xeb,
3887
+ 0x23, 0x20, 0x6b, 0xf5, 0x18, 0x4b, 0x29, 0x30, 0x9c, 0x32, 0x48, 0x82,
3888
+ 0xe6, 0x18, 0x5f, 0xda, 0x28, 0x00, 0x00, 0x00, 0xab, 0xce, 0x20, 0x38,
3889
+ 0x39, 0x28, 0x9a, 0x39, 0x30, 0x6c, 0x2c, 0x30, 0x24, 0x32, 0x28, 0x6f,
3890
+ 0x20, 0x18, 0xad, 0xfb, 0x18, 0x4f, 0x21, 0x10, 0xdc, 0x23, 0x18, 0xea,
3891
+ 0x20, 0x18, 0x26, 0x85, 0x58, 0xf2, 0x44, 0x40, 0x96, 0x38, 0x20, 0xe2,
3892
+ 0x90, 0x48, 0x19, 0x2b, 0x28, 0xd0, 0x25, 0x30, 0x3a, 0x8e, 0x30, 0xdc,
3893
+ 0xe1, 0x10, 0x86, 0x36, 0x40, 0xa7, 0x81, 0x38, 0x60, 0x80, 0x30, 0x00,
3894
+ 0x00, 0x12, 0x00, 0x13, 0x01, 0x13, 0x02, 0x13, 0x00, 0x14, 0x00, 0x03,
3895
+ 0x00, 0x07,
3896
+};
3897
+
3898
+static const u8 data_segment_data_w2c_highlights_d98[] = {
3899
+ 0x01, 0x03, 0x1a, 0x9c, 0x00, 0x00, 0x31, 0x00, 0x1b, 0x19, 0x56, 0x16,
3900
+ 0x8a, 0x29, 0x3f, 0x05, 0x2a, 0x06, 0x3d, 0x00, 0x00, 0x01, 0x25, 0x04,
3901
+ 0x0a, 0x06, 0x05, 0x03, 0x01, 0x03, 0x16, 0x06, 0x29, 0xc0, 0x30, 0x46,
3902
+ 0xe0, 0x10, 0xda, 0x33, 0x31, 0x4f, 0x81, 0x10, 0x28, 0xa0, 0x10, 0x05,
3903
+ 0x62, 0x38, 0x1f, 0x4a, 0x21, 0x71, 0x48, 0x19, 0x00, 0x00, 0x00, 0xeb,
3904
+ 0x83, 0x20, 0xd1, 0x44, 0x31, 0xab, 0xee, 0x20, 0xeb, 0x57, 0x39, 0x00,
3905
+ 0x00, 0x00, 0x60, 0xc1, 0x10, 0x36, 0x45, 0x21, 0xcf, 0xd7, 0x38, 0x36,
3906
+ 0xce, 0x28, 0x42, 0x41, 0x20, 0xd1, 0x40, 0x21, 0x01, 0xa0, 0x10, 0xe3,
3907
+ 0xc3, 0x18, 0x58, 0xd3, 0x20, 0xc2, 0x48, 0x29, 0x88, 0x58, 0x39, 0x3d,
3908
+ 0x17, 0x19, 0x66, 0xc5, 0x28, 0x5f, 0x96, 0x28, 0xea, 0x80, 0x18, 0xd6,
3909
+ 0x97, 0x38, 0xdd, 0xb9, 0x18, 0xc3, 0x41, 0x19, 0x85, 0x29, 0x48, 0x5d,
3910
+ 0x46, 0x21, 0xa4, 0x4d, 0x39, 0x7e, 0xba, 0x18, 0xf4, 0x59, 0x31, 0x17,
3911
+ 0xbb, 0x18, 0xee, 0x59, 0x31, 0x5a, 0xc0, 0x20, 0xd9, 0x68, 0x20, 0xf9,
3912
+ 0xa4, 0x18, 0x26, 0xc5, 0x20, 0xd1, 0xc6, 0x28, 0xac, 0x47, 0x18, 0xdc,
3913
+ 0xa8, 0x18, 0x8f, 0x34, 0x20, 0x05, 0x62, 0x19, 0xbb, 0xa1, 0x10, 0x06,
3914
+ 0xa0, 0x10, 0x27, 0xa0, 0x20, 0x5f, 0xfa, 0x28, 0xc4, 0x49, 0x21, 0xac,
3915
+ 0x47, 0x39, 0x86, 0x96, 0x40, 0x08, 0x4b, 0x21, 0xf8, 0x52, 0x29, 0x19,
3916
+ 0xa7, 0x18, 0x33, 0x56, 0x29, 0x94, 0x5b, 0x21, 0xbc, 0xdb, 0x18, 0xde,
3917
+ 0x47, 0x29, 0xe4, 0x57, 0x39, 0xfb, 0x67, 0x19, 0x71, 0xd3, 0x28, 0x72,
3918
+ 0x40, 0x39, 0x88, 0x41, 0x18, 0x40, 0xc9, 0x18, 0x02, 0x81, 0x20, 0xe9,
3919
+ 0x59, 0x29, 0x01, 0x40, 0x19, 0xc3, 0xc7, 0x18, 0x5c, 0x46, 0x29, 0xc2,
3920
+ 0x48, 0x41, 0xc3, 0xca, 0x30, 0x6f, 0x80, 0x18, 0xd5, 0x40, 0x29, 0xb6,
3921
+ 0x89, 0x20, 0x49, 0x90, 0x20, 0xae, 0x6e, 0x21, 0x30, 0x60, 0x31, 0xf3,
3922
+ 0x85, 0x30, 0xbb, 0x23, 0x40, 0x3a, 0x2a, 0x40, 0xc0, 0xe1, 0x18, 0xb8,
3923
+ 0xda, 0x28, 0xb9, 0x52, 0x29, 0x0b, 0xb4, 0x28, 0x24, 0x92, 0x28, 0xd0,
3924
+ 0x85, 0x30, 0x0b, 0x26, 0x28, 0x00, 0x00, 0x00, 0x33, 0x6c, 0x41, 0xa7,
3925
+ 0x21, 0x30, 0x7b, 0x4e, 0x49, 0x03, 0xd7, 0x38, 0x5c, 0x49, 0x28, 0xe8,
3926
+ 0x59, 0x31, 0x01, 0xa8, 0x18, 0x19, 0x8b, 0x28, 0xf2, 0x24, 0x20, 0xf4,
3927
+ 0xd3, 0x40, 0xa6, 0x6e, 0x30, 0x46, 0xa1, 0x10, 0xae, 0xba, 0x28, 0x00,
3928
+ 0x00, 0x13, 0x01, 0x13, 0x00, 0x14, 0x02, 0x12, 0x00, 0x15, 0x00, 0x11,
3929
+ 0x00, 0x03, 0x00, 0x07, 0x00, 0x3c, 0x00, 0x38, 0x00, 0x0e,
3930
+};
3931
+
3932
+static const u8 data_segment_data_w2c_highlights_d99[] = {
3933
+ 0x21, 0x43, 0x03, 0x60, 0xe6, 0xe7, 0x40, 0x97, 0xec, 0x50, 0x00, 0x00,
3934
+ 0x00, 0x5f, 0x7a, 0x28, 0xd9, 0xe1, 0x18, 0x02, 0x41, 0x20, 0x51, 0x83,
3935
+ 0x20, 0x00, 0x00, 0x00, 0x88, 0x21, 0x18, 0x0f, 0x22, 0x18, 0xa1, 0x25,
3936
+ 0x20, 0x00, 0x00, 0x00, 0x30, 0x20, 0x30, 0x59, 0xef, 0x28, 0x92, 0xea,
3937
+ 0x58, 0x01, 0x20, 0x10, 0xc0, 0xf3, 0x28, 0x7f, 0xf9, 0x30, 0x0e, 0x34,
3938
+ 0x38, 0x4f, 0x41, 0x10, 0xab, 0x6e, 0x20, 0xa6, 0xee, 0x30, 0x4c, 0xfa,
3939
+ 0x28, 0x06, 0xa0, 0x10, 0x2b, 0xd6, 0x40, 0x05, 0xf2, 0x50, 0xd3, 0xf5,
3940
+ 0x40, 0x3d, 0xe6, 0x60, 0xb0, 0x4a, 0x20, 0x00, 0x00, 0x11, 0x00, 0x12,
3941
+ 0x00, 0x03, 0x00, 0x07, 0x00, 0x15, 0x00, 0x17, 0x00, 0x0e,
3942
+};
3943
+
3944
+static const u8 data_segment_data_w2c_highlights_d100[] = {
3945
+ 0x5a, 0x03, 0x01, 0x31, 0x00, 0x06, 0x02, 0x00, 0x00, 0x57, 0x00, 0x00,
3946
+ 0x10, 0x07, 0x00, 0x0e, 0x09, 0x03, 0x04, 0x1d, 0x11, 0x01, 0x3b, 0x05,
3947
+ 0x18, 0x10, 0x0f, 0x03, 0x09, 0x01, 0x06, 0x06, 0xdc, 0x23, 0x18, 0xd6,
3948
+ 0x37, 0x38, 0x23, 0x5a, 0x18, 0x9b, 0x5b, 0x18, 0xa6, 0x2e, 0x30, 0x6a,
3949
+ 0xa9, 0x88, 0xfb, 0xd8, 0x30, 0x86, 0x51, 0x28, 0x9c, 0x2a, 0x60, 0xc0,
3950
+ 0x36, 0x40, 0xc3, 0xcb, 0x30, 0x01, 0x45, 0x60, 0xbe, 0x2b, 0x38, 0x0a,
3951
+ 0x2e, 0x40, 0xe0, 0xc5, 0x88, 0xe3, 0xa3, 0x18, 0x50, 0x9b, 0x20, 0x7b,
3952
+ 0x41, 0x10, 0x1a, 0xb9, 0x30, 0xf7, 0xd8, 0x20, 0x59, 0x2f, 0x28, 0x51,
3953
+ 0xa3, 0x80, 0x9c, 0xba, 0x28, 0xef, 0xb1, 0x40, 0x29, 0x5b, 0x20, 0x6f,
3954
+ 0x20, 0x18, 0xec, 0x36, 0x40, 0x0b, 0x28, 0x38, 0xcb, 0x39, 0x30, 0xf5,
3955
+ 0xb8, 0x30, 0xe9, 0xc5, 0x30, 0x5f, 0x2b, 0x78, 0x8a, 0x2c, 0x30, 0xdd,
3956
+ 0xd5, 0x30, 0xed, 0x83, 0x20, 0xcc, 0xb5, 0x40, 0x3c, 0xb3, 0x38, 0x32,
3957
+ 0xb5, 0x40, 0x09, 0xa9, 0x40, 0x01, 0xa0, 0x10, 0x83, 0x20, 0x70, 0x09,
3958
+ 0xa9, 0x88, 0x06, 0xab, 0x78, 0x0f, 0x25, 0x40, 0x38, 0x39, 0x28, 0x52,
3959
+ 0xc6, 0x48, 0x0f, 0x97, 0x28, 0xac, 0xcb, 0x48, 0xcc, 0xca, 0x30, 0x33,
3960
+ 0x62, 0x10, 0xa3, 0x33, 0x48, 0xb0, 0x7b, 0x18, 0x1e, 0x64, 0x18, 0x8d,
3961
+ 0xa3, 0x78, 0x82, 0x2a, 0x40, 0x55, 0x2c, 0x50, 0xac, 0xcc, 0x40, 0x3d,
3962
+ 0x77, 0x18, 0xd4, 0x27, 0x38, 0xdb, 0xb5, 0x40, 0xe8, 0x2e, 0x48, 0xde,
3963
+ 0xa5, 0x98, 0xed, 0xb1, 0x50, 0xb0, 0xb5, 0x40, 0x27, 0xb5, 0x40, 0x55,
3964
+ 0xc6, 0x30, 0xda, 0xc5, 0x20, 0x8d, 0xb7, 0x38, 0x93, 0x21, 0x98, 0x04,
3965
+ 0x2f, 0x20, 0x5b, 0xba, 0x28, 0x93, 0x24, 0x48, 0x3a, 0xb3, 0x48, 0x8f,
3966
+ 0xa0, 0x30, 0x68, 0x21, 0x28, 0x2a, 0xb3, 0x48, 0x00, 0x00, 0x11, 0x01,
3967
+ 0x38, 0x02, 0x07, 0x03, 0x3c, 0x04, 0x11, 0x05, 0x11, 0x06,
3968
+};
3969
+
3970
+static const u8 data_segment_data_w2c_highlights_d101[] = {
3971
+ 0x01, 0x06, 0x04, 0x00, 0x0c, 0x04, 0x5d, 0x0a, 0x0b, 0x00, 0x0a, 0x1c,
3972
+ 0x04, 0x01, 0x1a, 0x10, 0x06, 0x18, 0x04, 0x09, 0x00, 0x0a, 0x61, 0x69,
3973
+ 0x20, 0x00, 0x1b, 0x29, 0x00, 0x0b, 0x1f, 0x35, 0x15, 0x01, 0x00, 0x02,
3974
+ 0x27, 0x0f, 0x04, 0x00, 0x03, 0x07, 0x39, 0x01, 0x0d, 0x0b, 0x0b, 0x01,
3975
+ 0x04, 0x14, 0x02, 0x00, 0x05, 0x58, 0x03, 0x01, 0x02, 0x00, 0x09, 0x0b,
3976
+ 0x03, 0x11, 0xfb, 0x85, 0x49, 0x00, 0xb8, 0x38, 0xc0, 0x34, 0x28, 0x9b,
3977
+ 0xa4, 0x60, 0x6f, 0x20, 0x18, 0x72, 0x60, 0x39, 0xc0, 0x50, 0x58, 0xe7,
3978
+ 0xa9, 0x28, 0xdb, 0x72, 0x49, 0xc3, 0x6c, 0x21, 0x93, 0x61, 0x21, 0x3d,
3979
+ 0x37, 0x19, 0x5b, 0x81, 0x31, 0xea, 0x20, 0x18, 0xee, 0x8a, 0x49, 0xe3,
3980
+ 0xa3, 0x18, 0xc8, 0x6f, 0x69, 0xa2, 0x38, 0x28, 0x28, 0xe0, 0x10, 0x41,
3981
+ 0xaa, 0x58, 0xf0, 0xab, 0x40, 0xac, 0xa7, 0x18, 0x8d, 0x70, 0x39, 0xb9,
3982
+ 0x74, 0x41, 0x2f, 0x2c, 0x20, 0x86, 0x36, 0x40, 0x45, 0x82, 0x39, 0xd6,
3983
+ 0x37, 0x38, 0xc4, 0x69, 0x39, 0xcc, 0x67, 0x41, 0xab, 0x0e, 0x21, 0x91,
3984
+ 0x65, 0x49, 0xee, 0x8a, 0x29, 0x71, 0x74, 0x49, 0xc3, 0xa1, 0x18, 0x5c,
3985
+ 0xa9, 0x28, 0xbb, 0xe1, 0x10, 0x60, 0x21, 0x10, 0x06, 0xe0, 0x10, 0xa1,
3986
+ 0x25, 0x20, 0x7e, 0xfa, 0x18, 0x46, 0x21, 0x10, 0xd0, 0xb9, 0x28, 0xbe,
3987
+ 0x6b, 0x38, 0xdc, 0xe8, 0x18, 0x88, 0x7b, 0x20, 0x4c, 0x76, 0x41, 0xb9,
3988
+ 0x6a, 0x51, 0xf9, 0xe4, 0x18, 0x0b, 0xa8, 0x38, 0xac, 0x8c, 0x41, 0xad,
3989
+ 0xd9, 0x28, 0x16, 0x25, 0x30, 0xcb, 0xb9, 0x30, 0xa8, 0x66, 0x38, 0xa6,
3990
+ 0xa7, 0x48, 0x46, 0xac, 0x50, 0x11, 0x6b, 0x31, 0x42, 0xa1, 0x20, 0xa7,
3991
+ 0xb8, 0x38, 0x72, 0x74, 0x41, 0x8e, 0xac, 0x50, 0x33, 0x76, 0x29, 0x9e,
3992
+ 0x76, 0x41, 0xb6, 0x6d, 0x41, 0xbe, 0x86, 0x29, 0xec, 0xb6, 0x40, 0x7d,
3993
+ 0xa8, 0x40, 0xf2, 0x44, 0x40, 0xbc, 0x6a, 0x39, 0x25, 0x6c, 0x59, 0x19,
3994
+ 0x2b, 0x28, 0x18, 0x6d, 0x41, 0xe8, 0xac, 0x40, 0xd1, 0x64, 0x31, 0x5d,
3995
+ 0xb4, 0x30, 0xc0, 0x69, 0x21, 0xd2, 0xb4, 0x40, 0x1f, 0x6a, 0x21, 0x51,
3996
+ 0xaf, 0x28, 0x3f, 0x6e, 0x41, 0xff, 0x20, 0x10, 0x5f, 0x1a, 0x29, 0x01,
3997
+ 0xe0, 0x10, 0x04, 0x70, 0x31, 0xc9, 0x69, 0x51, 0xc9, 0xa4, 0x70, 0x11,
3998
+ 0xad, 0x40, 0xeb, 0x23, 0x20, 0x68, 0xa1, 0x28, 0xd0, 0xa7, 0x20, 0xdd,
3999
+ 0xf9, 0x18, 0x19, 0xe7, 0x18, 0xd4, 0xa7, 0x38, 0x75, 0xac, 0x38, 0x4f,
4000
+ 0x21, 0x10, 0x77, 0xab, 0x30, 0x90, 0xaf, 0x38, 0x33, 0x87, 0x51, 0x3f,
4001
+ 0xb9, 0x30, 0xc2, 0x6a, 0x39, 0xe3, 0xb5, 0x40, 0x40, 0xa9, 0x48, 0x46,
4002
+ 0x20, 0x10, 0x6f, 0xae, 0x30, 0x02, 0x21, 0x20, 0x83, 0xa0, 0x70, 0x01,
4003
+ 0xe8, 0x18, 0x59, 0x82, 0x21, 0xc3, 0xaa, 0x30, 0xeb, 0xb5, 0x40, 0x8c,
4004
+ 0x9b, 0x20, 0x63, 0xb2, 0x30, 0xe7, 0xa9, 0x60, 0x24, 0x32, 0x28, 0xbc,
4005
+ 0xbb, 0x18, 0x74, 0x38, 0x30, 0xc3, 0xa3, 0x70, 0xe8, 0xae, 0x48, 0x0e,
4006
+ 0xb4, 0x48, 0x38, 0x76, 0x41, 0x29, 0xa0, 0x30, 0xf1, 0x43, 0x50, 0xf3,
4007
+ 0x25, 0x30, 0xb8, 0x74, 0x49, 0x4f, 0xac, 0x38, 0x1f, 0x6d, 0x41, 0x51,
4008
+ 0x6e, 0x39, 0xa9, 0xb4, 0x48, 0xa0, 0xb9, 0x30, 0xb4, 0x6b, 0x41, 0xd5,
4009
+ 0xa0, 0x28, 0x1e, 0x31, 0x20, 0xb0, 0x2a, 0x20, 0xf4, 0x79, 0x31, 0xe4,
4010
+ 0x72, 0x51, 0x01, 0x6c, 0x38, 0xd1, 0x60, 0x21, 0xed, 0x43, 0x21, 0xb9,
4011
+ 0xa4, 0x68, 0xc0, 0x69, 0x41, 0xdc, 0xc3, 0x18, 0x17, 0xfb, 0x18, 0x29,
4012
+ 0xab, 0x38, 0x93, 0xa4, 0x48, 0x30, 0x65, 0x51, 0xc8, 0xb6, 0x40, 0xb9,
4013
+ 0x55, 0x40, 0x60, 0xa8, 0x30, 0x8f, 0x54, 0x48, 0x4c, 0x98, 0x31, 0x88,
4014
+ 0xb1, 0x48, 0xc1, 0x75, 0x29, 0x00, 0x00, 0x12, 0x00, 0x13, 0x01, 0x13,
4015
+ 0x02, 0x14, 0x03, 0x13, 0x00, 0x11, 0x00, 0x15, 0x00, 0x03, 0x00, 0x07,
4016
+ 0x00, 0x3c, 0x00, 0x38, 0x00, 0x11, 0x10,
4017
+};
4018
+
4019
+static const u8 data_segment_data_w2c_highlights_d102[] = {
4020
+ 0x30, 0x02, 0x03, 0x04, 0x22, 0x6a, 0x01, 0x00, 0x03, 0x0a, 0x16, 0x15,
4021
+ 0x03, 0x04, 0x1d, 0x12, 0x00, 0x06, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00,
4022
+ 0x10, 0x04, 0x1a, 0x03, 0x45, 0x1e, 0x16, 0x0b, 0x1e, 0xf1, 0x20, 0x5f,
4023
+ 0xef, 0x28, 0x4f, 0x21, 0x10, 0x60, 0xee, 0x30, 0xdb, 0xc2, 0x10, 0xb1,
4024
+ 0xe9, 0x20, 0xd8, 0xe2, 0x30, 0x06, 0xf8, 0x30, 0xa2, 0x38, 0x28, 0x69,
4025
+ 0xfa, 0x28, 0x12, 0xe6, 0x38, 0xbe, 0xe6, 0x28, 0x64, 0xb1, 0x18, 0xc9,
4026
+ 0xc1, 0x10, 0x57, 0xe1, 0x28, 0x2f, 0x2c, 0x20, 0x6d, 0x2b, 0x20, 0x11,
4027
+ 0xc0, 0x10, 0x86, 0xc0, 0x10, 0xea, 0x20, 0x18, 0x83, 0xf8, 0x28, 0xef,
4028
+ 0xa1, 0x38, 0x29, 0xe6, 0x20, 0x81, 0xf6, 0x28, 0xc3, 0x80, 0x18, 0x78,
4029
+ 0x86, 0x28, 0x51, 0xe0, 0x10, 0xc7, 0xf9, 0x18, 0xc0, 0x2e, 0x28, 0x8c,
4030
+ 0xe1, 0x30, 0x40, 0xe9, 0x18, 0x26, 0x26, 0x38, 0xbe, 0x6b, 0x38, 0x19,
4031
+ 0x2b, 0x28, 0x5e, 0xef, 0x38, 0x06, 0xc0, 0x10, 0xbe, 0x9b, 0x10, 0x84,
4032
+ 0xfb, 0x20, 0x91, 0x38, 0x30, 0x5e, 0x21, 0x20, 0x06, 0xe8, 0x20, 0x8f,
4033
+ 0x3a, 0x19, 0xaa, 0xed, 0x20, 0x19, 0xc7, 0x18, 0x60, 0xfb, 0x20, 0xdf,
4034
+ 0x43, 0x18, 0x00, 0x00, 0x00, 0x02, 0x21, 0x20, 0x84, 0xe9, 0x10, 0xde,
4035
+ 0xf0, 0x30, 0x7b, 0xee, 0x20, 0xf9, 0xc4, 0x18, 0xcc, 0xdb, 0x18, 0x5e,
4036
+ 0x82, 0x28, 0x60, 0x21, 0x10, 0xe0, 0xfa, 0x20, 0x5f, 0xef, 0x30, 0x1e,
4037
+ 0xfb, 0x18, 0xe3, 0xf4, 0x48, 0xe7, 0x23, 0x20, 0x3b, 0xf9, 0x28, 0xd0,
4038
+ 0x25, 0x30, 0x81, 0xf8, 0x38, 0x6b, 0xf2, 0x30, 0xa0, 0x11, 0x19, 0x30,
4039
+ 0xf7, 0x20, 0xf0, 0xc1, 0x10, 0x05, 0xa0, 0x10, 0x01, 0xc8, 0x18, 0x92,
4040
+ 0xc2, 0x10, 0xd9, 0xe1, 0x18, 0x43, 0xec, 0x20, 0x0b, 0x1a, 0x29,
4041
+};
4042
+
4043
+static const u8 data_segment_data_w2c_highlights_d103[] = {
4044
+ 0x02, 0xd8, 0x52, 0x6a, 0x04, 0x10, 0x11, 0x00, 0x14, 0x6d, 0x0e, 0x02,
4045
+ 0x37, 0x08, 0x0d, 0x38, 0x39, 0x28, 0x5c, 0xa9, 0x28, 0x32, 0xae, 0x28,
4046
+ 0x86, 0x36, 0x40, 0x93, 0xa4, 0x48, 0x29, 0x40, 0x30, 0x68, 0xa1, 0x28,
4047
+ 0xf1, 0x3a, 0x28, 0xb1, 0x54, 0x38, 0xf2, 0xa4, 0x40, 0xd0, 0x25, 0x30,
4048
+ 0x5f, 0x56, 0x28, 0x60, 0x62, 0x40, 0x6c, 0x2c, 0x30, 0x05, 0x42, 0x38,
4049
+ 0xe8, 0x4e, 0x48, 0x06, 0x6e, 0x28, 0xd5, 0x60, 0x28, 0x5f, 0x9a, 0x28,
4050
+ 0xe7, 0x49, 0x28, 0x19, 0x2b, 0x28, 0xcd, 0x4c, 0x50, 0x33, 0xa7, 0x50,
4051
+ 0xd4, 0x47, 0x38, 0x5f, 0x2f, 0x28, 0x45, 0x22, 0x38, 0x07, 0x4a, 0x60,
4052
+ 0xc3, 0x79, 0x28, 0x4e, 0x54, 0x48, 0x26, 0x26, 0x38, 0xd6, 0x37, 0x38,
4053
+ 0xc3, 0x6a, 0x30, 0xef, 0x41, 0x38, 0x59, 0x2f, 0x28, 0x4b, 0x29, 0x30,
4054
+ 0xcb, 0x59, 0x30, 0xde, 0x67, 0x28, 0x60, 0x40, 0x30, 0x24, 0x32, 0x28,
4055
+ 0x5e, 0xac, 0x38, 0x00, 0x00, 0x00, 0x6e, 0xa1, 0x48, 0x3e, 0x50, 0x60,
4056
+ 0xb3, 0x3a, 0x28, 0x50, 0x68, 0x40, 0x6a, 0x26, 0x28, 0xd1, 0x64, 0x30,
4057
+ 0x1b, 0x2f, 0x28, 0xeb, 0x55, 0x40, 0x64, 0x5a, 0x28, 0xac, 0x4c, 0x40,
4058
+ 0x00, 0x00, 0x12, 0x00, 0x11, 0x00, 0x38, 0x00, 0x03, 0x00, 0x13,
4059
+};
4060
+
4061
+static const u8 data_segment_data_w2c_highlights_d104[] = {
4062
+ 0x0a, 0x2e, 0x00, 0x0c, 0x2d, 0x07, 0x24, 0x06, 0x30, 0x00, 0x36, 0xa5,
4063
+ 0x01, 0x12, 0x01, 0x00, 0x02, 0x00, 0x4c, 0x04, 0x13, 0x1a, 0x00, 0x00,
4064
+ 0x02, 0x03, 0x25, 0x03, 0x0b, 0x0e, 0xdc, 0x23, 0x18, 0x66, 0x95, 0x30,
4065
+ 0x74, 0x3b, 0x21, 0x4f, 0x21, 0x10, 0xc3, 0x4d, 0x68, 0xcf, 0xdb, 0x18,
4066
+ 0x81, 0xcf, 0x38, 0x01, 0xc0, 0x10, 0x91, 0x2e, 0x20, 0x54, 0xdb, 0x20,
4067
+ 0xd0, 0x25, 0x30, 0xa2, 0x38, 0x28, 0x85, 0xc4, 0x18, 0xa6, 0x36, 0x28,
4068
+ 0xac, 0x87, 0x18, 0x71, 0x88, 0x40, 0x86, 0x36, 0x40, 0x81, 0xd6, 0x28,
4069
+ 0x86, 0xc0, 0x10, 0x28, 0xc0, 0x10, 0xf2, 0x44, 0x40, 0x92, 0xc2, 0x10,
4070
+ 0x45, 0x22, 0x38, 0x58, 0xdb, 0x20, 0xad, 0x39, 0x28, 0x00, 0x00, 0x00,
4071
+ 0x18, 0x96, 0x40, 0x00, 0x00, 0x00, 0xaf, 0x27, 0x21, 0xc8, 0x35, 0x21,
4072
+ 0x60, 0x21, 0x10, 0x7e, 0x2b, 0x71, 0xf9, 0xc4, 0x18, 0x60, 0x83, 0x30,
4073
+ 0x02, 0x21, 0x20, 0x17, 0xdb, 0x18, 0x06, 0xc0, 0x10, 0x7e, 0xda, 0x18,
4074
+ 0x29, 0x57, 0x40, 0x5d, 0xce, 0x20, 0x19, 0x2b, 0x28, 0x63, 0xc3, 0x18,
4075
+ 0xd6, 0x85, 0x20, 0x00, 0x00, 0x00, 0xd3, 0xd9, 0x28, 0xab, 0xee, 0x20,
4076
+ 0x5c, 0xdb, 0x20, 0xf4, 0x36, 0x41, 0x4f, 0x38, 0x19, 0x6a, 0x26, 0x39,
4077
+ 0x4d, 0xda, 0x18, 0x5c, 0xce, 0x28, 0xc9, 0x2c, 0x21, 0x11, 0xc0, 0x10,
4078
+ 0x19, 0xc7, 0x18, 0xdc, 0xd4, 0x38, 0x84, 0xdb, 0x20, 0x00, 0x00, 0x00,
4079
+ 0x6f, 0x20, 0x18, 0xbe, 0x39, 0x31, 0xa1, 0x3a, 0x29, 0xac, 0x28, 0x60,
4080
+ 0xa0, 0xcc, 0x40, 0xfc, 0xc4, 0x40, 0x1b, 0xca, 0x30, 0xc8, 0xd9, 0x18,
4081
+ 0xf9, 0xc4, 0x58, 0x4b, 0x29, 0x30, 0x26, 0xd9, 0x30, 0xdb, 0xd4, 0x40,
4082
+ 0x59, 0x2f, 0x28, 0xea, 0x20, 0x18, 0x83, 0x26, 0x89, 0xae, 0xda, 0x28,
4083
+ 0x6a, 0xc6, 0x28, 0x24, 0x32, 0x28, 0xd6, 0x37, 0x38, 0xc9, 0xc1, 0x10,
4084
+ 0x96, 0xd6, 0x40, 0x38, 0x39, 0x28, 0x29, 0x80, 0x30, 0x00, 0x00, 0x00,
4085
+ 0x1e, 0x31, 0x20, 0x51, 0x03, 0x21, 0x26, 0x65, 0x20, 0x63, 0x3b, 0x19,
4086
+ 0x5e, 0x38, 0x38, 0x68, 0x61, 0x28, 0xc7, 0x41, 0x30, 0x71, 0xb3, 0x28,
4087
+ 0x26, 0x26, 0x38, 0xf0, 0xc1, 0x10, 0xb2, 0x25, 0x29, 0x6c, 0x2c, 0x30,
4088
+ 0x01, 0xc8, 0x18, 0x5f, 0xfa, 0x28, 0xdb, 0xc2, 0x10, 0x0b, 0xd4, 0x28,
4089
+ 0x8a, 0x86, 0x28, 0x60, 0x88, 0x60, 0xbb, 0xc1, 0x10,
4090
+};
4091
+
4092
+static const u8 data_segment_data_w2c_highlights_d105[] = {
4093
+ 0x07, 0x00, 0x74, 0x03, 0x00, 0x00, 0x06, 0x03, 0x00, 0x1a, 0x04, 0x00,
4094
+ 0x18, 0x02, 0x21, 0xc0, 0x55, 0x18, 0xb4, 0x2b, 0x30, 0x27, 0xcd, 0x40,
4095
+ 0xcb, 0xb9, 0x30, 0xb7, 0xb1, 0x38, 0x72, 0xcd, 0x38, 0xef, 0xac, 0x40,
4096
+ 0x04, 0xd0, 0x30, 0xde, 0xc7, 0x28, 0x32, 0xd6, 0x30, 0x26, 0x25, 0x20,
4097
+ 0x6a, 0xd6, 0x28, 0xee, 0xba, 0x18, 0xbb, 0xaf, 0x30, 0x67, 0xa3, 0x30,
4098
+ 0xab, 0xee, 0x20, 0xf7, 0xb8, 0x20, 0xd9, 0xa1, 0x18, 0xd1, 0xc4, 0x30,
4099
+ 0xf7, 0xd2, 0x30, 0x5f, 0xfa, 0x28, 0x4b, 0xa3, 0x38, 0xff, 0xa0, 0x10,
4100
+ 0xf8, 0xd2, 0x28, 0xc0, 0xb6, 0x40, 0xf4, 0xd9, 0x30, 0xdf, 0xa1, 0x28,
4101
+ 0xc4, 0xc9, 0x20, 0xbe, 0x6b, 0x38, 0xc0, 0xb6, 0x30, 0x28, 0xcd, 0x38,
4102
+ 0xa6, 0x8e, 0x30, 0x75, 0x2c, 0x38, 0x33, 0xd6, 0x28, 0xbd, 0xa1, 0x28,
4103
+ 0x71, 0xcd, 0x40, 0x47, 0xa7, 0x50, 0x65, 0x2e, 0x38, 0xee, 0xd9, 0x30,
4104
+ 0x00, 0x00, 0x13, 0x01, 0x13, 0x02, 0x13, 0x03, 0x14, 0x00, 0x11, 0x00,
4105
+ 0x38, 0x00, 0x03,
4106
+};
4107
+
4108
+static const u8 data_segment_data_w2c_highlights_d106[] = {
4109
+ 0x14, 0x0c, 0x00, 0x01, 0x00, 0xd6, 0x06, 0x3e, 0x9b, 0x20, 0x8a, 0x90,
4110
+ 0x58, 0x39, 0x8f, 0x68, 0x16, 0x25, 0x30, 0xab, 0x9b, 0x18, 0xf2, 0x44,
4111
+ 0x40, 0x35, 0x63, 0x20, 0xd0, 0x25, 0x30, 0xe7, 0x23, 0x20, 0x19, 0x2b,
4112
+ 0x28, 0xea, 0x20, 0x18, 0xa1, 0x9b, 0x18, 0x4f, 0x21, 0x10, 0x01, 0xa0,
4113
+ 0x10, 0x24, 0x32, 0x28, 0x00, 0x00, 0x00, 0x42, 0x95, 0x40, 0x20, 0x7a,
4114
+ 0x28, 0x02, 0x21, 0x20, 0x39, 0x8f, 0x10,
4115
+};
4116
+
4117
+static const u8 data_segment_data_w2c_highlights_d107[] = {
4118
+ 0x03, 0x22, 0x05, 0x97, 0x03, 0x04, 0x06, 0x0a, 0x37, 0x3b, 0x0a, 0x00,
4119
+ 0xe6, 0x0d, 0x0a, 0x00, 0xdc, 0x23, 0x18, 0xc0, 0x34, 0x28, 0x24, 0x32,
4120
+ 0x28, 0x91, 0x38, 0x30, 0xb0, 0x2a, 0x20, 0x6a, 0x39, 0x31, 0xa2, 0x38,
4121
+ 0x28, 0xdc, 0x68, 0x30, 0xdb, 0x21, 0x11, 0x59, 0x2f, 0x29, 0xa1, 0x21,
4122
+ 0x61, 0xef, 0x21, 0x81, 0xe8, 0x2e, 0x49, 0xad, 0x24, 0x69, 0x5e, 0x21,
4123
+ 0x20, 0x71, 0x33, 0x29, 0x60, 0x21, 0x10, 0xea, 0x20, 0x18, 0x0b, 0x3a,
4124
+ 0x28, 0x96, 0x2f, 0x31, 0xd0, 0x25, 0x30, 0xcb, 0x39, 0x31, 0x19, 0x2b,
4125
+ 0x28, 0x7c, 0x41, 0x18, 0xa0, 0x31, 0x18, 0xed, 0x03, 0x21, 0xb7, 0x35,
4126
+ 0x21, 0x40, 0x24, 0x21, 0xdc, 0x28, 0x79, 0x5f, 0x2f, 0x29, 0xc0, 0x2e,
4127
+ 0x28, 0xef, 0x21, 0x39, 0x05, 0x22, 0x39, 0xab, 0xce, 0x20, 0x0f, 0x17,
4128
+ 0x29, 0x4f, 0x21, 0x10, 0xa1, 0x81, 0x28, 0xe7, 0x23, 0x20, 0x06, 0xa0,
4129
+ 0x10, 0x01, 0xa8, 0x18, 0x5f, 0xda, 0x28, 0x52, 0x33, 0x30, 0xd4, 0x27,
4130
+ 0x39, 0xa4, 0x34, 0x28, 0x5f, 0x36, 0x28, 0xb6, 0x29, 0x20, 0xb4, 0x2b,
4131
+ 0x31, 0xad, 0x39, 0x28, 0xf9, 0xa4, 0x18, 0x3d, 0xf7, 0x18, 0x68, 0x61,
4132
+ 0x28, 0x38, 0x39, 0x29, 0x8f, 0x34, 0x21, 0x22, 0x2e, 0x30, 0x01, 0x20,
4133
+ 0x10, 0x46, 0x38, 0x39,
4134
+};
4135
+
4136
+static const u8 data_segment_data_w2c_highlights_d108[] = {
4137
+ 0x04, 0x2b, 0x3c, 0x49, 0x10, 0x10, 0x59, 0x11, 0x01, 0x00, 0x00, 0x03,
4138
+ 0x10, 0x04, 0x00, 0x0c, 0x29, 0xa0, 0x30, 0x4f, 0x81, 0x10, 0x00, 0x00,
4139
+ 0x00, 0x40, 0xc9, 0x18, 0x69, 0x1b, 0x19, 0x0f, 0x77, 0x28, 0x7a, 0x27,
4140
+ 0x10, 0x24, 0x92, 0x28, 0x1f, 0x0a, 0x21, 0x26, 0x45, 0x20, 0xa9, 0xd4,
4141
+ 0x18, 0x19, 0x8b, 0x28, 0xdb, 0x1b, 0x19, 0x16, 0x1a, 0x29, 0xb7, 0x95,
4142
+ 0x20, 0x28, 0xe0, 0x10, 0x6a, 0x86, 0x28, 0xd9, 0xc9, 0x18, 0x7b, 0xc5,
4143
+ 0x28, 0xc4, 0x09, 0x21, 0xf0, 0x6b, 0x30, 0xf6, 0x1b, 0x11, 0x5f, 0x3a,
4144
+ 0x29, 0x4e, 0x40, 0x30, 0xa3, 0x1b, 0x19, 0x42, 0x41, 0x20, 0x76, 0x7a,
4145
+ 0x28, 0xed, 0x43, 0x21, 0x01, 0xe0, 0x10, 0x46, 0x5b, 0x21, 0x86, 0x96,
4146
+ 0x40, 0xe6, 0x1b, 0x19, 0x4e, 0x00, 0x19, 0x0b, 0xc8, 0x18, 0xab, 0x2e,
4147
+ 0x21, 0xe3, 0x1b, 0x19, 0xe9, 0x1b, 0x19, 0x57, 0x96, 0x28, 0xd8, 0x1b,
4148
+ 0x19, 0xf4, 0x1b, 0x11, 0x64, 0x71, 0x18, 0xea, 0x80, 0x18, 0x88, 0xa1,
4149
+ 0x18, 0xe5, 0x5a, 0x28, 0x02, 0x81, 0x20, 0x94, 0xca, 0x20, 0x5c, 0xa9,
4150
+ 0x28, 0x81, 0x1b, 0x19, 0xdc, 0x48, 0x18, 0x83, 0xa0, 0x20, 0xd0, 0x85,
4151
+ 0x30, 0x00, 0x00, 0x00, 0xf6, 0x1a, 0x29, 0xe0, 0xc5, 0x30, 0x32, 0x4e,
4152
+ 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x01, 0x13, 0x02, 0x14, 0x00,
4153
+ 0x12, 0x00, 0x13, 0x00, 0x11, 0x00, 0x15, 0x00, 0x38, 0x00, 0x03, 0x00,
4154
+ 0x3c,
4155
+};
4156
+
4157
+static const u8 data_segment_data_w2c_highlights_d109[] = {
4158
+ 0x0e, 0x01, 0x00, 0x01, 0x00, 0x07, 0x66, 0x0c, 0x08, 0x00, 0x04, 0x0d,
4159
+ 0x0b, 0x38, 0x02, 0x71, 0xd3, 0x28, 0x00, 0x00, 0x00, 0x5f, 0x36, 0x28,
4160
+ 0xc3, 0x6a, 0x30, 0xe7, 0xc9, 0x28, 0xeb, 0x23, 0x20, 0xea, 0x20, 0x18,
4161
+ 0xac, 0x87, 0x18, 0x59, 0x2f, 0x28, 0x63, 0xd6, 0x38, 0x60, 0xc8, 0x30,
4162
+ 0x1c, 0x94, 0x20, 0x6f, 0x20, 0x18, 0x0b, 0xc6, 0x28, 0x0f, 0x37, 0x29,
4163
+ 0x6f, 0xce, 0x30, 0xe8, 0xce, 0x48, 0xa1, 0xc5, 0x20, 0x47, 0x87, 0x48,
4164
+ 0xd0, 0x25, 0x30, 0x42, 0x61, 0x20, 0xd4, 0xc7, 0x38, 0x4f, 0xac, 0x30,
4165
+ 0x90, 0xc0, 0x18, 0xab, 0xee, 0x20, 0x19, 0x2b, 0x28, 0x38, 0x39, 0x28,
4166
+ 0xfe, 0xd2, 0x40, 0x7b, 0xce, 0x20, 0xdc, 0x23, 0x18, 0x17, 0x8c, 0x28,
4167
+ 0x4d, 0xc2, 0x58, 0x5f, 0xfa, 0x28, 0xc9, 0x2c, 0x21, 0x51, 0x03, 0x21,
4168
+ 0xd6, 0x37, 0x38, 0x5e, 0xcc, 0x38, 0xf2, 0xd7, 0x38, 0x26, 0x65, 0x20,
4169
+ 0xbe, 0xab, 0x38, 0x60, 0x21, 0x10, 0x79, 0xd3, 0x30, 0x00, 0x00, 0x00,
4170
+ 0xe3, 0xd8, 0x28, 0xa6, 0xae, 0x30, 0xeb, 0xd5, 0x40, 0x4f, 0x21, 0x10,
4171
+ 0xb0, 0x2a, 0x20, 0x6a, 0x26, 0x28, 0xc8, 0xd6, 0x40, 0x02, 0x21, 0x20,
4172
+ 0x7c, 0x41, 0x18, 0x32, 0x6e, 0x28, 0x8c, 0x81, 0x18, 0x68, 0x61, 0x28,
4173
+ 0x00, 0x00, 0x12, 0x00, 0x13, 0x01, 0x13, 0x02, 0x13, 0x00, 0x14, 0x00,
4174
+ 0x11, 0x00, 0x03, 0x00, 0x07, 0x00, 0x3c,
4175
+};
4176
+
4177
+static const u8 data_segment_data_w2c_highlights_d110[] = {
4178
+ 0x42, 0x41, 0x2d, 0xa6, 0x11, 0x0d, 0x0e, 0x02, 0x58, 0x69, 0x06, 0x02,
4179
+ 0x0c, 0x04, 0x00, 0x07, 0x20, 0x02, 0x19, 0x00, 0x00, 0x11, 0x10, 0x06,
4180
+ 0x2d, 0x0b, 0x13, 0x1d, 0x35, 0x00, 0x05, 0x3a, 0x2e, 0x28, 0xbb, 0xc1,
4181
+ 0x10, 0x62, 0x94, 0x30, 0xc4, 0xe9, 0x20, 0x01, 0xe0, 0x18, 0xcb, 0xd9,
4182
+ 0x30, 0x9e, 0xc5, 0x20, 0xd1, 0xe4, 0x30, 0x93, 0x44, 0x48, 0x60, 0xc0,
4183
+ 0x30, 0xcf, 0x68, 0x39, 0x78, 0x68, 0x49, 0x71, 0xf6, 0x38, 0x90, 0xc0,
4184
+ 0x18, 0xea, 0x80, 0x18, 0x2e, 0x66, 0x71, 0xca, 0x70, 0x38, 0xd9, 0xe1,
4185
+ 0x38, 0xc8, 0xd6, 0x40, 0x38, 0x68, 0x49, 0xb2, 0x25, 0x28, 0xeb, 0x83,
4186
+ 0x20, 0xd4, 0xc7, 0x38, 0x26, 0x45, 0x20, 0x5f, 0x1a, 0x29, 0x45, 0x82,
4187
+ 0x38, 0xc4, 0xc7, 0x48, 0x6a, 0xd3, 0x48, 0xc4, 0x7a, 0x29, 0xeb, 0x61,
4188
+ 0x31, 0x71, 0xb3, 0x28, 0x1b, 0xc8, 0x40, 0xeb, 0xd5, 0x40, 0x7f, 0x3b,
4189
+ 0x19, 0xdd, 0x4d, 0x19, 0xd0, 0x65, 0x71, 0xa6, 0xae, 0x30, 0x13, 0x5b,
4190
+ 0x29, 0x0c, 0x2f, 0x11, 0x06, 0xd8, 0x30, 0xbd, 0x71, 0x31, 0x4f, 0xd5,
4191
+ 0x40, 0xa7, 0xd8, 0x38, 0x6e, 0x76, 0x29, 0xed, 0x63, 0x61, 0x1b, 0x68,
4192
+ 0x61, 0x91, 0x75, 0x40, 0x93, 0x4b, 0x29, 0x5a, 0x61, 0x31, 0x0b, 0x4d,
4193
+ 0x39, 0xa2, 0xd4, 0x20, 0x19, 0x8b, 0x28, 0xc0, 0x70, 0x58, 0x7b, 0x56,
4194
+ 0x39, 0xd7, 0xc9, 0x48, 0xef, 0x68, 0x61, 0xf2, 0x24, 0x40, 0x36, 0xe5,
4195
+ 0x20, 0xa6, 0xd9, 0x30, 0x0b, 0x76, 0x41, 0x9a, 0x4f, 0x21, 0xd9, 0xa8,
4196
+ 0x20, 0x22, 0x85, 0x28, 0xc5, 0xd4, 0x48, 0xd8, 0x66, 0x61, 0x0f, 0x37,
4197
+ 0x29, 0xf1, 0x70, 0x31, 0x8e, 0x56, 0x40, 0xd8, 0xf9, 0x30, 0x66, 0x25,
4198
+ 0x29, 0x8b, 0x5a, 0x29, 0x6f, 0x80, 0x18, 0x02, 0x81, 0x20, 0x4b, 0x89,
4199
+ 0x30, 0x88, 0x61, 0x18, 0x98, 0xc5, 0x30, 0xab, 0x0e, 0x21, 0xe1, 0x2c,
4200
+ 0x40, 0x15, 0x68, 0x51, 0x28, 0xed, 0x28, 0xbe, 0xc6, 0x38, 0x60, 0x81,
4201
+ 0x10, 0x24, 0x92, 0x28, 0x3b, 0x78, 0x31, 0x30, 0x60, 0x31, 0xf0, 0xcb,
4202
+ 0x40, 0x66, 0x65, 0x49, 0x00, 0x00, 0x00, 0x38, 0x99, 0x28, 0x9d, 0xcf,
4203
+ 0x38, 0x5c, 0x90, 0x20, 0xb7, 0x91, 0x38, 0x44, 0xce, 0x40, 0xd0, 0x85,
4204
+ 0x30, 0xc8, 0x6b, 0x49, 0x59, 0x8f, 0x28, 0x4f, 0x81, 0x10, 0xb7, 0x28,
4205
+ 0x19, 0x01, 0x4c, 0x38, 0xd1, 0xe0, 0x20, 0x86, 0x96, 0x40, 0x4e, 0x40,
4206
+ 0x30, 0x42, 0x41, 0x20, 0x00, 0x00, 0x00, 0xc9, 0x2c, 0x21, 0x6a, 0xf6,
4207
+ 0x28, 0x28, 0xa0, 0x10, 0xdc, 0x4d, 0x21, 0x00, 0x00, 0x00, 0x28, 0xd8,
4208
+ 0x38, 0x00, 0x00, 0x13, 0x01, 0x13, 0x02, 0x13, 0x00, 0x12, 0x00, 0x14,
4209
+ 0x00, 0x11, 0x00, 0x38, 0x00, 0x03, 0x00, 0x3c, 0x00, 0x07, 0x00, 0x0e,
4210
+
4211
+};
4212
+
4213
+static const u8 data_segment_data_w2c_highlights_d111[] = {
4214
+ 0x02, 0x14, 0xf5, 0x09, 0x28, 0x00, 0x5e, 0x10, 0x11, 0x15, 0x6e, 0x00,
4215
+ 0x22, 0x32, 0x14, 0x1c, 0x02, 0x21, 0x20, 0x74, 0x65, 0x48, 0xe7, 0x69,
4216
+ 0x29, 0x4b, 0x89, 0x31, 0xb2, 0x87, 0x48, 0x73, 0xac, 0x21, 0xeb, 0x23,
4217
+ 0x20, 0x44, 0x6e, 0x41, 0xbb, 0xc1, 0x10, 0xa5, 0x77, 0x28, 0x82, 0x6a,
4218
+ 0x40, 0x86, 0x36, 0x40, 0xd1, 0x26, 0x28, 0x28, 0xc0, 0x10, 0xf7, 0xb8,
4219
+ 0x21, 0xc0, 0x6f, 0x41, 0xed, 0x43, 0x21, 0x37, 0xf7, 0x20, 0xd0, 0x67,
4220
+ 0x59, 0xab, 0x0e, 0x21, 0x1c, 0xb4, 0x21, 0xa2, 0xf1, 0x30, 0x47, 0x67,
4221
+ 0x48, 0x57, 0x36, 0x28, 0x16, 0x25, 0x30, 0x4e, 0x60, 0x30, 0x57, 0x6f,
4222
+ 0x41, 0xc8, 0x76, 0x41, 0x27, 0xe3, 0x18, 0x19, 0x8b, 0x29, 0x01, 0xc0,
4223
+ 0x10, 0x7b, 0x25, 0x28, 0xf4, 0x8d, 0x29, 0xa6, 0xae, 0x30, 0xea, 0x80,
4224
+ 0x19, 0x7b, 0xae, 0x21, 0xf2, 0x44, 0x20, 0x9c, 0x7a, 0x29, 0x59, 0x6f,
4225
+ 0x31, 0x0f, 0x57, 0x29, 0x4f, 0x81, 0x11, 0x38, 0x99, 0x29, 0x45, 0x22,
4226
+ 0x38, 0x3d, 0x37, 0x19, 0x76, 0xb3, 0x19, 0xac, 0x87, 0x18, 0x5f, 0x1a,
4227
+ 0x29, 0x60, 0x21, 0x10, 0x23, 0x97, 0x30, 0xd4, 0x67, 0x39, 0x29, 0x60,
4228
+ 0x31, 0x00, 0x00, 0x00, 0x6e, 0x78, 0x39, 0x68, 0x61, 0x28, 0xe8, 0xe7,
4229
+ 0x30, 0x59, 0x2f, 0x28, 0x47, 0xf7, 0x28, 0xcb, 0x79, 0x31, 0x6f, 0x20,
4230
+ 0x18, 0x26, 0x65, 0x20, 0x24, 0x32, 0x28, 0x88, 0x81, 0x18, 0xd0, 0x25,
4231
+ 0x30, 0x4c, 0xfb, 0x20, 0x00, 0x00, 0x12, 0x00, 0x13, 0x01, 0x13, 0x02,
4232
+ 0x13, 0x00, 0x14, 0x00, 0x15, 0x00, 0x38, 0x00, 0x03, 0x00, 0x07, 0x00,
4233
+ 0x3c, 0x00, 0x11, 0x00, 0x12, 0x04, 0x11, 0x08,
4234
+};
4235
+
4236
+static const u8 data_segment_data_w2c_highlights_d112[] = {
4237
+ 0x24, 0x03, 0x17, 0x11, 0x08, 0x0e, 0x00, 0x7f, 0xc4, 0x89, 0x20, 0x76,
4238
+ 0x93, 0x18, 0x36, 0x8e, 0x28, 0xc0, 0x96, 0x40, 0xc3, 0x81, 0x18, 0xc7,
4239
+ 0xac, 0x20, 0xea, 0x20, 0x18, 0x4f, 0x21, 0x10, 0x7f, 0x87, 0x20, 0x62,
4240
+ 0xa6, 0x48, 0xac, 0xa7, 0x18, 0x51, 0x63, 0x20, 0x01, 0x20, 0x10, 0xd1,
4241
+ 0x84, 0x30, 0xed, 0xa3, 0x20, 0x5f, 0x5a, 0x28, 0xdc, 0xa8, 0x30, 0xd5,
4242
+ 0x93, 0x30, 0xab, 0x4e, 0x20, 0xc3, 0x8a, 0x30, 0x02, 0x21, 0x20, 0xd6,
4243
+ 0xa5, 0x20, 0x29, 0xa6, 0x20, 0x5e, 0xa2, 0x28, 0xa3, 0x2f, 0x28, 0xa0,
4244
+ 0xb8, 0x28, 0x23, 0x26, 0x30, 0xd9, 0x81, 0x18,
4245
+};
4246
+
4247
+static const u8 data_segment_data_w2c_highlights_d113[] = {
4248
+ 0x0f, 0x03, 0x14, 0x1c, 0x05, 0x37, 0x02, 0x01, 0x69, 0x3b, 0x18, 0x5e,
4249
+ 0x62, 0x28, 0x4f, 0x41, 0x10, 0xe1, 0x43, 0x10, 0xdb, 0x3b, 0x18, 0x8a,
4250
+ 0x66, 0x28, 0xa6, 0x6e, 0x30, 0x98, 0x65, 0x30, 0xba, 0x65, 0x20, 0x00,
4251
+ 0x00, 0x00, 0xf2, 0x64, 0x20, 0xb0, 0x4a, 0x20, 0xdc, 0x68, 0x30, 0x42,
4252
+ 0x61, 0x20, 0xd0, 0x63, 0x18, 0x4f, 0x6c, 0x30, 0xa3, 0x3b, 0x18, 0x66,
4253
+ 0x45, 0x28, 0xd8, 0x3b, 0x18, 0x55, 0x61, 0x28, 0xd9, 0x69, 0x18, 0xd6,
4254
+ 0x65, 0x20, 0xda, 0x73, 0x30, 0x60, 0x60, 0x30, 0xb7, 0x55, 0x20, 0x8d,
4255
+ 0x72, 0x28, 0x02, 0x41, 0x20, 0x90, 0x3b, 0x20,
4256
+};
4257
+
4258
+static const u8 data_segment_data_w2c_highlights_d114[] = {
4259
+ 0x07, 0x13, 0x7a, 0x03, 0x00, 0x0c, 0x00, 0x03, 0x1f, 0x24, 0x00, 0x06,
4260
+ 0x3a, 0x33, 0x00, 0xd0, 0x32, 0x50, 0x88, 0x81, 0x18, 0xad, 0xc1, 0x90,
4261
+ 0x49, 0xdb, 0x18, 0xeb, 0x23, 0x20, 0xb7, 0x35, 0x20, 0xac, 0x87, 0x18,
4262
+ 0xee, 0xaa, 0x28, 0xe9, 0xaa, 0x50, 0x26, 0x8e, 0x40, 0x45, 0x22, 0x38,
4263
+ 0x73, 0x87, 0x30, 0xea, 0x20, 0x18, 0xf5, 0xb4, 0x48, 0x86, 0x36, 0x40,
4264
+ 0xd0, 0x25, 0x30, 0xad, 0xc1, 0x38, 0x55, 0xc6, 0x30, 0xf6, 0x8c, 0x50,
4265
+ 0x02, 0x21, 0x20, 0x19, 0x2b, 0x28, 0x18, 0x90, 0x60, 0x5c, 0x89, 0x28,
4266
+ 0xa1, 0x61, 0x28, 0xc3, 0xc7, 0x18, 0xc8, 0x96, 0x40, 0xab, 0xee, 0x20,
4267
+ 0x4f, 0x21, 0x10, 0x69, 0xdb, 0x18, 0x4b, 0x29, 0x30, 0xc4, 0xc9, 0x20,
4268
+ 0x59, 0xa2, 0x20, 0x24, 0x32, 0x28, 0xd4, 0xa7, 0x38, 0x4e, 0x60, 0x30,
4269
+ 0xd8, 0xdb, 0x18, 0x7a, 0x47, 0x10, 0xd5, 0xc0, 0x28, 0x03, 0x37, 0x38,
4270
+ 0x5f, 0xfa, 0x28, 0xe5, 0xa1, 0x38, 0xf2, 0xa4, 0x40, 0xe6, 0xdb, 0x18,
4271
+ 0x9d, 0xaf, 0x38, 0x00, 0x00, 0x12, 0x00, 0x13, 0x01, 0x13, 0x02, 0x13,
4272
+ 0x00, 0x11, 0x00, 0x38, 0x00, 0x03,
4273
+};
4274
+
4275
+static const u8 data_segment_data_w2c_highlights_d115[] = {
4276
+ 0x01, 0x23, 0x10, 0x0e, 0x04, 0x19, 0x02, 0x02, 0x05, 0x1b, 0x00, 0x0d,
4277
+ 0x0a, 0x00, 0x11, 0x00, 0x05, 0x0a, 0x02, 0x0a, 0x0c, 0x04, 0x05, 0x50,
4278
+ 0x13, 0x1e, 0x00, 0x06, 0x00, 0x02, 0x09, 0x01, 0x79, 0x73, 0x30, 0xab,
4279
+ 0xae, 0x21, 0xa8, 0x95, 0x41, 0x5e, 0x08, 0x42, 0xd1, 0x26, 0x29, 0x4e,
4280
+ 0x60, 0x30, 0x20, 0x99, 0x31, 0xa9, 0x14, 0x1a, 0x86, 0x97, 0x39, 0xfe,
4281
+ 0x8f, 0x61, 0x69, 0x9b, 0x19, 0x1b, 0x0e, 0x42, 0x01, 0x68, 0x19, 0x48,
4282
+ 0x34, 0x31, 0x5a, 0x86, 0x31, 0xcf, 0x0d, 0x3a, 0x68, 0x0a, 0x22, 0x16,
4283
+ 0x9a, 0x29, 0x2f, 0x92, 0x51, 0xa3, 0x9b, 0x19, 0x58, 0x13, 0x4a, 0xe5,
4284
+ 0x7a, 0x28, 0xa9, 0x96, 0x39, 0xbc, 0x1b, 0x1a, 0xfe, 0x8f, 0x31, 0xc4,
4285
+ 0x89, 0x21, 0x26, 0x65, 0x20, 0x06, 0x60, 0x11, 0x9f, 0x26, 0x49, 0x19,
4286
+ 0xab, 0x28, 0x2f, 0x8b, 0x71, 0xac, 0x47, 0x18, 0x4f, 0x81, 0x10, 0x0b,
4287
+ 0x90, 0x61, 0xf0, 0x0b, 0x32, 0x49, 0x9b, 0x19, 0x6c, 0x95, 0x41, 0xa1,
4288
+ 0x26, 0x39, 0x7a, 0x27, 0x10, 0xd5, 0x9b, 0x19, 0x76, 0x93, 0x49, 0xce,
4289
+ 0x06, 0x41, 0x94, 0x9b, 0x21, 0x10, 0xc6, 0x49, 0x4f, 0x4c, 0x31, 0x51,
4290
+ 0x0a, 0x2a, 0xdc, 0x02, 0x5a, 0x81, 0x09, 0x42, 0x5c, 0x49, 0x28, 0x4d,
4291
+ 0x99, 0x29, 0xea, 0xa0, 0x18, 0x38, 0x19, 0x29, 0xfb, 0x95, 0x41, 0xaa,
4292
+ 0x9a, 0x21, 0x59, 0xd1, 0x59, 0x60, 0xe8, 0x31, 0x02, 0x01, 0x21, 0xb2,
4293
+ 0x05, 0x2a, 0xf2, 0x89, 0x41, 0xb5, 0x90, 0x39, 0x00, 0x61, 0x31, 0x51,
4294
+ 0xc3, 0x21, 0x24, 0xf2, 0x28, 0x5f, 0xba, 0x29, 0x4b, 0xc9, 0x30, 0xd0,
4295
+ 0x25, 0x31, 0x42, 0x81, 0x21, 0x3f, 0x19, 0x32, 0xf6, 0x9a, 0x29, 0x86,
4296
+ 0xf6, 0x40, 0x6f, 0x20, 0x19, 0x48, 0x06, 0x5a, 0xb5, 0x90, 0x59, 0xc1,
4297
+ 0x05, 0x4a, 0x00, 0x00, 0x13, 0x01, 0x13, 0x02, 0x13, 0x03, 0x12, 0x04,
4298
+ 0x12, 0x05, 0x12, 0x06, 0x12, 0x07, 0x12, 0x08, 0x12, 0x09, 0x14, 0x00,
4299
+ 0x15, 0x00, 0x38, 0x00, 0x03, 0x00, 0x07, 0x00, 0x11, 0x0f, 0x11, 0x10,
4300
+
4301
+};
4302
+
4303
+static const u8 data_segment_data_w2c_highlights_d116[] = {
4304
+ 0x28, 0x00, 0x28, 0x00, 0x34, 0x00, 0x97, 0x00, 0x93, 0x01, 0x3d, 0x02,
4305
+ 0x9d, 0x02, 0x1b, 0x03, 0x43, 0x03, 0x82, 0x03, 0x96, 0x03, 0x04, 0x04,
4306
+ 0x28, 0x04, 0x5c, 0x04, 0x86, 0x04, 0x95, 0x04, 0x95, 0x04, 0x95, 0x04,
4307
+ 0xa7, 0x04, 0xba, 0x04, 0x06, 0x63, 0x3c, 0x72, 0x15, 0x66, 0x06, 0x68,
4308
+ 0x34, 0x6d, 0x02, 0x73, 0x07, 0x63, 0x33, 0x1c, 0x67, 0x6f, 0x23, 0x6a,
4309
+ 0x73, 0x48, 0x74, 0x73, 0x0b, 0x63, 0x23, 0x0a, 0x63, 0x63, 0x2c, 0x63,
4310
+ 0x6c, 0x0b, 0x63, 0x73, 0x0d, 0x63, 0x75, 0x2c, 0x65, 0x6c, 0x11, 0x65,
4311
+ 0x78, 0x16, 0x66, 0x23, 0x16, 0x66, 0x73, 0x18, 0x67, 0x64, 0x1e, 0x67,
4312
+ 0x79, 0x0a, 0x68, 0x68, 0x1f, 0x68, 0x73, 0x28, 0x6a, 0x6c, 0x29, 0x6b,
4313
+ 0x74, 0x2f, 0x6d, 0x64, 0x2e, 0x6d, 0x6b, 0x35, 0x6d, 0x6c, 0x34, 0x6d,
4314
+ 0x6d, 0x37, 0x70, 0x6c, 0x37, 0x70, 0x6d, 0x36, 0x70, 0x70, 0x39, 0x70,
4315
+ 0x73, 0x3b, 0x70, 0x79, 0x3d, 0x72, 0x62, 0x3e, 0x72, 0x73, 0x40, 0x73,
4316
+ 0x63, 0x04, 0x73, 0x68, 0x46, 0x74, 0x66, 0x02, 0x61, 0x73, 0x6d, 0x0a,
4317
+ 0x63, 0x70, 0x70, 0x0c, 0x63, 0x73, 0x73, 0x12, 0x65, 0x6c, 0x6d, 0x27,
4318
+ 0x6a, 0x73, 0x78, 0x2d, 0x6c, 0x75, 0x61, 0x31, 0x6d, 0x64, 0x78, 0x32,
4319
+ 0x6e, 0x69, 0x6d, 0x33, 0x6e, 0x69, 0x78, 0x38, 0x70, 0x68, 0x70, 0x43,
4320
+ 0x73, 0x71, 0x6c, 0x4a, 0x74, 0x73, 0x78, 0x4b, 0x76, 0x75, 0x65, 0x4c,
4321
+ 0x77, 0x61, 0x74, 0x4e, 0x78, 0x6d, 0x6c, 0x50, 0x7a, 0x69, 0x67, 0x05,
4322
+ 0x62, 0x61, 0x74, 0x0a, 0x63, 0x2b, 0x2b, 0x23, 0x63, 0x6a, 0x73, 0x08,
4323
+ 0x63, 0x6c, 0x6a, 0x05, 0x63, 0x6d, 0x64, 0x48, 0x63, 0x74, 0x73, 0x0d,
4324
+ 0x63, 0x75, 0x68, 0x0a, 0x63, 0x78, 0x78, 0x05, 0x64, 0x6f, 0x73, 0x36,
4325
+ 0x64, 0x70, 0x6b, 0x36, 0x64, 0x70, 0x72, 0x08, 0x65, 0x64, 0x6e, 0x13,
4326
+ 0x65, 0x72, 0x6c, 0x11, 0x65, 0x78, 0x73, 0x14, 0x66, 0x30, 0x33, 0x14,
4327
+ 0x66, 0x30, 0x38, 0x15, 0x66, 0x37, 0x37, 0x14, 0x66, 0x39, 0x30, 0x14,
4328
+ 0x66, 0x39, 0x35, 0x15, 0x66, 0x6f, 0x72, 0x16, 0x66, 0x73, 0x69, 0x16,
4329
+ 0x66, 0x73, 0x78, 0x1d, 0x67, 0x71, 0x6c, 0x1e, 0x67, 0x73, 0x68, 0x1e,
4330
+ 0x67, 0x76, 0x79, 0x46, 0x68, 0x63, 0x6c, 0x0a, 0x68, 0x70, 0x70, 0x13,
4331
+ 0x68, 0x72, 0x6c, 0x21, 0x68, 0x74, 0x6d, 0x0a, 0x68, 0x78, 0x78, 0x29,
4332
+ 0x6b, 0x74, 0x73, 0x36, 0x6c, 0x70, 0x72, 0x2c, 0x6c, 0x73, 0x70, 0x23,
4333
+ 0x6d, 0x6a, 0x73, 0x35, 0x6d, 0x6c, 0x69, 0x48, 0x6d, 0x74, 0x73, 0x36,
4334
+ 0x70, 0x61, 0x73, 0x39, 0x70, 0x73, 0x31, 0x40, 0x73, 0x62, 0x74, 0x2c,
4335
+ 0x73, 0x63, 0x6d, 0x42, 0x73, 0x6f, 0x6c, 0x4e, 0x73, 0x76, 0x67, 0x2a,
4336
+ 0x74, 0x65, 0x78, 0x4e, 0x78, 0x73, 0x64, 0x4f, 0x79, 0x6d, 0x6c, 0x50,
4337
+ 0x7a, 0x6f, 0x6e, 0x04, 0x7a, 0x73, 0x68, 0x04, 0x62, 0x61, 0x73, 0x68,
4338
+ 0x0d, 0x63, 0x75, 0x64, 0x61, 0x0e, 0x64, 0x61, 0x72, 0x74, 0x0f, 0x64,
4339
+ 0x69, 0x66, 0x66, 0x1b, 0x67, 0x6c, 0x73, 0x6c, 0x20, 0x68, 0x6c, 0x73,
4340
+ 0x6c, 0x21, 0x68, 0x74, 0x6d, 0x6c, 0x22, 0x6a, 0x61, 0x76, 0x61, 0x24,
4341
+ 0x6a, 0x73, 0x6f, 0x6e, 0x2b, 0x6c, 0x65, 0x73, 0x73, 0x2c, 0x6c, 0x69,
4342
+ 0x73, 0x70, 0x34, 0x6f, 0x62, 0x6a, 0x63, 0x37, 0x70, 0x65, 0x72, 0x6c,
4343
+ 0x3d, 0x72, 0x75, 0x62, 0x79, 0x3e, 0x72, 0x75, 0x73, 0x74, 0x3f, 0x73,
4344
+ 0x61, 0x73, 0x73, 0x41, 0x73, 0x63, 0x73, 0x73, 0x47, 0x74, 0x6f, 0x6d,
4345
+ 0x6c, 0x49, 0x74, 0x73, 0x72, 0x78, 0x4d, 0x77, 0x67, 0x73, 0x6c, 0x4f,
4346
+ 0x79, 0x61, 0x6d, 0x6c, 0x08, 0x63, 0x6c, 0x6a, 0x63, 0x08, 0x63, 0x6c,
4347
+ 0x6a, 0x73, 0x1b, 0x63, 0x6f, 0x6d, 0x70, 0x1b, 0x66, 0x72, 0x61, 0x67,
4348
+ 0x1b, 0x67, 0x65, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x6b, 0x65, 0x39, 0x70,
4349
+ 0x73, 0x64, 0x31, 0x39, 0x70, 0x73, 0x6d, 0x31, 0x39, 0x70, 0x77, 0x73,
4350
+ 0x68, 0x17, 0x74, 0x72, 0x65, 0x73, 0x17, 0x74, 0x73, 0x63, 0x6e, 0x1b,
4351
+ 0x76, 0x65, 0x72, 0x74, 0x4c, 0x77, 0x61, 0x73, 0x6d, 0x03, 0x61, 0x73,
4352
+ 0x74, 0x72, 0x6f, 0x05, 0x62, 0x61, 0x74, 0x63, 0x68, 0x09, 0x63, 0x6d,
4353
+ 0x61, 0x6b, 0x65, 0x1a, 0x67, 0x6c, 0x65, 0x61, 0x6d, 0x25, 0x6a, 0x73,
4354
+ 0x6f, 0x6e, 0x35, 0x26, 0x6a, 0x73, 0x6f, 0x6e, 0x6c, 0x28, 0x6a, 0x75,
4355
+ 0x6c, 0x69, 0x61, 0x2a, 0x6c, 0x61, 0x74, 0x65, 0x78, 0x35, 0x6f, 0x63,
4356
+ 0x61, 0x6d, 0x6c, 0x3a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x40, 0x73, 0x63,
4357
+ 0x61, 0x6c, 0x61, 0x45, 0x73, 0x77, 0x69, 0x66, 0x74, 0x2c, 0x65, 0x6c,
4358
+ 0x69, 0x73, 0x70, 0x24, 0x6a, 0x73, 0x6f, 0x6e, 0x63, 0x0f, 0x70, 0x61,
4359
+ 0x74, 0x63, 0x68, 0x04, 0x73, 0x68, 0x65, 0x6c, 0x6c, 0x0b, 0x63, 0x73,
4360
+ 0x68, 0x61, 0x72, 0x70, 0x11, 0x65, 0x6c, 0x69, 0x78, 0x69, 0x72, 0x13,
4361
+ 0x65, 0x72, 0x6c, 0x61, 0x6e, 0x67, 0x16, 0x66, 0x73, 0x68, 0x61, 0x72,
4362
+ 0x70, 0x1e, 0x67, 0x72, 0x6f, 0x6f, 0x76, 0x79, 0x29, 0x6b, 0x6f, 0x74,
4363
+ 0x6c, 0x69, 0x6e, 0x30, 0x6d, 0x61, 0x74, 0x6c, 0x61, 0x62, 0x36, 0x70,
4364
+ 0x61, 0x73, 0x63, 0x61, 0x6c, 0x3b, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e,
4365
+ 0x44, 0x73, 0x76, 0x65, 0x6c, 0x74, 0x65, 0x36, 0x64, 0x65, 0x6c, 0x70,
4366
+ 0x68, 0x69, 0x10, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x1c, 0x67, 0x6f,
4367
+ 0x6c, 0x61, 0x6e, 0x67, 0x1e, 0x67, 0x72, 0x61, 0x64, 0x6c, 0x65, 0x34,
4368
+ 0x6f, 0x62, 0x6a, 0x63, 0x70, 0x70, 0x30, 0x6f, 0x63, 0x74, 0x61, 0x76,
4369
+ 0x65, 0x2c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x46, 0x74, 0x66, 0x76,
4370
+ 0x61, 0x72, 0x73, 0x08, 0x63, 0x6c, 0x6f, 0x6a, 0x75, 0x72, 0x65, 0x14,
4371
+ 0x66, 0x6f, 0x72, 0x74, 0x72, 0x61, 0x6e, 0x1d, 0x67, 0x72, 0x61, 0x70,
4372
+ 0x68, 0x71, 0x6c, 0x1f, 0x68, 0x61, 0x73, 0x6b, 0x65, 0x6c, 0x6c, 0x3c,
4373
+ 0x72, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x67, 0x64, 0x73, 0x63,
4374
+ 0x72, 0x69, 0x70, 0x74, 0x19, 0x67, 0x64, 0x73, 0x68, 0x61, 0x64, 0x65,
4375
+ 0x72, 0x2e, 0x6d, 0x61, 0x6b, 0x65, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x6d,
4376
+ 0x61, 0x72, 0x6b, 0x64, 0x6f, 0x77, 0x6e, 0x42, 0x73, 0x6f, 0x6c, 0x69,
4377
+ 0x64, 0x69, 0x74, 0x79, 0x02, 0x61, 0x73, 0x73, 0x65, 0x6d, 0x62, 0x6c,
4378
+ 0x79, 0x3a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x46, 0x74,
4379
+ 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x05, 0x62, 0x61, 0x74,
4380
+ 0x63, 0x68, 0x66, 0x69, 0x6c, 0x65, 0x10, 0x64, 0x6f, 0x63, 0x6b, 0x65,
4381
+ 0x72, 0x66, 0x69, 0x6c, 0x65, 0x17, 0x67, 0x64, 0x72, 0x65, 0x73, 0x6f,
4382
+ 0x75, 0x72, 0x63, 0x65, 0x39, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x68,
4383
+ 0x65, 0x6c, 0x6c, 0x48, 0x61, 0x6e, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2d,
4384
+ 0x74, 0x73, 0x2c, 0x65, 0x6d, 0x61, 0x63, 0x73, 0x2d, 0x6c, 0x69, 0x73,
4385
+ 0x70, 0x0f, 0x67, 0x69, 0x74, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74,
4386
+ 0x0f, 0x67, 0x69, 0x74, 0x2d, 0x72, 0x65, 0x62, 0x61, 0x73, 0x65, 0x23,
4387
+ 0x6a, 0x61, 0x76, 0x61, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x34, 0x6f,
4388
+ 0x62, 0x6a, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x63, 0x48, 0x74, 0x79,
4389
+ 0x70, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x19, 0x67, 0x64, 0x73,
4390
+ 0x68, 0x61, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x63, 0x34, 0x6f, 0x62, 0x6a,
4391
+ 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x2d, 0x63, 0x04, 0x73, 0x68, 0x65,
4392
+ 0x6c, 0x6c, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x01, 0x61, 0x6e, 0x67,
4393
+ 0x75, 0x6c, 0x61, 0x72, 0x2d, 0x68, 0x74, 0x6d, 0x6c, 0x19, 0x67, 0x6f,
4394
+ 0x64, 0x6f, 0x74, 0x2d, 0x73, 0x68, 0x61, 0x64, 0x65, 0x72, 0x36, 0x6f,
4395
+ 0x62, 0x6a, 0x65, 0x63, 0x74, 0x70, 0x61, 0x73, 0x63, 0x61, 0x6c, 0x04,
4396
+ 0x73, 0x68, 0x65, 0x6c, 0x6c, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
4397
+ 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x66, 0x69,
4398
+ 0x6c, 0x65, 0x36, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2d, 0x70, 0x61,
4399
+ 0x73, 0x63, 0x61, 0x6c, 0x34, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x69,
4400
+ 0x76, 0x65, 0x2d, 0x63, 0x70, 0x70, 0x17, 0x67, 0x6f, 0x64, 0x6f, 0x74,
4401
+ 0x2d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x14, 0x66, 0x6f,
4402
+ 0x72, 0x74, 0x72, 0x61, 0x6e, 0x2d, 0x66, 0x72, 0x65, 0x65, 0x2d, 0x66,
4403
+ 0x6f, 0x72, 0x6d, 0x15, 0x66, 0x6f, 0x72, 0x74, 0x72, 0x61, 0x6e, 0x2d,
4404
+ 0x66, 0x69, 0x78, 0x65, 0x64, 0x2d, 0x66, 0x6f, 0x72, 0x6d,
4405
+};
4406
+
4407
+static void init_memories(w2c_highlights* instance) {
4408
+ wasm_rt_allocate_memory(&instance->w2c_memory, 3, 65536, 0, 65536);
4409
+ LOAD_DATA(instance->w2c_memory, 3481u, data_segment_data_w2c_highlights_d0, 5);
4410
+ LOAD_DATA(instance->w2c_memory, 3504u, data_segment_data_w2c_highlights_d1, 16);
4411
+ LOAD_DATA(instance->w2c_memory, 3532u, data_segment_data_w2c_highlights_d2, 5);
4412
+ LOAD_DATA(instance->w2c_memory, 3563u, data_segment_data_w2c_highlights_d3, 6);
4413
+ LOAD_DATA(instance->w2c_memory, 3596u, data_segment_data_w2c_highlights_d4, 3);
4414
+ LOAD_DATA(instance->w2c_memory, 3738u, data_segment_data_w2c_highlights_d5, 4);
4415
+ LOAD_DATA(instance->w2c_memory, 3761u, data_segment_data_w2c_highlights_d6, 15);
4416
+ LOAD_DATA(instance->w2c_memory, 3787u, data_segment_data_w2c_highlights_d7, 6);
4417
+ LOAD_DATA(instance->w2c_memory, 3819u, data_segment_data_w2c_highlights_d8, 36);
4418
+ LOAD_DATA(instance->w2c_memory, 3984u, data_segment_data_w2c_highlights_d9, 14);
4419
+ LOAD_DATA(instance->w2c_memory, 4016u, data_segment_data_w2c_highlights_d10, 16);
4420
+ LOAD_DATA(instance->w2c_memory, 4042u, data_segment_data_w2c_highlights_d11, 7);
4421
+ LOAD_DATA(instance->w2c_memory, 4075u, data_segment_data_w2c_highlights_d12, 6);
4422
+ LOAD_DATA(instance->w2c_memory, 4107u, data_segment_data_w2c_highlights_d13, 4);
4423
+ LOAD_DATA(instance->w2c_memory, 4273u, data_segment_data_w2c_highlights_d14, 15);
4424
+ LOAD_DATA(instance->w2c_memory, 4298u, data_segment_data_w2c_highlights_d15, 6);
4425
+ LOAD_DATA(instance->w2c_memory, 4331u, data_segment_data_w2c_highlights_d16, 4);
4426
+ LOAD_DATA(instance->w2c_memory, 4363u, data_segment_data_w2c_highlights_d17, 4);
4427
+ LOAD_DATA(instance->w2c_memory, 4506u, data_segment_data_w2c_highlights_d18, 4);
4428
+ LOAD_DATA(instance->w2c_memory, 4529u, data_segment_data_w2c_highlights_d19, 15);
4429
+ LOAD_DATA(instance->w2c_memory, 4556u, data_segment_data_w2c_highlights_d20, 10);
4430
+ LOAD_DATA(instance->w2c_memory, 4575u, data_segment_data_w2c_highlights_d21, 23);
4431
+ LOAD_DATA(instance->w2c_memory, 4607u, data_segment_data_w2c_highlights_d22, 16);
4432
+ LOAD_DATA(instance->w2c_memory, 4785u, data_segment_data_w2c_highlights_d23, 15);
4433
+ LOAD_DATA(instance->w2c_memory, 4810u, data_segment_data_w2c_highlights_d24, 7);
4434
+ LOAD_DATA(instance->w2c_memory, 4843u, data_segment_data_w2c_highlights_d25, 6);
4435
+ LOAD_DATA(instance->w2c_memory, 4866u, data_segment_data_w2c_highlights_d26, 13);
4436
+ LOAD_DATA(instance->w2c_memory, 5041u, data_segment_data_w2c_highlights_d27, 15);
4437
+ LOAD_DATA(instance->w2c_memory, 5066u, data_segment_data_w2c_highlights_d28, 7);
4438
+ LOAD_DATA(instance->w2c_memory, 5100u, data_segment_data_w2c_highlights_d29, 3);
4439
+ LOAD_DATA(instance->w2c_memory, 5131u, data_segment_data_w2c_highlights_d30, 4);
4440
+ LOAD_DATA(instance->w2c_memory, 5264u, data_segment_data_w2c_highlights_d31, 14);
4441
+ LOAD_DATA(instance->w2c_memory, 5296u, data_segment_data_w2c_highlights_d32, 16);
4442
+ LOAD_DATA(instance->w2c_memory, 5322u, data_segment_data_w2c_highlights_d33, 68);
4443
+ LOAD_DATA(instance->w2c_memory, 5530u, data_segment_data_w2c_highlights_d34, 4);
4444
+ LOAD_DATA(instance->w2c_memory, 5553u, data_segment_data_w2c_highlights_d35, 15);
4445
+ LOAD_DATA(instance->w2c_memory, 5578u, data_segment_data_w2c_highlights_d36, 7);
4446
+ LOAD_DATA(instance->w2c_memory, 5611u, data_segment_data_w2c_highlights_d37, 6);
4447
+ LOAD_DATA(instance->w2c_memory, 5643u, data_segment_data_w2c_highlights_d38, 4);
4448
+ LOAD_DATA(instance->w2c_memory, 5785u, data_segment_data_w2c_highlights_d39, 5);
4449
+ LOAD_DATA(instance->w2c_memory, 5808u, data_segment_data_w2c_highlights_d40, 16);
4450
+ LOAD_DATA(instance->w2c_memory, 5834u, data_segment_data_w2c_highlights_d41, 7);
4451
+ LOAD_DATA(instance->w2c_memory, 5867u, data_segment_data_w2c_highlights_d42, 4);
4452
+ LOAD_DATA(instance->w2c_memory, 5899u, data_segment_data_w2c_highlights_d43, 4);
4453
+ LOAD_DATA(instance->w2c_memory, 6065u, data_segment_data_w2c_highlights_d44, 15);
4454
+ LOAD_DATA(instance->w2c_memory, 6090u, data_segment_data_w2c_highlights_d45, 37);
4455
+ LOAD_DATA(instance->w2c_memory, 6146u, data_segment_data_w2c_highlights_d46, 13);
4456
+ LOAD_DATA(instance->w2c_memory, 6301u, data_segment_data_w2c_highlights_d47, 1);
4457
+ LOAD_DATA(instance->w2c_memory, 6320u, data_segment_data_w2c_highlights_d48, 16);
4458
+ LOAD_DATA(instance->w2c_memory, 6348u, data_segment_data_w2c_highlights_d49, 4);
4459
+ LOAD_DATA(instance->w2c_memory, 6380u, data_segment_data_w2c_highlights_d50, 35);
4460
+ LOAD_DATA(instance->w2c_memory, 448u, data_segment_data_w2c_highlights_d51, 219);
4461
+ LOAD_DATA(instance->w2c_memory, 667u, data_segment_data_w2c_highlights_d52, 679);
4462
+ LOAD_DATA(instance->w2c_memory, 7056u, data_segment_data_w2c_highlights_d53, 150);
4463
+ LOAD_DATA(instance->w2c_memory, 28352u, data_segment_data_w2c_highlights_d54, 7160);
4464
+ LOAD_DATA(instance->w2c_memory, 13984u, data_segment_data_w2c_highlights_d55, 142);
4465
+ LOAD_DATA(instance->w2c_memory, 38592u, data_segment_data_w2c_highlights_d56, 1);
4466
+ LOAD_DATA(instance->w2c_memory, 38602u, data_segment_data_w2c_highlights_d57, 125);
4467
+ LOAD_DATA(instance->w2c_memory, 27233u, data_segment_data_w2c_highlights_d58, 537);
4468
+ LOAD_DATA(instance->w2c_memory, 38736u, data_segment_data_w2c_highlights_d59, 135);
4469
+ LOAD_DATA(instance->w2c_memory, 14144u, data_segment_data_w2c_highlights_d60, 83);
4470
+ LOAD_DATA(instance->w2c_memory, 14240u, data_segment_data_w2c_highlights_d61, 192);
4471
+ LOAD_DATA(instance->w2c_memory, 14496u, data_segment_data_w2c_highlights_d62, 191);
4472
+ LOAD_DATA(instance->w2c_memory, 14688u, data_segment_data_w2c_highlights_d63, 365);
4473
+ LOAD_DATA(instance->w2c_memory, 15073u, data_segment_data_w2c_highlights_d64, 196);
4474
+ LOAD_DATA(instance->w2c_memory, 15296u, data_segment_data_w2c_highlights_d65, 229);
4475
+ LOAD_DATA(instance->w2c_memory, 15552u, data_segment_data_w2c_highlights_d66, 345);
4476
+ LOAD_DATA(instance->w2c_memory, 16320u, data_segment_data_w2c_highlights_d67, 113);
4477
+ LOAD_DATA(instance->w2c_memory, 15904u, data_segment_data_w2c_highlights_d68, 400);
4478
+ LOAD_DATA(instance->w2c_memory, 16512u, data_segment_data_w2c_highlights_d69, 278);
4479
+ LOAD_DATA(instance->w2c_memory, 16800u, data_segment_data_w2c_highlights_d70, 61);
4480
+ LOAD_DATA(instance->w2c_memory, 16864u, data_segment_data_w2c_highlights_d71, 154);
4481
+ LOAD_DATA(instance->w2c_memory, 17024u, data_segment_data_w2c_highlights_d72, 110);
4482
+ LOAD_DATA(instance->w2c_memory, 17152u, data_segment_data_w2c_highlights_d73, 161);
4483
+ LOAD_DATA(instance->w2c_memory, 17345u, data_segment_data_w2c_highlights_d74, 500);
4484
+ LOAD_DATA(instance->w2c_memory, 23553u, data_segment_data_w2c_highlights_d75, 242);
4485
+ LOAD_DATA(instance->w2c_memory, 17856u, data_segment_data_w2c_highlights_d76, 379);
4486
+ LOAD_DATA(instance->w2c_memory, 25408u, data_segment_data_w2c_highlights_d77, 287);
4487
+ LOAD_DATA(instance->w2c_memory, 18240u, data_segment_data_w2c_highlights_d78, 92);
4488
+ LOAD_DATA(instance->w2c_memory, 18400u, data_segment_data_w2c_highlights_d79, 37);
4489
+ LOAD_DATA(instance->w2c_memory, 18465u, data_segment_data_w2c_highlights_d80, 156);
4490
+ LOAD_DATA(instance->w2c_memory, 19488u, data_segment_data_w2c_highlights_d81, 67);
4491
+ LOAD_DATA(instance->w2c_memory, 19744u, data_segment_data_w2c_highlights_d82, 286);
4492
+ LOAD_DATA(instance->w2c_memory, 18656u, data_segment_data_w2c_highlights_d83, 328);
4493
+ LOAD_DATA(instance->w2c_memory, 19616u, data_segment_data_w2c_highlights_d84, 98);
4494
+ LOAD_DATA(instance->w2c_memory, 20032u, data_segment_data_w2c_highlights_d85, 188);
4495
+ LOAD_DATA(instance->w2c_memory, 20224u, data_segment_data_w2c_highlights_d86, 93);
4496
+ LOAD_DATA(instance->w2c_memory, 20321u, data_segment_data_w2c_highlights_d87, 218);
4497
+ LOAD_DATA(instance->w2c_memory, 20544u, data_segment_data_w2c_highlights_d88, 208);
4498
+ LOAD_DATA(instance->w2c_memory, 20768u, data_segment_data_w2c_highlights_d89, 232);
4499
+ LOAD_DATA(instance->w2c_memory, 21024u, data_segment_data_w2c_highlights_d90, 223);
4500
+ LOAD_DATA(instance->w2c_memory, 21248u, data_segment_data_w2c_highlights_d91, 176);
4501
+ LOAD_DATA(instance->w2c_memory, 21440u, data_segment_data_w2c_highlights_d92, 255);
4502
+ LOAD_DATA(instance->w2c_memory, 21698u, data_segment_data_w2c_highlights_d93, 256);
4503
+ LOAD_DATA(instance->w2c_memory, 21984u, data_segment_data_w2c_highlights_d94, 308);
4504
+ LOAD_DATA(instance->w2c_memory, 22304u, data_segment_data_w2c_highlights_d95, 89);
4505
+ LOAD_DATA(instance->w2c_memory, 22400u, data_segment_data_w2c_highlights_d96, 175);
4506
+ LOAD_DATA(instance->w2c_memory, 22592u, data_segment_data_w2c_highlights_d97, 134);
4507
+ LOAD_DATA(instance->w2c_memory, 22752u, data_segment_data_w2c_highlights_d98, 370);
4508
+ LOAD_DATA(instance->w2c_memory, 23136u, data_segment_data_w2c_highlights_d99, 106);
4509
+ LOAD_DATA(instance->w2c_memory, 23264u, data_segment_data_w2c_highlights_d100, 274);
4510
+ LOAD_DATA(instance->w2c_memory, 23810u, data_segment_data_w2c_highlights_d101, 547);
4511
+ LOAD_DATA(instance->w2c_memory, 24384u, data_segment_data_w2c_highlights_d102, 251);
4512
+ LOAD_DATA(instance->w2c_memory, 24641u, data_segment_data_w2c_highlights_d103, 179);
4513
+ LOAD_DATA(instance->w2c_memory, 24898u, data_segment_data_w2c_highlights_d104, 333);
4514
+ LOAD_DATA(instance->w2c_memory, 25249u, data_segment_data_w2c_highlights_d105, 147);
4515
+ LOAD_DATA(instance->w2c_memory, 25697u, data_segment_data_w2c_highlights_d106, 67);
4516
+ LOAD_DATA(instance->w2c_memory, 25792u, data_segment_data_w2c_highlights_d107, 184);
4517
+ LOAD_DATA(instance->w2c_memory, 25984u, data_segment_data_w2c_highlights_d108, 205);
4518
+ LOAD_DATA(instance->w2c_memory, 26209u, data_segment_data_w2c_highlights_d109, 199);
4519
+ LOAD_DATA(instance->w2c_memory, 26433u, data_segment_data_w2c_highlights_d110, 384);
4520
+ LOAD_DATA(instance->w2c_memory, 26880u, data_segment_data_w2c_highlights_d111, 236);
4521
+ LOAD_DATA(instance->w2c_memory, 27136u, data_segment_data_w2c_highlights_d112, 92);
4522
+ LOAD_DATA(instance->w2c_memory, 27776u, data_segment_data_w2c_highlights_d113, 92);
4523
+ LOAD_DATA(instance->w2c_memory, 27873u, data_segment_data_w2c_highlights_d114, 162);
4524
+ LOAD_DATA(instance->w2c_memory, 28064u, data_segment_data_w2c_highlights_d115, 288);
4525
+ LOAD_DATA(instance->w2c_memory, 1360u, data_segment_data_w2c_highlights_d116, 1210);
4526
+}
4527
+
4528
+static void init_data_instances(w2c_highlights *instance) {
4529
+}
4530
+
4531
+static const wasm_elem_segment_expr_t elem_segment_exprs_w2c_highlights_e0[] = {
4532
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f406, {NULL}, 0},
4533
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f128, {NULL}, 0},
4534
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f232, {NULL}, 0},
4535
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f209, {NULL}, 0},
4536
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f238, {NULL}, 0},
4537
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f239, {NULL}, 0},
4538
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f242, {NULL}, 0},
4539
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f245, {NULL}, 0},
4540
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f249, {NULL}, 0},
4541
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f256, {NULL}, 0},
4542
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f258, {NULL}, 0},
4543
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f260, {NULL}, 0},
4544
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f91, {NULL}, 0},
4545
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f261, {NULL}, 0},
4546
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f262, {NULL}, 0},
4547
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f265, {NULL}, 0},
4548
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f271, {NULL}, 0},
4549
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f274, {NULL}, 0},
4550
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f275, {NULL}, 0},
4551
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f277, {NULL}, 0},
4552
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f280, {NULL}, 0},
4553
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f281, {NULL}, 0},
4554
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f292, {NULL}, 0},
4555
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f298, {NULL}, 0},
4556
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f297, {NULL}, 0},
4557
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f301, {NULL}, 0},
4558
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f303, {NULL}, 0},
4559
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f299, {NULL}, 0},
4560
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f305, {NULL}, 0},
4561
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f306, {NULL}, 0},
4562
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f308, {NULL}, 0},
4563
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f310, {NULL}, 0},
4564
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f311, {NULL}, 0},
4565
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f118, {NULL}, 0},
4566
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f312, {NULL}, 0},
4567
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f151, {NULL}, 0},
4568
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f313, {NULL}, 0},
4569
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f314, {NULL}, 0},
4570
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f315, {NULL}, 0},
4571
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f173, {NULL}, 0},
4572
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f322, {NULL}, 0},
4573
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f324, {NULL}, 0},
4574
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f327, {NULL}, 0},
4575
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f92, {NULL}, 0},
4576
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f330, {NULL}, 0},
4577
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f332, {NULL}, 0},
4578
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f338, {NULL}, 0},
4579
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f229, {NULL}, 0},
4580
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f341, {NULL}, 0},
4581
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f345, {NULL}, 0},
4582
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f349, {NULL}, 0},
4583
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f352, {NULL}, 0},
4584
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f354, {NULL}, 0},
4585
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f285, {NULL}, 0},
4586
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f356, {NULL}, 0},
4587
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f359, {NULL}, 0},
4588
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f364, {NULL}, 0},
4589
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f368, {NULL}, 0},
4590
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f369, {NULL}, 0},
4591
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f295, {NULL}, 0},
4592
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f371, {NULL}, 0},
4593
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f372, {NULL}, 0},
4594
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f373, {NULL}, 0},
4595
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f94, {NULL}, 0},
4596
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f375, {NULL}, 0},
4597
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f93, {NULL}, 0},
4598
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f376, {NULL}, 0},
4599
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f377, {NULL}, 0},
4600
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f203, {NULL}, 0},
4601
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f379, {NULL}, 0},
4602
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f380, {NULL}, 0},
4603
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f391, {NULL}, 0},
4604
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f180, {NULL}, 0},
4605
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f188, {NULL}, 0},
4606
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f193, {NULL}, 0},
4607
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f396, {NULL}, 0},
4608
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f398, {NULL}, 0},
4609
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f399, {NULL}, 0},
4610
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f102, {NULL}, 0},
4611
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f202, {NULL}, 0},
4612
+ {RefFunc, w2c_highlights_t1, (wasm_rt_function_ptr_t)wrap_w2c_highlights_f405, {NULL}, 0},
4613
+};
4614
+
4615
+static void init_tables(w2c_highlights* instance) {
4616
+ wasm_rt_allocate_funcref_table(&instance->w2c_T0, 81, 81);
4617
+ funcref_table_init(&instance->w2c_T0, elem_segment_exprs_w2c_highlights_e0, 81, 0u, 0, 81, instance);
4618
+}
4619
+
4620
+static void init_elem_instances(w2c_highlights *instance) {
4621
+}
4622
+
4623
+/* export: 'memory' */
4624
+wasm_rt_memory_t* w2c_highlights_memory(w2c_highlights* instance) {
4625
+ return &instance->w2c_memory;
4626
+}
4627
+
4628
+/* export: 'liveStage' */
4629
+u32 w2c_highlights_liveStage(w2c_highlights* instance, u32 var_p0) {
4630
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE
4631
+#if !WASM_RT_SEGUE_FREE_SEGMENT
4632
+ void* segue_saved_base = wasm_rt_segue_read_base();
4633
+#endif
4634
+ wasm_rt_segue_write_base(instance->w2c_memory.data);
4635
+#endif
4636
+ u32 ret = w2c_highlights_liveStage_0(instance, var_p0);
4637
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && !WASM_RT_SEGUE_FREE_SEGMENT
4638
+ wasm_rt_segue_write_base(segue_saved_base);
4639
+#endif
4640
+ return ret;
4641
+}
4642
+
4643
+/* export: 'liveInitDoc' */
4644
+void w2c_highlights_liveInitDoc(w2c_highlights* instance, u32 var_p0, u32 var_p1, u32 var_p2) {
4645
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE
4646
+#if !WASM_RT_SEGUE_FREE_SEGMENT
4647
+ void* segue_saved_base = wasm_rt_segue_read_base();
4648
+#endif
4649
+ wasm_rt_segue_write_base(instance->w2c_memory.data);
4650
+#endif
4651
+ w2c_highlights_liveInitDoc_0(instance, var_p0, var_p1, var_p2);
4652
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && !WASM_RT_SEGUE_FREE_SEGMENT
4653
+ wasm_rt_segue_write_base(segue_saved_base);
4654
+#endif
4655
+}
4656
+
4657
+/* export: 'liveApplyEdits' */
4658
+void w2c_highlights_liveApplyEdits(w2c_highlights* instance, u32 var_p0, u32 var_p1) {
4659
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE
4660
+#if !WASM_RT_SEGUE_FREE_SEGMENT
4661
+ void* segue_saved_base = wasm_rt_segue_read_base();
4662
+#endif
4663
+ wasm_rt_segue_write_base(instance->w2c_memory.data);
4664
+#endif
4665
+ w2c_highlights_liveApplyEdits_0(instance, var_p0, var_p1);
4666
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && !WASM_RT_SEGUE_FREE_SEGMENT
4667
+ wasm_rt_segue_write_base(segue_saved_base);
4668
+#endif
4669
+}
4670
+
4671
+/* export: 'liveRun' */
4672
+u32 w2c_highlights_liveRun(w2c_highlights* instance, u32 var_p0, u32 var_p1, u32 var_p2) {
4673
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE
4674
+#if !WASM_RT_SEGUE_FREE_SEGMENT
4675
+ void* segue_saved_base = wasm_rt_segue_read_base();
4676
+#endif
4677
+ wasm_rt_segue_write_base(instance->w2c_memory.data);
4678
+#endif
4679
+ u32 ret = w2c_highlights_liveRun_0(instance, var_p0, var_p1, var_p2);
4680
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && !WASM_RT_SEGUE_FREE_SEGMENT
4681
+ wasm_rt_segue_write_base(segue_saved_base);
4682
+#endif
4683
+ return ret;
4684
+}
4685
+
4686
+/* export: 'liveLineCount' */
4687
+u32 w2c_highlights_liveLineCount(w2c_highlights* instance) {
4688
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE
4689
+#if !WASM_RT_SEGUE_FREE_SEGMENT
4690
+ void* segue_saved_base = wasm_rt_segue_read_base();
4691
+#endif
4692
+ wasm_rt_segue_write_base(instance->w2c_memory.data);
4693
+#endif
4694
+ u32 ret = w2c_highlights_liveLineCount_0(instance);
4695
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && !WASM_RT_SEGUE_FREE_SEGMENT
4696
+ wasm_rt_segue_write_base(segue_saved_base);
4697
+#endif
4698
+ return ret;
4699
+}
4700
+
4701
+/* export: 'liveLineLen' */
4702
+u32 w2c_highlights_liveLineLen(w2c_highlights* instance, u32 var_p0) {
4703
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE
4704
+#if !WASM_RT_SEGUE_FREE_SEGMENT
4705
+ void* segue_saved_base = wasm_rt_segue_read_base();
4706
+#endif
4707
+ wasm_rt_segue_write_base(instance->w2c_memory.data);
4708
+#endif
4709
+ u32 ret = w2c_highlights_liveLineLen_0(instance, var_p0);
4710
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && !WASM_RT_SEGUE_FREE_SEGMENT
4711
+ wasm_rt_segue_write_base(segue_saved_base);
4712
+#endif
4713
+ return ret;
4714
+}
4715
+
4716
+/* export: 'liveLineByteLen' */
4717
+u32 w2c_highlights_liveLineByteLen(w2c_highlights* instance, u32 var_p0) {
4718
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE
4719
+#if !WASM_RT_SEGUE_FREE_SEGMENT
4720
+ void* segue_saved_base = wasm_rt_segue_read_base();
4721
+#endif
4722
+ wasm_rt_segue_write_base(instance->w2c_memory.data);
4723
+#endif
4724
+ u32 ret = w2c_highlights_liveLineByteLen_0(instance, var_p0);
4725
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && !WASM_RT_SEGUE_FREE_SEGMENT
4726
+ wasm_rt_segue_write_base(segue_saved_base);
4727
+#endif
4728
+ return ret;
4729
+}
4730
+
4731
+/* export: 'liveLineTextPtr' */
4732
+u32 w2c_highlights_liveLineTextPtr(w2c_highlights* instance, u32 var_p0) {
4733
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE
4734
+#if !WASM_RT_SEGUE_FREE_SEGMENT
4735
+ void* segue_saved_base = wasm_rt_segue_read_base();
4736
+#endif
4737
+ wasm_rt_segue_write_base(instance->w2c_memory.data);
4738
+#endif
4739
+ u32 ret = w2c_highlights_liveLineTextPtr_0(instance, var_p0);
4740
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && !WASM_RT_SEGUE_FREE_SEGMENT
4741
+ wasm_rt_segue_write_base(segue_saved_base);
4742
+#endif
4743
+ return ret;
4744
+}
4745
+
4746
+/* export: 'liveLineFlags' */
4747
+u32 w2c_highlights_liveLineFlags(w2c_highlights* instance, u32 var_p0) {
4748
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE
4749
+#if !WASM_RT_SEGUE_FREE_SEGMENT
4750
+ void* segue_saved_base = wasm_rt_segue_read_base();
4751
+#endif
4752
+ wasm_rt_segue_write_base(instance->w2c_memory.data);
4753
+#endif
4754
+ u32 ret = w2c_highlights_liveLineFlags_0(instance, var_p0);
4755
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && !WASM_RT_SEGUE_FREE_SEGMENT
4756
+ wasm_rt_segue_write_base(segue_saved_base);
4757
+#endif
4758
+ return ret;
4759
+}
4760
+
4761
+/* export: 'liveLineTokPtr' */
4762
+u32 w2c_highlights_liveLineTokPtr(w2c_highlights* instance, u32 var_p0) {
4763
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE
4764
+#if !WASM_RT_SEGUE_FREE_SEGMENT
4765
+ void* segue_saved_base = wasm_rt_segue_read_base();
4766
+#endif
4767
+ wasm_rt_segue_write_base(instance->w2c_memory.data);
4768
+#endif
4769
+ u32 ret = w2c_highlights_liveLineTokPtr_0(instance, var_p0);
4770
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && !WASM_RT_SEGUE_FREE_SEGMENT
4771
+ wasm_rt_segue_write_base(segue_saved_base);
4772
+#endif
4773
+ return ret;
4774
+}
4775
+
4776
+/* export: 'liveLineTokCount' */
4777
+u32 w2c_highlights_liveLineTokCount(w2c_highlights* instance, u32 var_p0) {
4778
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE
4779
+#if !WASM_RT_SEGUE_FREE_SEGMENT
4780
+ void* segue_saved_base = wasm_rt_segue_read_base();
4781
+#endif
4782
+ wasm_rt_segue_write_base(instance->w2c_memory.data);
4783
+#endif
4784
+ u32 ret = w2c_highlights_liveLineTokCount_0(instance, var_p0);
4785
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && !WASM_RT_SEGUE_FREE_SEGMENT
4786
+ wasm_rt_segue_write_base(segue_saved_base);
4787
+#endif
4788
+ return ret;
4789
+}
4790
+
4791
+/* export: 'liveChangesPtr' */
4792
+u32 w2c_highlights_liveChangesPtr(w2c_highlights* instance) {
4793
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE
4794
+#if !WASM_RT_SEGUE_FREE_SEGMENT
4795
+ void* segue_saved_base = wasm_rt_segue_read_base();
4796
+#endif
4797
+ wasm_rt_segue_write_base(instance->w2c_memory.data);
4798
+#endif
4799
+ u32 ret = w2c_highlights_liveChangesPtr_0(instance);
4800
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && !WASM_RT_SEGUE_FREE_SEGMENT
4801
+ wasm_rt_segue_write_base(segue_saved_base);
4802
+#endif
4803
+ return ret;
4804
+}
4805
+
4806
+/* export: 'liveStats' */
4807
+u32 w2c_highlights_liveStats(w2c_highlights* instance, u32 var_p0) {
4808
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE
4809
+#if !WASM_RT_SEGUE_FREE_SEGMENT
4810
+ void* segue_saved_base = wasm_rt_segue_read_base();
4811
+#endif
4812
+ wasm_rt_segue_write_base(instance->w2c_memory.data);
4813
+#endif
4814
+ u32 ret = w2c_highlights_liveStats_0(instance, var_p0);
4815
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && !WASM_RT_SEGUE_FREE_SEGMENT
4816
+ wasm_rt_segue_write_base(segue_saved_base);
4817
+#endif
4818
+ return ret;
4819
+}
4820
+
4821
+/* export: 'highlight' */
4822
+void w2c_highlights_highlight(w2c_highlights* instance) {
4823
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE
4824
+#if !WASM_RT_SEGUE_FREE_SEGMENT
4825
+ void* segue_saved_base = wasm_rt_segue_read_base();
4826
+#endif
4827
+ wasm_rt_segue_write_base(instance->w2c_memory.data);
4828
+#endif
4829
+ w2c_highlights_highlight_0(instance);
4830
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && !WASM_RT_SEGUE_FREE_SEGMENT
4831
+ wasm_rt_segue_write_base(segue_saved_base);
4832
+#endif
4833
+}
4834
+
4835
+/* export: 'highlightStream' */
4836
+void w2c_highlights_highlightStream(w2c_highlights* instance, u32 var_p0) {
4837
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE
4838
+#if !WASM_RT_SEGUE_FREE_SEGMENT
4839
+ void* segue_saved_base = wasm_rt_segue_read_base();
4840
+#endif
4841
+ wasm_rt_segue_write_base(instance->w2c_memory.data);
4842
+#endif
4843
+ w2c_highlights_highlightStream_0(instance, var_p0);
4844
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && !WASM_RT_SEGUE_FREE_SEGMENT
4845
+ wasm_rt_segue_write_base(segue_saved_base);
4846
+#endif
4847
+}
4848
+
4849
+/* handler for missing tail-call on import: 'env' 'is_id_continue' */
4850
+WEAK_FUNC_DECL(wasm_tailcall_w2c_env_is_id_continue, wasm_fallback_highlights_w2c_env_is_id_continue)
4851
+{
4852
+ next->fn = NULL;
4853
+ struct wasm_multi_ii params;
4854
+ wasm_rt_memcpy(¶ms, tail_call_stack, sizeof(params));
4855
+ u32 result = w2c_env_is_id_continue(*instance_ptr, params.i0, params.i1);
4856
+ wasm_rt_memcpy(tail_call_stack, &result, sizeof(result));
4857
+}
4858
+
4859
+/* handler for missing tail-call on import: 'env' 'is_id_start' */
4860
+WEAK_FUNC_DECL(wasm_tailcall_w2c_env_is_id_start, wasm_fallback_highlights_w2c_env_is_id_start)
4861
+{
4862
+ next->fn = NULL;
4863
+ struct wasm_multi_ii params;
4864
+ wasm_rt_memcpy(¶ms, tail_call_stack, sizeof(params));
4865
+ u32 result = w2c_env_is_id_start(*instance_ptr, params.i0, params.i1);
4866
+ wasm_rt_memcpy(tail_call_stack, &result, sizeof(result));
4867
+}
4868
+
4869
+static void init_instance_import(w2c_highlights* instance, struct w2c_env* w2c_env_instance) {
4870
+ instance->w2c_env_instance = w2c_env_instance;
4871
+}
4872
+
4873
+void wasm2c_highlights_instantiate(w2c_highlights* instance, struct w2c_env* w2c_env_instance) {
4874
+ assert(wasm_rt_is_initialized());
4875
+ init_instance_import(instance, w2c_env_instance);
4876
+ init_globals(instance);
4877
+ init_tables(instance);
4878
+ init_memories(instance);
4879
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE
4880
+#if !WASM_RT_SEGUE_FREE_SEGMENT
4881
+ void* segue_saved_base = wasm_rt_segue_read_base();
4882
+#endif
4883
+ wasm_rt_segue_write_base(instance->w2c_memory.data);
4884
+#endif
4885
+ init_elem_instances(instance);
4886
+ init_data_instances(instance);
4887
+#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && !WASM_RT_SEGUE_FREE_SEGMENT
4888
+ wasm_rt_segue_write_base(segue_saved_base);
4889
+#endif
4890
+}
4891
+
4892
+void wasm2c_highlights_free(w2c_highlights* instance) {
4893
+ wasm_rt_free_funcref_table(&instance->w2c_T0);
4894
+ wasm_rt_free_memory(&instance->w2c_memory);
4895
+}
4896
+
4897
+wasm_rt_func_type_t wasm2c_highlights_get_func_type(uint32_t param_count, uint32_t result_count, ...) {
4898
+ va_list args;
4899
+
4900
+ if (param_count == 1 && result_count == 1) {
4901
+ va_start(args, result_count);
4902
+ if (true && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32) {
4903
+ va_end(args);
4904
+ return w2c_highlights_t0;
4905
+ }
4906
+ va_end(args);
4907
+ }
4908
+
4909
+ if (param_count == 0 && result_count == 0) {
4910
+ va_start(args, result_count);
4911
+ if (true) {
4912
+ va_end(args);
4913
+ return w2c_highlights_t1;
4914
+ }
4915
+ va_end(args);
4916
+ }
4917
+
4918
+ if (param_count == 2 && result_count == 1) {
4919
+ va_start(args, result_count);
4920
+ if (true && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32) {
4921
+ va_end(args);
4922
+ return w2c_highlights_t2;
4923
+ }
4924
+ va_end(args);
4925
+ }
4926
+
4927
+ if (param_count == 1 && result_count == 0) {
4928
+ va_start(args, result_count);
4929
+ if (true && va_arg(args, int) == WASM_RT_I32) {
4930
+ va_end(args);
4931
+ return w2c_highlights_t3;
4932
+ }
4933
+ va_end(args);
4934
+ }
4935
+
4936
+ if (param_count == 2 && result_count == 0) {
4937
+ va_start(args, result_count);
4938
+ if (true && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32) {
4939
+ va_end(args);
4940
+ return w2c_highlights_t4;
4941
+ }
4942
+ va_end(args);
4943
+ }
4944
+
4945
+ if (param_count == 0 && result_count == 1) {
4946
+ va_start(args, result_count);
4947
+ if (true && va_arg(args, int) == WASM_RT_I32) {
4948
+ va_end(args);
4949
+ return w2c_highlights_t5;
4950
+ }
4951
+ va_end(args);
4952
+ }
4953
+
4954
+ if (param_count == 3 && result_count == 0) {
4955
+ va_start(args, result_count);
4956
+ if (true && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32) {
4957
+ va_end(args);
4958
+ return w2c_highlights_t6;
4959
+ }
4960
+ va_end(args);
4961
+ }
4962
+
4963
+ if (param_count == 3 && result_count == 1) {
4964
+ va_start(args, result_count);
4965
+ if (true && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32) {
4966
+ va_end(args);
4967
+ return w2c_highlights_t7;
4968
+ }
4969
+ va_end(args);
4970
+ }
4971
+
4972
+ if (param_count == 4 && result_count == 1) {
4973
+ va_start(args, result_count);
4974
+ if (true && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32) {
4975
+ va_end(args);
4976
+ return w2c_highlights_t8;
4977
+ }
4978
+ va_end(args);
4979
+ }
4980
+
4981
+ if (param_count == 5 && result_count == 1) {
4982
+ va_start(args, result_count);
4983
+ if (true && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32) {
4984
+ va_end(args);
4985
+ return w2c_highlights_t9;
4986
+ }
4987
+ va_end(args);
4988
+ }
4989
+
4990
+ if (param_count == 4 && result_count == 0) {
4991
+ va_start(args, result_count);
4992
+ if (true && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32 && va_arg(args, int) == WASM_RT_I32) {
4993
+ va_end(args);
4994
+ return w2c_highlights_t10;
4995
+ }
4996
+ va_end(args);
4997
+ }
4998
+
4999
+ if (param_count == 5 && result_count == 0) {
This file is too large to show in full.
apps/mobile/modules/t3-highlights/Vendor/highlights/highlights.h
new
+224
@@ -0,0 +1,224 @@
1
+/* Generated by apps/mobile/scripts/generate-highlights.mts from @pierre/highlights 0.2.0 (highlights.wasm sha256 cf5fc4d83e7c1ddab19d163de096f787f87efe61504909aa469434f61ef51e2e). Do not edit. */
2
+/* Automatically generated by wasm2c */
3
+#ifndef HIGHLIGHTS_H_GENERATED_
4
+#define HIGHLIGHTS_H_GENERATED_
5
+
6
+#include "wasm-rt.h"
7
+
8
+#include <stdint.h>
9
+
10
+#ifndef WASM_RT_CORE_TYPES_DEFINED
11
+#define WASM_RT_CORE_TYPES_DEFINED
12
+typedef uint8_t u8;
13
+typedef int8_t s8;
14
+typedef uint16_t u16;
15
+typedef int16_t s16;
16
+typedef uint32_t u32;
17
+typedef int32_t s32;
18
+typedef uint64_t u64;
19
+typedef int64_t s64;
20
+typedef float f32;
21
+typedef double f64;
22
+#endif
23
+
24
+#ifdef __cplusplus
25
+extern "C" {
26
+#endif
27
+
28
+struct w2c_env;
29
+
30
+typedef struct w2c_highlights {
31
+ struct w2c_env* w2c_env_instance;
32
+ u32 w2c_g0;
33
+ u32 w2c_g1;
34
+ u32 w2c_g2;
35
+ u32 w2c_g3;
36
+ u32 w2c_g4;
37
+ u32 w2c_g5;
38
+ u32 w2c_g6;
39
+ u32 w2c_g7;
40
+ u32 w2c_g8;
41
+ u32 w2c_g9;
42
+ u32 w2c_g10;
43
+ u64 w2c_g11;
44
+ u32 w2c_g12;
45
+ u32 w2c_g13;
46
+ u32 w2c_g14;
47
+ u32 w2c_g15;
48
+ u32 w2c_g16;
49
+ u32 w2c_g17;
50
+ u32 w2c_g18;
51
+ u32 w2c_g19;
52
+ u32 w2c_g20;
53
+ u32 w2c_g21;
54
+ u32 w2c_g22;
55
+ u32 w2c_g23;
56
+ u32 w2c_g24;
57
+ u32 w2c_g25;
58
+ u32 w2c_g26;
59
+ u32 w2c_g27;
60
+ u32 w2c_g28;
61
+ u32 w2c_g29;
62
+ u32 w2c_g30;
63
+ u32 w2c_g31;
64
+ u32 w2c_g32;
65
+ u32 w2c_g33;
66
+ u32 w2c_g34;
67
+ u32 w2c_g35;
68
+ u32 w2c_g36;
69
+ u32 w2c_g37;
70
+ u32 w2c_g38;
71
+ u32 w2c_g39;
72
+ u32 w2c_g40;
73
+ u32 w2c_g41;
74
+ u32 w2c_g42;
75
+ u32 w2c_g43;
76
+ u32 w2c_g44;
77
+ u32 w2c_g45;
78
+ u32 w2c_g46;
79
+ u32 w2c_g47;
80
+ u32 w2c_g48;
81
+ u32 w2c_g49;
82
+ u32 w2c_g50;
83
+ u32 w2c_g51;
84
+ u32 w2c_g52;
85
+ u32 w2c_g53;
86
+ u32 w2c_g54;
87
+ u32 w2c_g55;
88
+ u32 w2c_g56;
89
+ u32 w2c_g57;
90
+ u32 w2c_g58;
91
+ u32 w2c_g59;
92
+ u32 w2c_g60;
93
+ u32 w2c_g61;
94
+ u32 w2c_g62;
95
+ u32 w2c_g63;
96
+ u32 w2c_g64;
97
+ u32 w2c_g65;
98
+ u32 w2c_g66;
99
+ u32 w2c_g67;
100
+ u32 w2c_g68;
101
+ u32 w2c_g69;
102
+ u32 w2c_g70;
103
+ u32 w2c_g71;
104
+ u32 w2c_g72;
105
+ u32 w2c_g73;
106
+ u32 w2c_g74;
107
+ u32 w2c_g75;
108
+ u32 w2c_g76;
109
+ u32 w2c_g77;
110
+ u32 w2c_g78;
111
+ u32 w2c_g79;
112
+ u32 w2c_g80;
113
+ u32 w2c_g81;
114
+ u32 w2c_g82;
115
+ u32 w2c_g83;
116
+ u32 w2c_g84;
117
+ u32 w2c_g85;
118
+ u32 w2c_g86;
119
+ u32 w2c_g87;
120
+ u32 w2c_g88;
121
+ u32 w2c_g89;
122
+ u32 w2c_g90;
123
+ u32 w2c_g91;
124
+ u32 w2c_g92;
125
+ u32 w2c_g93;
126
+ u32 w2c_g94;
127
+ u32 w2c_g95;
128
+ u32 w2c_g96;
129
+ u32 w2c_g97;
130
+ u32 w2c_g98;
131
+ u32 w2c_g99;
132
+ u32 w2c_g100;
133
+ u32 w2c_g101;
134
+ u32 w2c_g102;
135
+ u32 w2c_g103;
136
+ u32 w2c_g104;
137
+ u32 w2c_g105;
138
+ u32 w2c_g106;
139
+ u32 w2c_g107;
140
+ u32 w2c_g108;
141
+ u32 w2c_g109;
142
+ u32 w2c_g110;
143
+ u32 w2c_g111;
144
+ u32 w2c_g112;
145
+ u32 w2c_g113;
146
+ u32 w2c_g114;
147
+ u32 w2c_g115;
148
+ u32 w2c_g116;
149
+ u32 w2c_g117;
150
+ u32 w2c_g118;
151
+ u32 w2c_g119;
152
+ u32 w2c_g120;
153
+ u32 w2c_g121;
154
+ u32 w2c_g122;
155
+ u32 w2c_g123;
156
+ wasm_rt_memory_t w2c_memory;
157
+ wasm_rt_funcref_table_t w2c_T0;
158
+} w2c_highlights;
159
+
160
+void wasm2c_highlights_instantiate(w2c_highlights*, struct w2c_env*);
161
+void wasm2c_highlights_free(w2c_highlights*);
162
+wasm_rt_func_type_t wasm2c_highlights_get_func_type(uint32_t param_count, uint32_t result_count, ...);
163
+
164
+/* import: 'env' 'is_id_continue' */
165
+u32 w2c_env_is_id_continue(struct w2c_env*, u32, u32);
166
+void wasm_tailcall_w2c_env_is_id_continue(void **instance_ptr, void *tail_call_stack, wasm_rt_tailcallee_t *next);
167
+
168
+/* import: 'env' 'is_id_start' */
169
+u32 w2c_env_is_id_start(struct w2c_env*, u32, u32);
170
+void wasm_tailcall_w2c_env_is_id_start(void **instance_ptr, void *tail_call_stack, wasm_rt_tailcallee_t *next);
171
+
172
+/* export: 'memory' */
173
+wasm_rt_memory_t* w2c_highlights_memory(w2c_highlights* instance);
174
+
175
+/* export: 'liveStage' */
176
+u32 w2c_highlights_liveStage(w2c_highlights*, u32);
177
+
178
+/* export: 'liveInitDoc' */
179
+void w2c_highlights_liveInitDoc(w2c_highlights*, u32, u32, u32);
180
+
181
+/* export: 'liveApplyEdits' */
182
+void w2c_highlights_liveApplyEdits(w2c_highlights*, u32, u32);
183
+
184
+/* export: 'liveRun' */
185
+u32 w2c_highlights_liveRun(w2c_highlights*, u32, u32, u32);
186
+
187
+/* export: 'liveLineCount' */
188
+u32 w2c_highlights_liveLineCount(w2c_highlights*);
189
+
190
+/* export: 'liveLineLen' */
191
+u32 w2c_highlights_liveLineLen(w2c_highlights*, u32);
192
+
193
+/* export: 'liveLineByteLen' */
194
+u32 w2c_highlights_liveLineByteLen(w2c_highlights*, u32);
195
+
196
+/* export: 'liveLineTextPtr' */
197
+u32 w2c_highlights_liveLineTextPtr(w2c_highlights*, u32);
198
+
199
+/* export: 'liveLineFlags' */
200
+u32 w2c_highlights_liveLineFlags(w2c_highlights*, u32);
201
+
202
+/* export: 'liveLineTokPtr' */
203
+u32 w2c_highlights_liveLineTokPtr(w2c_highlights*, u32);
204
+
205
+/* export: 'liveLineTokCount' */
206
+u32 w2c_highlights_liveLineTokCount(w2c_highlights*, u32);
207
+
208
+/* export: 'liveChangesPtr' */
209
+u32 w2c_highlights_liveChangesPtr(w2c_highlights*);
210
+
211
+/* export: 'liveStats' */
212
+u32 w2c_highlights_liveStats(w2c_highlights*, u32);
213
+
214
+/* export: 'highlight' */
215
+void w2c_highlights_highlight(w2c_highlights*);
216
+
217
+/* export: 'highlightStream' */
218
+void w2c_highlights_highlightStream(w2c_highlights*, u32);
219
+
220
+#ifdef __cplusplus
221
+}
222
+#endif
223
+
224
+#endif /* HIGHLIGHTS_H_GENERATED_ */
apps/mobile/modules/t3-highlights/Vendor/simde/LICENSE
new
+20
@@ -0,0 +1,20 @@
1
+Copyright (c) 2017 Evan Nemerson <evan@nemerson.com>
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining
4
+a copy of this software and associated documentation files (the
5
+"Software"), to deal in the Software without restriction, including
6
+without limitation the rights to use, copy, modify, merge, publish,
7
+distribute, sublicense, and/or sell copies of the Software, and to
8
+permit persons to whom the Software is furnished to do so, subject to
9
+the following conditions:
10
+
11
+The above copyright notice and this permission notice shall be
12
+included in all copies or substantial portions of the Software.
13
+
14
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
apps/mobile/modules/t3-highlights/Vendor/simde/wasm/simd128.h
new
+17950
@@ -0,0 +1,17950 @@
1
+/* AUTOMATICALLY GENERATED FILE, DO NOT MODIFY */
2
+/* 71fd833d9666141edcd1d3c109a80e228303d8d7 */
3
+/* :: Begin simde/wasm/simd128.h :: */
4
+/* SPDX-License-Identifier: MIT
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person
7
+ * obtaining a copy of this software and associated documentation
8
+ * files (the "Software"), to deal in the Software without
9
+ * restriction, including without limitation the rights to use, copy,
10
+ * modify, merge, publish, distribute, sublicense, and/or sell copies
11
+ * of the Software, and to permit persons to whom the Software is
12
+ * furnished to do so, subject to the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be
15
+ * included in all copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
21
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
22
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
23
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ * Copyright:
27
+ * 2021 Evan Nemerson <evan@nemerson.com>
28
+ * 2023 Michael R. Crusoe <crusoe@debian.org>
29
+ */
30
+
31
+#if !defined(SIMDE_WASM_SIMD128_H)
32
+#define SIMDE_WASM_SIMD128_H
33
+
34
+/* AUTOMATICALLY GENERATED FILE, DO NOT MODIFY */
35
+/* 71fd833d9666141edcd1d3c109a80e228303d8d7 */
36
+/* :: Begin simde/simde-common.h :: */
37
+/* SPDX-License-Identifier: MIT
38
+ *
39
+ * Permission is hereby granted, free of charge, to any person
40
+ * obtaining a copy of this software and associated documentation
41
+ * files (the "Software"), to deal in the Software without
42
+ * restriction, including without limitation the rights to use, copy,
43
+ * modify, merge, publish, distribute, sublicense, and/or sell copies
44
+ * of the Software, and to permit persons to whom the Software is
45
+ * furnished to do so, subject to the following conditions:
46
+ *
47
+ * The above copyright notice and this permission notice shall be
48
+ * included in all copies or substantial portions of the Software.
49
+ *
50
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
51
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
52
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
53
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
54
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
55
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
56
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
57
+ * SOFTWARE.
58
+ *
59
+ * Copyright:
60
+ * 2017-2020 Evan Nemerson <evan@nemerson.com>
61
+ * 2023 Yi-Yen Chung <eric681@andestech.com> (Copyright owned by Andes Technology)
62
+ * 2023 Ju-Hung Li <jhlee@pllab.cs.nthu.edu.tw> (Copyright owned by NTHU pllab)
63
+ */
64
+
65
+#if !defined(SIMDE_COMMON_H)
66
+#define SIMDE_COMMON_H
67
+
68
+/* AUTOMATICALLY GENERATED FILE, DO NOT MODIFY */
69
+/* 71fd833d9666141edcd1d3c109a80e228303d8d7 */
70
+/* :: Begin simde/hedley.h :: */
71
+/* Hedley - https://nemequ.github.io/hedley
72
+ * Created by Evan Nemerson <evan@nemerson.com>
73
+ *
74
+ * To the extent possible under law, the author(s) have dedicated all
75
+ * copyright and related and neighboring rights to this software to
76
+ * the public domain worldwide. This software is distributed without
77
+ * any warranty.
78
+ *
79
+ * For details, see <http://creativecommons.org/publicdomain/zero/1.0/>.
80
+ * SPDX-License-Identifier: CC0-1.0
81
+ */
82
+
83
+#if !defined(HEDLEY_VERSION) || (HEDLEY_VERSION < 16)
84
+#if defined(HEDLEY_VERSION)
85
+# undef HEDLEY_VERSION
86
+#endif
87
+#define HEDLEY_VERSION 16
88
+
89
+#if defined(HEDLEY_STRINGIFY_EX)
90
+# undef HEDLEY_STRINGIFY_EX
91
+#endif
92
+#define HEDLEY_STRINGIFY_EX(x) #x
93
+
94
+#if defined(HEDLEY_STRINGIFY)
95
+# undef HEDLEY_STRINGIFY
96
+#endif
97
+#define HEDLEY_STRINGIFY(x) HEDLEY_STRINGIFY_EX(x)
98
+
99
+#if defined(HEDLEY_CONCAT_EX)
100
+# undef HEDLEY_CONCAT_EX
101
+#endif
102
+#define HEDLEY_CONCAT_EX(a,b) a##b
103
+
104
+#if defined(HEDLEY_CONCAT)
105
+# undef HEDLEY_CONCAT
106
+#endif
107
+#define HEDLEY_CONCAT(a,b) HEDLEY_CONCAT_EX(a,b)
108
+
109
+#if defined(HEDLEY_CONCAT3_EX)
110
+# undef HEDLEY_CONCAT3_EX
111
+#endif
112
+#define HEDLEY_CONCAT3_EX(a,b,c) a##b##c
113
+
114
+#if defined(HEDLEY_CONCAT3)
115
+# undef HEDLEY_CONCAT3
116
+#endif
117
+#define HEDLEY_CONCAT3(a,b,c) HEDLEY_CONCAT3_EX(a,b,c)
118
+
119
+#if defined(HEDLEY_VERSION_ENCODE)
120
+# undef HEDLEY_VERSION_ENCODE
121
+#endif
122
+#define HEDLEY_VERSION_ENCODE(major,minor,revision) (((major) * 1000000) + ((minor) * 1000) + (revision))
123
+
124
+#if defined(HEDLEY_VERSION_DECODE_MAJOR)
125
+# undef HEDLEY_VERSION_DECODE_MAJOR
126
+#endif
127
+#define HEDLEY_VERSION_DECODE_MAJOR(version) ((version) / 1000000)
128
+
129
+#if defined(HEDLEY_VERSION_DECODE_MINOR)
130
+# undef HEDLEY_VERSION_DECODE_MINOR
131
+#endif
132
+#define HEDLEY_VERSION_DECODE_MINOR(version) (((version) % 1000000) / 1000)
133
+
134
+#if defined(HEDLEY_VERSION_DECODE_REVISION)
135
+# undef HEDLEY_VERSION_DECODE_REVISION
136
+#endif
137
+#define HEDLEY_VERSION_DECODE_REVISION(version) ((version) % 1000)
138
+
139
+#if defined(HEDLEY_GNUC_VERSION)
140
+# undef HEDLEY_GNUC_VERSION
141
+#endif
142
+#if defined(__GNUC__) && defined(__GNUC_PATCHLEVEL__)
143
+# define HEDLEY_GNUC_VERSION HEDLEY_VERSION_ENCODE(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__)
144
+#elif defined(__GNUC__)
145
+# define HEDLEY_GNUC_VERSION HEDLEY_VERSION_ENCODE(__GNUC__, __GNUC_MINOR__, 0)
146
+#endif
147
+
148
+#if defined(HEDLEY_GNUC_VERSION_CHECK)
149
+# undef HEDLEY_GNUC_VERSION_CHECK
150
+#endif
151
+#if defined(HEDLEY_GNUC_VERSION)
152
+# define HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (HEDLEY_GNUC_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
153
+#else
154
+# define HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (0)
155
+#endif
156
+
157
+#if defined(HEDLEY_MSVC_VERSION)
158
+# undef HEDLEY_MSVC_VERSION
159
+#endif
160
+#if defined(_MSC_FULL_VER) && (_MSC_FULL_VER >= 140000000) && !defined(__ICL)
161
+# define HEDLEY_MSVC_VERSION HEDLEY_VERSION_ENCODE(_MSC_FULL_VER / 10000000, (_MSC_FULL_VER % 10000000) / 100000, (_MSC_FULL_VER % 100000) / 100)
162
+#elif defined(_MSC_FULL_VER) && !defined(__ICL)
163
+# define HEDLEY_MSVC_VERSION HEDLEY_VERSION_ENCODE(_MSC_FULL_VER / 1000000, (_MSC_FULL_VER % 1000000) / 10000, (_MSC_FULL_VER % 10000) / 10)
164
+#elif defined(_MSC_VER) && !defined(__ICL)
165
+# define HEDLEY_MSVC_VERSION HEDLEY_VERSION_ENCODE(_MSC_VER / 100, _MSC_VER % 100, 0)
166
+#endif
167
+
168
+#if defined(HEDLEY_MSVC_VERSION_CHECK)
169
+# undef HEDLEY_MSVC_VERSION_CHECK
170
+#endif
171
+#if !defined(HEDLEY_MSVC_VERSION)
172
+# define HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (0)
173
+#elif defined(_MSC_VER) && (_MSC_VER >= 1400)
174
+# define HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch)))
175
+#elif defined(_MSC_VER) && (_MSC_VER >= 1200)
176
+# define HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch)))
177
+#else
178
+# define HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_VER >= ((major * 100) + (minor)))
179
+#endif
180
+
181
+#if defined(HEDLEY_INTEL_VERSION)
182
+# undef HEDLEY_INTEL_VERSION
183
+#endif
184
+#if defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE) && !defined(__ICL)
185
+# define HEDLEY_INTEL_VERSION HEDLEY_VERSION_ENCODE(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, __INTEL_COMPILER_UPDATE)
186
+#elif defined(__INTEL_COMPILER) && !defined(__ICL)
187
+# define HEDLEY_INTEL_VERSION HEDLEY_VERSION_ENCODE(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, 0)
188
+#endif
189
+
190
+#if defined(HEDLEY_INTEL_VERSION_CHECK)
191
+# undef HEDLEY_INTEL_VERSION_CHECK
192
+#endif
193
+#if defined(HEDLEY_INTEL_VERSION)
194
+# define HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (HEDLEY_INTEL_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
195
+#else
196
+# define HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (0)
197
+#endif
198
+
199
+#if defined(HEDLEY_INTEL_CL_VERSION)
200
+# undef HEDLEY_INTEL_CL_VERSION
201
+#endif
202
+#if defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE) && defined(__ICL)
203
+# define HEDLEY_INTEL_CL_VERSION HEDLEY_VERSION_ENCODE(__INTEL_COMPILER, __INTEL_COMPILER_UPDATE, 0)
204
+#endif
205
+
206
+#if defined(HEDLEY_INTEL_CL_VERSION_CHECK)
207
+# undef HEDLEY_INTEL_CL_VERSION_CHECK
208
+#endif
209
+#if defined(HEDLEY_INTEL_CL_VERSION)
210
+# define HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (HEDLEY_INTEL_CL_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
211
+#else
212
+# define HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (0)
213
+#endif
214
+
215
+#if defined(HEDLEY_PGI_VERSION)
216
+# undef HEDLEY_PGI_VERSION
217
+#endif
218
+#if defined(__PGI) && defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__)
219
+# define HEDLEY_PGI_VERSION HEDLEY_VERSION_ENCODE(__PGIC__, __PGIC_MINOR__, __PGIC_PATCHLEVEL__)
220
+#endif
221
+
222
+#if defined(HEDLEY_PGI_VERSION_CHECK)
223
+# undef HEDLEY_PGI_VERSION_CHECK
224
+#endif
225
+#if defined(HEDLEY_PGI_VERSION)
226
+# define HEDLEY_PGI_VERSION_CHECK(major,minor,patch) (HEDLEY_PGI_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
227
+#else
228
+# define HEDLEY_PGI_VERSION_CHECK(major,minor,patch) (0)
229
+#endif
230
+
231
+#if defined(HEDLEY_SUNPRO_VERSION)
232
+# undef HEDLEY_SUNPRO_VERSION
233
+#endif
234
+#if defined(__SUNPRO_C) && (__SUNPRO_C > 0x1000)
235
+# define HEDLEY_SUNPRO_VERSION HEDLEY_VERSION_ENCODE((((__SUNPRO_C >> 16) & 0xf) * 10) + ((__SUNPRO_C >> 12) & 0xf), (((__SUNPRO_C >> 8) & 0xf) * 10) + ((__SUNPRO_C >> 4) & 0xf), (__SUNPRO_C & 0xf) * 10)
236
+#elif defined(__SUNPRO_C)
237
+# define HEDLEY_SUNPRO_VERSION HEDLEY_VERSION_ENCODE((__SUNPRO_C >> 8) & 0xf, (__SUNPRO_C >> 4) & 0xf, (__SUNPRO_C) & 0xf)
238
+#elif defined(__SUNPRO_CC) && (__SUNPRO_CC > 0x1000)
239
+# define HEDLEY_SUNPRO_VERSION HEDLEY_VERSION_ENCODE((((__SUNPRO_CC >> 16) & 0xf) * 10) + ((__SUNPRO_CC >> 12) & 0xf), (((__SUNPRO_CC >> 8) & 0xf) * 10) + ((__SUNPRO_CC >> 4) & 0xf), (__SUNPRO_CC & 0xf) * 10)
240
+#elif defined(__SUNPRO_CC)
241
+# define HEDLEY_SUNPRO_VERSION HEDLEY_VERSION_ENCODE((__SUNPRO_CC >> 8) & 0xf, (__SUNPRO_CC >> 4) & 0xf, (__SUNPRO_CC) & 0xf)
242
+#endif
243
+
244
+#if defined(HEDLEY_SUNPRO_VERSION_CHECK)
245
+# undef HEDLEY_SUNPRO_VERSION_CHECK
246
+#endif
247
+#if defined(HEDLEY_SUNPRO_VERSION)
248
+# define HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (HEDLEY_SUNPRO_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
249
+#else
250
+# define HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (0)
251
+#endif
252
+
253
+#if defined(HEDLEY_EMSCRIPTEN_VERSION)
254
+# undef HEDLEY_EMSCRIPTEN_VERSION
255
+#endif
256
+#if defined(__EMSCRIPTEN__)
257
+# include <emscripten.h>
258
+# define HEDLEY_EMSCRIPTEN_VERSION HEDLEY_VERSION_ENCODE(__EMSCRIPTEN_major__, __EMSCRIPTEN_minor__, __EMSCRIPTEN_tiny__)
259
+#endif
260
+
261
+#if defined(HEDLEY_EMSCRIPTEN_VERSION_CHECK)
262
+# undef HEDLEY_EMSCRIPTEN_VERSION_CHECK
263
+#endif
264
+#if defined(HEDLEY_EMSCRIPTEN_VERSION)
265
+# define HEDLEY_EMSCRIPTEN_VERSION_CHECK(major,minor,patch) (HEDLEY_EMSCRIPTEN_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
266
+#else
267
+# define HEDLEY_EMSCRIPTEN_VERSION_CHECK(major,minor,patch) (0)
268
+#endif
269
+
270
+#if defined(HEDLEY_ARM_VERSION)
271
+# undef HEDLEY_ARM_VERSION
272
+#endif
273
+#if defined(__CC_ARM) && defined(__ARMCOMPILER_VERSION)
274
+# define HEDLEY_ARM_VERSION HEDLEY_VERSION_ENCODE(__ARMCOMPILER_VERSION / 1000000, (__ARMCOMPILER_VERSION % 1000000) / 10000, (__ARMCOMPILER_VERSION % 10000) / 100)
275
+#elif defined(__CC_ARM) && defined(__ARMCC_VERSION)
276
+# define HEDLEY_ARM_VERSION HEDLEY_VERSION_ENCODE(__ARMCC_VERSION / 1000000, (__ARMCC_VERSION % 1000000) / 10000, (__ARMCC_VERSION % 10000) / 100)
277
+#endif
278
+
279
+#if defined(HEDLEY_ARM_VERSION_CHECK)
280
+# undef HEDLEY_ARM_VERSION_CHECK
281
+#endif
282
+#if defined(HEDLEY_ARM_VERSION)
283
+# define HEDLEY_ARM_VERSION_CHECK(major,minor,patch) (HEDLEY_ARM_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
284
+#else
285
+# define HEDLEY_ARM_VERSION_CHECK(major,minor,patch) (0)
286
+#endif
287
+
288
+#if defined(HEDLEY_IBM_VERSION)
289
+# undef HEDLEY_IBM_VERSION
290
+#endif
291
+#if defined(__ibmxl__)
292
+# define HEDLEY_IBM_VERSION HEDLEY_VERSION_ENCODE(__ibmxl_version__, __ibmxl_release__, __ibmxl_modification__)
293
+#elif defined(__xlC__) && defined(__xlC_ver__)
294
+# define HEDLEY_IBM_VERSION HEDLEY_VERSION_ENCODE(__xlC__ >> 8, __xlC__ & 0xff, (__xlC_ver__ >> 8) & 0xff)
295
+#elif defined(__xlC__)
296
+# define HEDLEY_IBM_VERSION HEDLEY_VERSION_ENCODE(__xlC__ >> 8, __xlC__ & 0xff, 0)
297
+#endif
298
+
299
+#if defined(HEDLEY_IBM_VERSION_CHECK)
300
+# undef HEDLEY_IBM_VERSION_CHECK
301
+#endif
302
+#if defined(HEDLEY_IBM_VERSION)
303
+# define HEDLEY_IBM_VERSION_CHECK(major,minor,patch) (HEDLEY_IBM_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
304
+#else
305
+# define HEDLEY_IBM_VERSION_CHECK(major,minor,patch) (0)
306
+#endif
307
+
308
+#if defined(HEDLEY_TI_VERSION)
309
+# undef HEDLEY_TI_VERSION
310
+#endif
311
+#if \
312
+ defined(__TI_COMPILER_VERSION__) && \
313
+ ( \
314
+ defined(__TMS470__) || defined(__TI_ARM__) || \
315
+ defined(__MSP430__) || \
316
+ defined(__TMS320C2000__) \
317
+ )
318
+# if (__TI_COMPILER_VERSION__ >= 16000000)
319
+# define HEDLEY_TI_VERSION HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
320
+# endif
321
+#endif
322
+
323
+#if defined(HEDLEY_TI_VERSION_CHECK)
324
+# undef HEDLEY_TI_VERSION_CHECK
325
+#endif
326
+#if defined(HEDLEY_TI_VERSION)
327
+# define HEDLEY_TI_VERSION_CHECK(major,minor,patch) (HEDLEY_TI_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
328
+#else
329
+# define HEDLEY_TI_VERSION_CHECK(major,minor,patch) (0)
330
+#endif
331
+
332
+#if defined(HEDLEY_TI_CL2000_VERSION)
333
+# undef HEDLEY_TI_CL2000_VERSION
334
+#endif
335
+#if defined(__TI_COMPILER_VERSION__) && defined(__TMS320C2000__)
336
+# define HEDLEY_TI_CL2000_VERSION HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
337
+#endif
338
+
339
+#if defined(HEDLEY_TI_CL2000_VERSION_CHECK)
340
+# undef HEDLEY_TI_CL2000_VERSION_CHECK
341
+#endif
342
+#if defined(HEDLEY_TI_CL2000_VERSION)
343
+# define HEDLEY_TI_CL2000_VERSION_CHECK(major,minor,patch) (HEDLEY_TI_CL2000_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
344
+#else
345
+# define HEDLEY_TI_CL2000_VERSION_CHECK(major,minor,patch) (0)
346
+#endif
347
+
348
+#if defined(HEDLEY_TI_CL430_VERSION)
349
+# undef HEDLEY_TI_CL430_VERSION
350
+#endif
351
+#if defined(__TI_COMPILER_VERSION__) && defined(__MSP430__)
352
+# define HEDLEY_TI_CL430_VERSION HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
353
+#endif
354
+
355
+#if defined(HEDLEY_TI_CL430_VERSION_CHECK)
356
+# undef HEDLEY_TI_CL430_VERSION_CHECK
357
+#endif
358
+#if defined(HEDLEY_TI_CL430_VERSION)
359
+# define HEDLEY_TI_CL430_VERSION_CHECK(major,minor,patch) (HEDLEY_TI_CL430_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
360
+#else
361
+# define HEDLEY_TI_CL430_VERSION_CHECK(major,minor,patch) (0)
362
+#endif
363
+
364
+#if defined(HEDLEY_TI_ARMCL_VERSION)
365
+# undef HEDLEY_TI_ARMCL_VERSION
366
+#endif
367
+#if defined(__TI_COMPILER_VERSION__) && (defined(__TMS470__) || defined(__TI_ARM__))
368
+# define HEDLEY_TI_ARMCL_VERSION HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
369
+#endif
370
+
371
+#if defined(HEDLEY_TI_ARMCL_VERSION_CHECK)
372
+# undef HEDLEY_TI_ARMCL_VERSION_CHECK
373
+#endif
374
+#if defined(HEDLEY_TI_ARMCL_VERSION)
375
+# define HEDLEY_TI_ARMCL_VERSION_CHECK(major,minor,patch) (HEDLEY_TI_ARMCL_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
376
+#else
377
+# define HEDLEY_TI_ARMCL_VERSION_CHECK(major,minor,patch) (0)
378
+#endif
379
+
380
+#if defined(HEDLEY_TI_CL6X_VERSION)
381
+# undef HEDLEY_TI_CL6X_VERSION
382
+#endif
383
+#if defined(__TI_COMPILER_VERSION__) && defined(__TMS320C6X__)
384
+# define HEDLEY_TI_CL6X_VERSION HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
385
+#endif
386
+
387
+#if defined(HEDLEY_TI_CL6X_VERSION_CHECK)
388
+# undef HEDLEY_TI_CL6X_VERSION_CHECK
389
+#endif
390
+#if defined(HEDLEY_TI_CL6X_VERSION)
391
+# define HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (HEDLEY_TI_CL6X_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
392
+#else
393
+# define HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (0)
394
+#endif
395
+
396
+#if defined(HEDLEY_TI_CL7X_VERSION)
397
+# undef HEDLEY_TI_CL7X_VERSION
398
+#endif
399
+#if defined(__TI_COMPILER_VERSION__) && defined(__C7000__)
400
+# define HEDLEY_TI_CL7X_VERSION HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
401
+#endif
402
+
403
+#if defined(HEDLEY_TI_CL7X_VERSION_CHECK)
404
+# undef HEDLEY_TI_CL7X_VERSION_CHECK
405
+#endif
406
+#if defined(HEDLEY_TI_CL7X_VERSION)
407
+# define HEDLEY_TI_CL7X_VERSION_CHECK(major,minor,patch) (HEDLEY_TI_CL7X_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
408
+#else
409
+# define HEDLEY_TI_CL7X_VERSION_CHECK(major,minor,patch) (0)
410
+#endif
411
+
412
+#if defined(HEDLEY_TI_CLPRU_VERSION)
413
+# undef HEDLEY_TI_CLPRU_VERSION
414
+#endif
415
+#if defined(__TI_COMPILER_VERSION__) && defined(__PRU__)
416
+# define HEDLEY_TI_CLPRU_VERSION HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000))
417
+#endif
418
+
419
+#if defined(HEDLEY_TI_CLPRU_VERSION_CHECK)
420
+# undef HEDLEY_TI_CLPRU_VERSION_CHECK
421
+#endif
422
+#if defined(HEDLEY_TI_CLPRU_VERSION)
423
+# define HEDLEY_TI_CLPRU_VERSION_CHECK(major,minor,patch) (HEDLEY_TI_CLPRU_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
424
+#else
425
+# define HEDLEY_TI_CLPRU_VERSION_CHECK(major,minor,patch) (0)
426
+#endif
427
+
428
+#if defined(HEDLEY_CRAY_VERSION)
429
+# undef HEDLEY_CRAY_VERSION
430
+#endif
431
+#if defined(_CRAYC)
432
+# if defined(_RELEASE_PATCHLEVEL)
433
+# define HEDLEY_CRAY_VERSION HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, _RELEASE_PATCHLEVEL)
434
+# else
435
+# define HEDLEY_CRAY_VERSION HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, 0)
436
+# endif
437
+#endif
438
+
439
+#if defined(HEDLEY_CRAY_VERSION_CHECK)
440
+# undef HEDLEY_CRAY_VERSION_CHECK
441
+#endif
442
+#if defined(HEDLEY_CRAY_VERSION)
443
+# define HEDLEY_CRAY_VERSION_CHECK(major,minor,patch) (HEDLEY_CRAY_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
444
+#else
445
+# define HEDLEY_CRAY_VERSION_CHECK(major,minor,patch) (0)
446
+#endif
447
+
448
+#if defined(HEDLEY_IAR_VERSION)
449
+# undef HEDLEY_IAR_VERSION
450
+#endif
451
+#if defined(__IAR_SYSTEMS_ICC__)
452
+# if __VER__ > 1000
453
+# define HEDLEY_IAR_VERSION HEDLEY_VERSION_ENCODE((__VER__ / 1000000), ((__VER__ / 1000) % 1000), (__VER__ % 1000))
454
+# else
455
+# define HEDLEY_IAR_VERSION HEDLEY_VERSION_ENCODE(__VER__ / 100, __VER__ % 100, 0)
456
+# endif
457
+#endif
458
+
459
+#if defined(HEDLEY_IAR_VERSION_CHECK)
460
+# undef HEDLEY_IAR_VERSION_CHECK
461
+#endif
462
+#if defined(HEDLEY_IAR_VERSION)
463
+# define HEDLEY_IAR_VERSION_CHECK(major,minor,patch) (HEDLEY_IAR_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
464
+#else
465
+# define HEDLEY_IAR_VERSION_CHECK(major,minor,patch) (0)
466
+#endif
467
+
468
+#if defined(HEDLEY_TINYC_VERSION)
469
+# undef HEDLEY_TINYC_VERSION
470
+#endif
471
+#if defined(__TINYC__)
472
+# define HEDLEY_TINYC_VERSION HEDLEY_VERSION_ENCODE(__TINYC__ / 1000, (__TINYC__ / 100) % 10, __TINYC__ % 100)
473
+#endif
474
+
475
+#if defined(HEDLEY_TINYC_VERSION_CHECK)
476
+# undef HEDLEY_TINYC_VERSION_CHECK
477
+#endif
478
+#if defined(HEDLEY_TINYC_VERSION)
479
+# define HEDLEY_TINYC_VERSION_CHECK(major,minor,patch) (HEDLEY_TINYC_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
480
+#else
481
+# define HEDLEY_TINYC_VERSION_CHECK(major,minor,patch) (0)
482
+#endif
483
+
484
+#if defined(HEDLEY_DMC_VERSION)
485
+# undef HEDLEY_DMC_VERSION
486
+#endif
487
+#if defined(__DMC__)
488
+# define HEDLEY_DMC_VERSION HEDLEY_VERSION_ENCODE(__DMC__ >> 8, (__DMC__ >> 4) & 0xf, __DMC__ & 0xf)
489
+#endif
490
+
491
+#if defined(HEDLEY_DMC_VERSION_CHECK)
492
+# undef HEDLEY_DMC_VERSION_CHECK
493
+#endif
494
+#if defined(HEDLEY_DMC_VERSION)
495
+# define HEDLEY_DMC_VERSION_CHECK(major,minor,patch) (HEDLEY_DMC_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
496
+#else
497
+# define HEDLEY_DMC_VERSION_CHECK(major,minor,patch) (0)
498
+#endif
499
+
500
+#if defined(HEDLEY_COMPCERT_VERSION)
501
+# undef HEDLEY_COMPCERT_VERSION
502
+#endif
503
+#if defined(__COMPCERT_VERSION__)
504
+# define HEDLEY_COMPCERT_VERSION HEDLEY_VERSION_ENCODE(__COMPCERT_VERSION__ / 10000, (__COMPCERT_VERSION__ / 100) % 100, __COMPCERT_VERSION__ % 100)
505
+#endif
506
+
507
+#if defined(HEDLEY_COMPCERT_VERSION_CHECK)
508
+# undef HEDLEY_COMPCERT_VERSION_CHECK
509
+#endif
510
+#if defined(HEDLEY_COMPCERT_VERSION)
511
+# define HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (HEDLEY_COMPCERT_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
512
+#else
513
+# define HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (0)
514
+#endif
515
+
516
+#if defined(HEDLEY_PELLES_VERSION)
517
+# undef HEDLEY_PELLES_VERSION
518
+#endif
519
+#if defined(__POCC__)
520
+# define HEDLEY_PELLES_VERSION HEDLEY_VERSION_ENCODE(__POCC__ / 100, __POCC__ % 100, 0)
521
+#endif
522
+
523
+#if defined(HEDLEY_PELLES_VERSION_CHECK)
524
+# undef HEDLEY_PELLES_VERSION_CHECK
525
+#endif
526
+#if defined(HEDLEY_PELLES_VERSION)
527
+# define HEDLEY_PELLES_VERSION_CHECK(major,minor,patch) (HEDLEY_PELLES_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
528
+#else
529
+# define HEDLEY_PELLES_VERSION_CHECK(major,minor,patch) (0)
530
+#endif
531
+
532
+#if defined(HEDLEY_MCST_LCC_VERSION)
533
+# undef HEDLEY_MCST_LCC_VERSION
534
+#endif
535
+#if defined(__LCC__) && defined(__LCC_MINOR__)
536
+# define HEDLEY_MCST_LCC_VERSION HEDLEY_VERSION_ENCODE(__LCC__ / 100, __LCC__ % 100, __LCC_MINOR__)
537
+#endif
538
+
539
+#if defined(HEDLEY_MCST_LCC_VERSION_CHECK)
540
+# undef HEDLEY_MCST_LCC_VERSION_CHECK
541
+#endif
542
+#if defined(HEDLEY_MCST_LCC_VERSION)
543
+# define HEDLEY_MCST_LCC_VERSION_CHECK(major,minor,patch) (HEDLEY_MCST_LCC_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
544
+#else
545
+# define HEDLEY_MCST_LCC_VERSION_CHECK(major,minor,patch) (0)
546
+#endif
547
+
548
+#if defined(HEDLEY_GCC_VERSION)
549
+# undef HEDLEY_GCC_VERSION
550
+#endif
551
+#if \
552
+ defined(HEDLEY_GNUC_VERSION) && \
553
+ !defined(__clang__) && \
554
+ !defined(HEDLEY_INTEL_VERSION) && \
555
+ !defined(HEDLEY_PGI_VERSION) && \
556
+ !defined(HEDLEY_ARM_VERSION) && \
557
+ !defined(HEDLEY_CRAY_VERSION) && \
558
+ !defined(HEDLEY_TI_VERSION) && \
559
+ !defined(HEDLEY_TI_ARMCL_VERSION) && \
560
+ !defined(HEDLEY_TI_CL430_VERSION) && \
561
+ !defined(HEDLEY_TI_CL2000_VERSION) && \
562
+ !defined(HEDLEY_TI_CL6X_VERSION) && \
563
+ !defined(HEDLEY_TI_CL7X_VERSION) && \
564
+ !defined(HEDLEY_TI_CLPRU_VERSION) && \
565
+ !defined(__COMPCERT__) && \
566
+ !defined(HEDLEY_MCST_LCC_VERSION)
567
+# define HEDLEY_GCC_VERSION HEDLEY_GNUC_VERSION
568
+#endif
569
+
570
+#if defined(HEDLEY_GCC_VERSION_CHECK)
571
+# undef HEDLEY_GCC_VERSION_CHECK
572
+#endif
573
+#if defined(HEDLEY_GCC_VERSION)
574
+# define HEDLEY_GCC_VERSION_CHECK(major,minor,patch) (HEDLEY_GCC_VERSION >= HEDLEY_VERSION_ENCODE(major, minor, patch))
575
+#else
576
+# define HEDLEY_GCC_VERSION_CHECK(major,minor,patch) (0)
577
+#endif
578
+
579
+#if defined(HEDLEY_HAS_ATTRIBUTE)
580
+# undef HEDLEY_HAS_ATTRIBUTE
581
+#endif
582
+#if \
583
+ defined(__has_attribute) && \
584
+ ( \
585
+ (!defined(HEDLEY_IAR_VERSION) || HEDLEY_IAR_VERSION_CHECK(8,5,9)) \
586
+ )
587
+# define HEDLEY_HAS_ATTRIBUTE(attribute) __has_attribute(attribute)
588
+#else
589
+# define HEDLEY_HAS_ATTRIBUTE(attribute) (0)
590
+#endif
591
+
592
+#if defined(HEDLEY_GNUC_HAS_ATTRIBUTE)
593
+# undef HEDLEY_GNUC_HAS_ATTRIBUTE
594
+#endif
595
+#if defined(__has_attribute)
596
+# define HEDLEY_GNUC_HAS_ATTRIBUTE(attribute,major,minor,patch) HEDLEY_HAS_ATTRIBUTE(attribute)
597
+#else
598
+# define HEDLEY_GNUC_HAS_ATTRIBUTE(attribute,major,minor,patch) HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
599
+#endif
600
+
601
+#if defined(HEDLEY_GCC_HAS_ATTRIBUTE)
602
+# undef HEDLEY_GCC_HAS_ATTRIBUTE
603
+#endif
604
+#if defined(__has_attribute)
605
+# define HEDLEY_GCC_HAS_ATTRIBUTE(attribute,major,minor,patch) HEDLEY_HAS_ATTRIBUTE(attribute)
606
+#else
607
+# define HEDLEY_GCC_HAS_ATTRIBUTE(attribute,major,minor,patch) HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
608
+#endif
609
+
610
+#if defined(HEDLEY_HAS_CPP_ATTRIBUTE)
611
+# undef HEDLEY_HAS_CPP_ATTRIBUTE
612
+#endif
613
+#if \
614
+ defined(__has_cpp_attribute) && \
615
+ defined(__cplusplus) && \
616
+ (!defined(HEDLEY_SUNPRO_VERSION) || HEDLEY_SUNPRO_VERSION_CHECK(5,15,0))
617
+# define HEDLEY_HAS_CPP_ATTRIBUTE(attribute) __has_cpp_attribute(attribute)
618
+#else
619
+# define HEDLEY_HAS_CPP_ATTRIBUTE(attribute) (0)
620
+#endif
621
+
622
+#if defined(HEDLEY_HAS_CPP_ATTRIBUTE_NS)
623
+# undef HEDLEY_HAS_CPP_ATTRIBUTE_NS
624
+#endif
625
+#if !defined(__cplusplus) || !defined(__has_cpp_attribute)
626
+# define HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) (0)
627
+#elif \
628
+ !defined(HEDLEY_PGI_VERSION) && \
629
+ !defined(HEDLEY_IAR_VERSION) && \
630
+ (!defined(HEDLEY_SUNPRO_VERSION) || HEDLEY_SUNPRO_VERSION_CHECK(5,15,0)) && \
631
+ (!defined(HEDLEY_MSVC_VERSION) || HEDLEY_MSVC_VERSION_CHECK(19,20,0))
632
+# define HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) HEDLEY_HAS_CPP_ATTRIBUTE(ns::attribute)
633
+#else
634
+# define HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) (0)
635
+#endif
636
+
637
+#if defined(HEDLEY_GNUC_HAS_CPP_ATTRIBUTE)
638
+# undef HEDLEY_GNUC_HAS_CPP_ATTRIBUTE
639
+#endif
640
+#if defined(__has_cpp_attribute) && defined(__cplusplus)
641
+# define HEDLEY_GNUC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) __has_cpp_attribute(attribute)
642
+#else
643
+# define HEDLEY_GNUC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
644
+#endif
645
+
646
+#if defined(HEDLEY_GCC_HAS_CPP_ATTRIBUTE)
647
+# undef HEDLEY_GCC_HAS_CPP_ATTRIBUTE
648
+#endif
649
+#if defined(__has_cpp_attribute) && defined(__cplusplus)
650
+# define HEDLEY_GCC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) __has_cpp_attribute(attribute)
651
+#else
652
+# define HEDLEY_GCC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
653
+#endif
654
+
655
+#if defined(HEDLEY_HAS_BUILTIN)
656
+# undef HEDLEY_HAS_BUILTIN
657
+#endif
658
+#if defined(__has_builtin)
659
+# define HEDLEY_HAS_BUILTIN(builtin) __has_builtin(builtin)
660
+#else
661
+# define HEDLEY_HAS_BUILTIN(builtin) (0)
662
+#endif
663
+
664
+#if defined(HEDLEY_GNUC_HAS_BUILTIN)
665
+# undef HEDLEY_GNUC_HAS_BUILTIN
666
+#endif
667
+#if defined(__has_builtin)
668
+# define HEDLEY_GNUC_HAS_BUILTIN(builtin,major,minor,patch) __has_builtin(builtin)
669
+#else
670
+# define HEDLEY_GNUC_HAS_BUILTIN(builtin,major,minor,patch) HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
671
+#endif
672
+
673
+#if defined(HEDLEY_GCC_HAS_BUILTIN)
674
+# undef HEDLEY_GCC_HAS_BUILTIN
675
+#endif
676
+#if defined(__has_builtin)
677
+# define HEDLEY_GCC_HAS_BUILTIN(builtin,major,minor,patch) __has_builtin(builtin)
678
+#else
679
+# define HEDLEY_GCC_HAS_BUILTIN(builtin,major,minor,patch) HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
680
+#endif
681
+
682
+#if defined(HEDLEY_HAS_FEATURE)
683
+# undef HEDLEY_HAS_FEATURE
684
+#endif
685
+#if defined(__has_feature)
686
+# define HEDLEY_HAS_FEATURE(feature) __has_feature(feature)
687
+#else
688
+# define HEDLEY_HAS_FEATURE(feature) (0)
689
+#endif
690
+
691
+#if defined(HEDLEY_GNUC_HAS_FEATURE)
692
+# undef HEDLEY_GNUC_HAS_FEATURE
693
+#endif
694
+#if defined(__has_feature)
695
+# define HEDLEY_GNUC_HAS_FEATURE(feature,major,minor,patch) __has_feature(feature)
696
+#else
697
+# define HEDLEY_GNUC_HAS_FEATURE(feature,major,minor,patch) HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
698
+#endif
699
+
700
+#if defined(HEDLEY_GCC_HAS_FEATURE)
701
+# undef HEDLEY_GCC_HAS_FEATURE
702
+#endif
703
+#if defined(__has_feature)
704
+# define HEDLEY_GCC_HAS_FEATURE(feature,major,minor,patch) __has_feature(feature)
705
+#else
706
+# define HEDLEY_GCC_HAS_FEATURE(feature,major,minor,patch) HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
707
+#endif
708
+
709
+#if defined(HEDLEY_HAS_EXTENSION)
710
+# undef HEDLEY_HAS_EXTENSION
711
+#endif
712
+#if defined(__has_extension)
713
+# define HEDLEY_HAS_EXTENSION(extension) __has_extension(extension)
714
+#else
715
+# define HEDLEY_HAS_EXTENSION(extension) (0)
716
+#endif
717
+
718
+#if defined(HEDLEY_GNUC_HAS_EXTENSION)
719
+# undef HEDLEY_GNUC_HAS_EXTENSION
720
+#endif
721
+#if defined(__has_extension)
722
+# define HEDLEY_GNUC_HAS_EXTENSION(extension,major,minor,patch) __has_extension(extension)
723
+#else
724
+# define HEDLEY_GNUC_HAS_EXTENSION(extension,major,minor,patch) HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
725
+#endif
726
+
727
+#if defined(HEDLEY_GCC_HAS_EXTENSION)
728
+# undef HEDLEY_GCC_HAS_EXTENSION
729
+#endif
730
+#if defined(__has_extension)
731
+# define HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) __has_extension(extension)
732
+#else
733
+# define HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
734
+#endif
735
+
736
+#if defined(HEDLEY_HAS_DECLSPEC_ATTRIBUTE)
737
+# undef HEDLEY_HAS_DECLSPEC_ATTRIBUTE
738
+#endif
739
+#if defined(__has_declspec_attribute)
740
+# define HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) __has_declspec_attribute(attribute)
741
+#else
742
+# define HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) (0)
743
+#endif
744
+
745
+#if defined(HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE)
746
+# undef HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE
747
+#endif
748
+#if defined(__has_declspec_attribute)
749
+# define HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) __has_declspec_attribute(attribute)
750
+#else
751
+# define HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
752
+#endif
753
+
754
+#if defined(HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE)
755
+# undef HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE
756
+#endif
757
+#if defined(__has_declspec_attribute)
758
+# define HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) __has_declspec_attribute(attribute)
759
+#else
760
+# define HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
761
+#endif
762
+
763
+#if defined(HEDLEY_HAS_WARNING)
764
+# undef HEDLEY_HAS_WARNING
765
+#endif
766
+#if defined(__has_warning)
767
+# define HEDLEY_HAS_WARNING(warning) __has_warning(warning)
768
+#else
769
+# define HEDLEY_HAS_WARNING(warning) (0)
770
+#endif
771
+
772
+#if defined(HEDLEY_GNUC_HAS_WARNING)
773
+# undef HEDLEY_GNUC_HAS_WARNING
774
+#endif
775
+#if defined(__has_warning)
776
+# define HEDLEY_GNUC_HAS_WARNING(warning,major,minor,patch) __has_warning(warning)
777
+#else
778
+# define HEDLEY_GNUC_HAS_WARNING(warning,major,minor,patch) HEDLEY_GNUC_VERSION_CHECK(major,minor,patch)
779
+#endif
780
+
781
+#if defined(HEDLEY_GCC_HAS_WARNING)
782
+# undef HEDLEY_GCC_HAS_WARNING
783
+#endif
784
+#if defined(__has_warning)
785
+# define HEDLEY_GCC_HAS_WARNING(warning,major,minor,patch) __has_warning(warning)
786
+#else
787
+# define HEDLEY_GCC_HAS_WARNING(warning,major,minor,patch) HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
788
+#endif
789
+
790
+#if \
791
+ (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \
792
+ defined(__clang__) || \
793
+ HEDLEY_GCC_VERSION_CHECK(3,0,0) || \
794
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
795
+ HEDLEY_IAR_VERSION_CHECK(8,0,0) || \
796
+ HEDLEY_PGI_VERSION_CHECK(18,4,0) || \
797
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
798
+ HEDLEY_TI_VERSION_CHECK(15,12,0) || \
799
+ HEDLEY_TI_ARMCL_VERSION_CHECK(4,7,0) || \
800
+ HEDLEY_TI_CL430_VERSION_CHECK(2,0,1) || \
801
+ HEDLEY_TI_CL2000_VERSION_CHECK(6,1,0) || \
802
+ HEDLEY_TI_CL6X_VERSION_CHECK(7,0,0) || \
803
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
804
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
805
+ HEDLEY_CRAY_VERSION_CHECK(5,0,0) || \
806
+ HEDLEY_TINYC_VERSION_CHECK(0,9,17) || \
807
+ HEDLEY_SUNPRO_VERSION_CHECK(8,0,0) || \
808
+ (HEDLEY_IBM_VERSION_CHECK(10,1,0) && defined(__C99_PRAGMA_OPERATOR))
809
+# define HEDLEY_PRAGMA(value) _Pragma(#value)
810
+#elif HEDLEY_MSVC_VERSION_CHECK(15,0,0)
811
+# define HEDLEY_PRAGMA(value) __pragma(value)
812
+#else
813
+# define HEDLEY_PRAGMA(value)
814
+#endif
815
+
816
+#if defined(HEDLEY_DIAGNOSTIC_PUSH)
817
+# undef HEDLEY_DIAGNOSTIC_PUSH
818
+#endif
819
+#if defined(HEDLEY_DIAGNOSTIC_POP)
820
+# undef HEDLEY_DIAGNOSTIC_POP
821
+#endif
822
+#if defined(__clang__)
823
+# define HEDLEY_DIAGNOSTIC_PUSH _Pragma("clang diagnostic push")
824
+# define HEDLEY_DIAGNOSTIC_POP _Pragma("clang diagnostic pop")
825
+#elif HEDLEY_INTEL_VERSION_CHECK(13,0,0)
826
+# define HEDLEY_DIAGNOSTIC_PUSH _Pragma("warning(push)")
827
+# define HEDLEY_DIAGNOSTIC_POP _Pragma("warning(pop)")
828
+#elif HEDLEY_GCC_VERSION_CHECK(4,6,0)
829
+# define HEDLEY_DIAGNOSTIC_PUSH _Pragma("GCC diagnostic push")
830
+# define HEDLEY_DIAGNOSTIC_POP _Pragma("GCC diagnostic pop")
831
+#elif \
832
+ HEDLEY_MSVC_VERSION_CHECK(15,0,0) || \
833
+ HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
834
+# define HEDLEY_DIAGNOSTIC_PUSH __pragma(warning(push))
835
+# define HEDLEY_DIAGNOSTIC_POP __pragma(warning(pop))
836
+#elif HEDLEY_ARM_VERSION_CHECK(5,6,0)
837
+# define HEDLEY_DIAGNOSTIC_PUSH _Pragma("push")
838
+# define HEDLEY_DIAGNOSTIC_POP _Pragma("pop")
839
+#elif \
840
+ HEDLEY_TI_VERSION_CHECK(15,12,0) || \
841
+ HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
842
+ HEDLEY_TI_CL430_VERSION_CHECK(4,4,0) || \
843
+ HEDLEY_TI_CL6X_VERSION_CHECK(8,1,0) || \
844
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
845
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0)
846
+# define HEDLEY_DIAGNOSTIC_PUSH _Pragma("diag_push")
847
+# define HEDLEY_DIAGNOSTIC_POP _Pragma("diag_pop")
848
+#elif HEDLEY_PELLES_VERSION_CHECK(2,90,0)
849
+# define HEDLEY_DIAGNOSTIC_PUSH _Pragma("warning(push)")
850
+# define HEDLEY_DIAGNOSTIC_POP _Pragma("warning(pop)")
851
+#else
852
+# define HEDLEY_DIAGNOSTIC_PUSH
853
+# define HEDLEY_DIAGNOSTIC_POP
854
+#endif
855
+
856
+/* HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_ is for
857
+ HEDLEY INTERNAL USE ONLY. API subject to change without notice. */
858
+#if defined(HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_)
859
+# undef HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_
860
+#endif
861
+#if defined(__cplusplus)
862
+# if HEDLEY_HAS_WARNING("-Wc++98-compat")
863
+# if HEDLEY_HAS_WARNING("-Wc++17-extensions")
864
+# if HEDLEY_HAS_WARNING("-Wc++1z-extensions")
865
+# define HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \
866
+ HEDLEY_DIAGNOSTIC_PUSH \
867
+ _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \
868
+ _Pragma("clang diagnostic ignored \"-Wc++17-extensions\"") \
869
+ _Pragma("clang diagnostic ignored \"-Wc++1z-extensions\"") \
870
+ xpr \
871
+ HEDLEY_DIAGNOSTIC_POP
872
+# else
873
+# define HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \
874
+ HEDLEY_DIAGNOSTIC_PUSH \
875
+ _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \
876
+ _Pragma("clang diagnostic ignored \"-Wc++17-extensions\"") \
877
+ xpr \
878
+ HEDLEY_DIAGNOSTIC_POP
879
+# endif
880
+# else
881
+# define HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \
882
+ HEDLEY_DIAGNOSTIC_PUSH \
883
+ _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \
884
+ xpr \
885
+ HEDLEY_DIAGNOSTIC_POP
886
+# endif
887
+# endif
888
+#endif
889
+#if !defined(HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_)
890
+# define HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(x) x
891
+#endif
892
+
893
+#if defined(HEDLEY_CONST_CAST)
894
+# undef HEDLEY_CONST_CAST
895
+#endif
896
+#if defined(__cplusplus)
897
+# define HEDLEY_CONST_CAST(T, expr) (const_cast<T>(expr))
898
+#elif \
899
+ HEDLEY_HAS_WARNING("-Wcast-qual") || \
900
+ HEDLEY_GCC_VERSION_CHECK(4,6,0) || \
901
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0)
902
+# define HEDLEY_CONST_CAST(T, expr) (__extension__ ({ \
903
+ HEDLEY_DIAGNOSTIC_PUSH \
904
+ HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL \
905
+ ((T) (expr)); \
906
+ HEDLEY_DIAGNOSTIC_POP \
907
+ }))
908
+#else
909
+# define HEDLEY_CONST_CAST(T, expr) ((T) (expr))
910
+#endif
911
+
912
+#if defined(HEDLEY_REINTERPRET_CAST)
913
+# undef HEDLEY_REINTERPRET_CAST
914
+#endif
915
+#if defined(__cplusplus)
916
+# define HEDLEY_REINTERPRET_CAST(T, expr) (reinterpret_cast<T>(expr))
917
+#else
918
+# define HEDLEY_REINTERPRET_CAST(T, expr) ((T) (expr))
919
+#endif
920
+
921
+#if defined(HEDLEY_STATIC_CAST)
922
+# undef HEDLEY_STATIC_CAST
923
+#endif
924
+#if defined(__cplusplus)
925
+# define HEDLEY_STATIC_CAST(T, expr) (static_cast<T>(expr))
926
+#else
927
+# define HEDLEY_STATIC_CAST(T, expr) ((T) (expr))
928
+#endif
929
+
930
+#if defined(HEDLEY_CPP_CAST)
931
+# undef HEDLEY_CPP_CAST
932
+#endif
933
+#if defined(__cplusplus)
934
+# if HEDLEY_HAS_WARNING("-Wold-style-cast")
935
+# define HEDLEY_CPP_CAST(T, expr) \
936
+ HEDLEY_DIAGNOSTIC_PUSH \
937
+ _Pragma("clang diagnostic ignored \"-Wold-style-cast\"") \
938
+ ((T) (expr)) \
939
+ HEDLEY_DIAGNOSTIC_POP
940
+# elif HEDLEY_IAR_VERSION_CHECK(8,3,0)
941
+# define HEDLEY_CPP_CAST(T, expr) \
942
+ HEDLEY_DIAGNOSTIC_PUSH \
943
+ _Pragma("diag_suppress=Pe137") \
944
+ HEDLEY_DIAGNOSTIC_POP
945
+# else
946
+# define HEDLEY_CPP_CAST(T, expr) ((T) (expr))
947
+# endif
948
+#else
949
+# define HEDLEY_CPP_CAST(T, expr) (expr)
950
+#endif
951
+
952
+#if defined(HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED)
953
+# undef HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
954
+#endif
955
+#if HEDLEY_HAS_WARNING("-Wdeprecated-declarations")
956
+# define HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
957
+#elif HEDLEY_INTEL_VERSION_CHECK(13,0,0)
958
+# define HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("warning(disable:1478 1786)")
959
+#elif HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
960
+# define HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED __pragma(warning(disable:1478 1786))
961
+#elif HEDLEY_PGI_VERSION_CHECK(20,7,0)
962
+# define HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1216,1444,1445")
963
+#elif HEDLEY_PGI_VERSION_CHECK(17,10,0)
964
+# define HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1444")
965
+#elif HEDLEY_GCC_VERSION_CHECK(4,3,0)
966
+# define HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
967
+#elif HEDLEY_MSVC_VERSION_CHECK(15,0,0)
968
+# define HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED __pragma(warning(disable:4996))
969
+#elif HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
970
+# define HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1444")
971
+#elif \
972
+ HEDLEY_TI_VERSION_CHECK(15,12,0) || \
973
+ (HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
974
+ HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
975
+ (HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
976
+ HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
977
+ (HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
978
+ HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
979
+ (HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
980
+ HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
981
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
982
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0)
983
+# define HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1291,1718")
984
+#elif HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) && !defined(__cplusplus)
985
+# define HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("error_messages(off,E_DEPRECATED_ATT,E_DEPRECATED_ATT_MESS)")
986
+#elif HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) && defined(__cplusplus)
987
+# define HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("error_messages(off,symdeprecated,symdeprecated2)")
988
+#elif HEDLEY_IAR_VERSION_CHECK(8,0,0)
989
+# define HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress=Pe1444,Pe1215")
990
+#elif HEDLEY_PELLES_VERSION_CHECK(2,90,0)
991
+# define HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("warn(disable:2241)")
992
+#else
993
+# define HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
994
+#endif
995
+
996
+#if defined(HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS)
997
+# undef HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS
998
+#endif
999
+#if HEDLEY_HAS_WARNING("-Wunknown-pragmas")
1000
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("clang diagnostic ignored \"-Wunknown-pragmas\"")
1001
+#elif HEDLEY_INTEL_VERSION_CHECK(13,0,0)
1002
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("warning(disable:161)")
1003
+#elif HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
1004
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS __pragma(warning(disable:161))
1005
+#elif HEDLEY_PGI_VERSION_CHECK(17,10,0)
1006
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 1675")
1007
+#elif HEDLEY_GCC_VERSION_CHECK(4,3,0)
1008
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("GCC diagnostic ignored \"-Wunknown-pragmas\"")
1009
+#elif HEDLEY_MSVC_VERSION_CHECK(15,0,0)
1010
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS __pragma(warning(disable:4068))
1011
+#elif \
1012
+ HEDLEY_TI_VERSION_CHECK(16,9,0) || \
1013
+ HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0) || \
1014
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
1015
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,3,0)
1016
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 163")
1017
+#elif HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0)
1018
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 163")
1019
+#elif HEDLEY_IAR_VERSION_CHECK(8,0,0)
1020
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress=Pe161")
1021
+#elif HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1022
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 161")
1023
+#else
1024
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS
1025
+#endif
1026
+
1027
+#if defined(HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES)
1028
+# undef HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES
1029
+#endif
1030
+#if HEDLEY_HAS_WARNING("-Wunknown-attributes")
1031
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("clang diagnostic ignored \"-Wunknown-attributes\"")
1032
+#elif HEDLEY_GCC_VERSION_CHECK(4,6,0)
1033
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
1034
+#elif HEDLEY_INTEL_VERSION_CHECK(17,0,0)
1035
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("warning(disable:1292)")
1036
+#elif HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
1037
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES __pragma(warning(disable:1292))
1038
+#elif HEDLEY_MSVC_VERSION_CHECK(19,0,0)
1039
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES __pragma(warning(disable:5030))
1040
+#elif HEDLEY_PGI_VERSION_CHECK(20,7,0)
1041
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097,1098")
1042
+#elif HEDLEY_PGI_VERSION_CHECK(17,10,0)
1043
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097")
1044
+#elif HEDLEY_SUNPRO_VERSION_CHECK(5,14,0) && defined(__cplusplus)
1045
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("error_messages(off,attrskipunsup)")
1046
+#elif \
1047
+ HEDLEY_TI_VERSION_CHECK(18,1,0) || \
1048
+ HEDLEY_TI_CL6X_VERSION_CHECK(8,3,0) || \
1049
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0)
1050
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1173")
1051
+#elif HEDLEY_IAR_VERSION_CHECK(8,0,0)
1052
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress=Pe1097")
1053
+#elif HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1054
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097")
1055
+#else
1056
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES
1057
+#endif
1058
+
1059
+#if defined(HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL)
1060
+# undef HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL
1061
+#endif
1062
+#if HEDLEY_HAS_WARNING("-Wcast-qual")
1063
+# define HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("clang diagnostic ignored \"-Wcast-qual\"")
1064
+#elif HEDLEY_INTEL_VERSION_CHECK(13,0,0)
1065
+# define HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("warning(disable:2203 2331)")
1066
+#elif HEDLEY_GCC_VERSION_CHECK(3,0,0)
1067
+# define HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("GCC diagnostic ignored \"-Wcast-qual\"")
1068
+#else
1069
+# define HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL
1070
+#endif
1071
+
1072
+#if defined(HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION)
1073
+# undef HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION
1074
+#endif
1075
+#if HEDLEY_HAS_WARNING("-Wunused-function")
1076
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("clang diagnostic ignored \"-Wunused-function\"")
1077
+#elif HEDLEY_GCC_VERSION_CHECK(3,4,0)
1078
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("GCC diagnostic ignored \"-Wunused-function\"")
1079
+#elif HEDLEY_MSVC_VERSION_CHECK(1,0,0)
1080
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION __pragma(warning(disable:4505))
1081
+#elif HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1082
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION _Pragma("diag_suppress 3142")
1083
+#else
1084
+# define HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION
1085
+#endif
1086
+
1087
+#if defined(HEDLEY_DEPRECATED)
1088
+# undef HEDLEY_DEPRECATED
1089
+#endif
1090
+#if defined(HEDLEY_DEPRECATED_FOR)
1091
+# undef HEDLEY_DEPRECATED_FOR
1092
+#endif
1093
+#if \
1094
+ HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \
1095
+ HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
1096
+# define HEDLEY_DEPRECATED(since) __declspec(deprecated("Since " # since))
1097
+# define HEDLEY_DEPRECATED_FOR(since, replacement) __declspec(deprecated("Since " #since "; use " #replacement))
1098
+#elif \
1099
+ (HEDLEY_HAS_EXTENSION(attribute_deprecated_with_message) && !defined(HEDLEY_IAR_VERSION)) || \
1100
+ HEDLEY_GCC_VERSION_CHECK(4,5,0) || \
1101
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1102
+ HEDLEY_ARM_VERSION_CHECK(5,6,0) || \
1103
+ HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) || \
1104
+ HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
1105
+ HEDLEY_TI_VERSION_CHECK(18,1,0) || \
1106
+ HEDLEY_TI_ARMCL_VERSION_CHECK(18,1,0) || \
1107
+ HEDLEY_TI_CL6X_VERSION_CHECK(8,3,0) || \
1108
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
1109
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,3,0) || \
1110
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1111
+# define HEDLEY_DEPRECATED(since) __attribute__((__deprecated__("Since " #since)))
1112
+# define HEDLEY_DEPRECATED_FOR(since, replacement) __attribute__((__deprecated__("Since " #since "; use " #replacement)))
1113
+#elif defined(__cplusplus) && (__cplusplus >= 201402L)
1114
+# define HEDLEY_DEPRECATED(since) HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[deprecated("Since " #since)]])
1115
+# define HEDLEY_DEPRECATED_FOR(since, replacement) HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[deprecated("Since " #since "; use " #replacement)]])
1116
+#elif \
1117
+ HEDLEY_HAS_ATTRIBUTE(deprecated) || \
1118
+ HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
1119
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
1120
+ HEDLEY_TI_VERSION_CHECK(15,12,0) || \
1121
+ (HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1122
+ HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
1123
+ (HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1124
+ HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
1125
+ (HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1126
+ HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
1127
+ (HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1128
+ HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
1129
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
1130
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
1131
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \
1132
+ HEDLEY_IAR_VERSION_CHECK(8,10,0)
1133
+# define HEDLEY_DEPRECATED(since) __attribute__((__deprecated__))
1134
+# define HEDLEY_DEPRECATED_FOR(since, replacement) __attribute__((__deprecated__))
1135
+#elif \
1136
+ HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
1137
+ HEDLEY_PELLES_VERSION_CHECK(6,50,0) || \
1138
+ HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
1139
+# define HEDLEY_DEPRECATED(since) __declspec(deprecated)
1140
+# define HEDLEY_DEPRECATED_FOR(since, replacement) __declspec(deprecated)
1141
+#elif HEDLEY_IAR_VERSION_CHECK(8,0,0)
1142
+# define HEDLEY_DEPRECATED(since) _Pragma("deprecated")
1143
+# define HEDLEY_DEPRECATED_FOR(since, replacement) _Pragma("deprecated")
1144
+#else
1145
+# define HEDLEY_DEPRECATED(since)
1146
+# define HEDLEY_DEPRECATED_FOR(since, replacement)
1147
+#endif
1148
+
1149
+#if defined(HEDLEY_UNAVAILABLE)
1150
+# undef HEDLEY_UNAVAILABLE
1151
+#endif
1152
+#if \
1153
+ HEDLEY_HAS_ATTRIBUTE(warning) || \
1154
+ HEDLEY_GCC_VERSION_CHECK(4,3,0) || \
1155
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1156
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1157
+# define HEDLEY_UNAVAILABLE(available_since) __attribute__((__warning__("Not available until " #available_since)))
1158
+#else
1159
+# define HEDLEY_UNAVAILABLE(available_since)
1160
+#endif
1161
+
1162
+#if defined(HEDLEY_WARN_UNUSED_RESULT)
1163
+# undef HEDLEY_WARN_UNUSED_RESULT
1164
+#endif
1165
+#if defined(HEDLEY_WARN_UNUSED_RESULT_MSG)
1166
+# undef HEDLEY_WARN_UNUSED_RESULT_MSG
1167
+#endif
1168
+#if \
1169
+ HEDLEY_HAS_ATTRIBUTE(warn_unused_result) || \
1170
+ HEDLEY_GCC_VERSION_CHECK(3,4,0) || \
1171
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1172
+ HEDLEY_TI_VERSION_CHECK(15,12,0) || \
1173
+ (HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1174
+ HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
1175
+ (HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1176
+ HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
1177
+ (HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1178
+ HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
1179
+ (HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1180
+ HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
1181
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
1182
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
1183
+ (HEDLEY_SUNPRO_VERSION_CHECK(5,15,0) && defined(__cplusplus)) || \
1184
+ HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
1185
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1186
+# define HEDLEY_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))
1187
+# define HEDLEY_WARN_UNUSED_RESULT_MSG(msg) __attribute__((__warn_unused_result__))
1188
+#elif (HEDLEY_HAS_CPP_ATTRIBUTE(nodiscard) >= 201907L)
1189
+# define HEDLEY_WARN_UNUSED_RESULT HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]])
1190
+# define HEDLEY_WARN_UNUSED_RESULT_MSG(msg) HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard(msg)]])
1191
+#elif HEDLEY_HAS_CPP_ATTRIBUTE(nodiscard)
1192
+# define HEDLEY_WARN_UNUSED_RESULT HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]])
1193
+# define HEDLEY_WARN_UNUSED_RESULT_MSG(msg) HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]])
1194
+#elif defined(_Check_return_) /* SAL */
1195
+# define HEDLEY_WARN_UNUSED_RESULT _Check_return_
1196
+# define HEDLEY_WARN_UNUSED_RESULT_MSG(msg) _Check_return_
1197
+#else
1198
+# define HEDLEY_WARN_UNUSED_RESULT
1199
+# define HEDLEY_WARN_UNUSED_RESULT_MSG(msg)
1200
+#endif
1201
+
1202
+#if defined(HEDLEY_SENTINEL)
1203
+# undef HEDLEY_SENTINEL
1204
+#endif
1205
+#if \
1206
+ HEDLEY_HAS_ATTRIBUTE(sentinel) || \
1207
+ HEDLEY_GCC_VERSION_CHECK(4,0,0) || \
1208
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1209
+ HEDLEY_ARM_VERSION_CHECK(5,4,0) || \
1210
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1211
+# define HEDLEY_SENTINEL(position) __attribute__((__sentinel__(position)))
1212
+#else
1213
+# define HEDLEY_SENTINEL(position)
1214
+#endif
1215
+
1216
+#if defined(HEDLEY_NO_RETURN)
1217
+# undef HEDLEY_NO_RETURN
1218
+#endif
1219
+#if HEDLEY_IAR_VERSION_CHECK(8,0,0)
1220
+# define HEDLEY_NO_RETURN __noreturn
1221
+#elif \
1222
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1223
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1224
+# define HEDLEY_NO_RETURN __attribute__((__noreturn__))
1225
+#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
1226
+# define HEDLEY_NO_RETURN _Noreturn
1227
+#elif defined(__cplusplus) && (__cplusplus >= 201103L)
1228
+# define HEDLEY_NO_RETURN HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[noreturn]])
1229
+#elif \
1230
+ HEDLEY_HAS_ATTRIBUTE(noreturn) || \
1231
+ HEDLEY_GCC_VERSION_CHECK(3,2,0) || \
1232
+ HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
1233
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
1234
+ HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
1235
+ HEDLEY_TI_VERSION_CHECK(15,12,0) || \
1236
+ (HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1237
+ HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
1238
+ (HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1239
+ HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
1240
+ (HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1241
+ HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
1242
+ (HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1243
+ HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
1244
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
1245
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
1246
+ HEDLEY_IAR_VERSION_CHECK(8,10,0)
1247
+# define HEDLEY_NO_RETURN __attribute__((__noreturn__))
1248
+#elif HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
1249
+# define HEDLEY_NO_RETURN _Pragma("does_not_return")
1250
+#elif \
1251
+ HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
1252
+ HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
1253
+# define HEDLEY_NO_RETURN __declspec(noreturn)
1254
+#elif HEDLEY_TI_CL6X_VERSION_CHECK(6,0,0) && defined(__cplusplus)
1255
+# define HEDLEY_NO_RETURN _Pragma("FUNC_NEVER_RETURNS;")
1256
+#elif HEDLEY_COMPCERT_VERSION_CHECK(3,2,0)
1257
+# define HEDLEY_NO_RETURN __attribute((noreturn))
1258
+#elif HEDLEY_PELLES_VERSION_CHECK(9,0,0)
1259
+# define HEDLEY_NO_RETURN __declspec(noreturn)
1260
+#else
1261
+# define HEDLEY_NO_RETURN
1262
+#endif
1263
+
1264
+#if defined(HEDLEY_NO_ESCAPE)
1265
+# undef HEDLEY_NO_ESCAPE
1266
+#endif
1267
+#if HEDLEY_HAS_ATTRIBUTE(noescape)
1268
+# define HEDLEY_NO_ESCAPE __attribute__((__noescape__))
1269
+#else
1270
+# define HEDLEY_NO_ESCAPE
1271
+#endif
1272
+
1273
+#if defined(HEDLEY_UNREACHABLE)
1274
+# undef HEDLEY_UNREACHABLE
1275
+#endif
1276
+#if defined(HEDLEY_UNREACHABLE_RETURN)
1277
+# undef HEDLEY_UNREACHABLE_RETURN
1278
+#endif
1279
+#if defined(HEDLEY_ASSUME)
1280
+# undef HEDLEY_ASSUME
1281
+#endif
1282
+#if \
1283
+ HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
1284
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1285
+ HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
1286
+# define HEDLEY_ASSUME(expr) __assume(expr)
1287
+#elif HEDLEY_HAS_BUILTIN(__builtin_assume)
1288
+# define HEDLEY_ASSUME(expr) __builtin_assume(expr)
1289
+#elif \
1290
+ HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \
1291
+ HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0)
1292
+# if defined(__cplusplus)
1293
+# define HEDLEY_ASSUME(expr) std::_nassert(expr)
1294
+# else
1295
+# define HEDLEY_ASSUME(expr) _nassert(expr)
1296
+# endif
1297
+#endif
1298
+#if \
1299
+ (HEDLEY_HAS_BUILTIN(__builtin_unreachable) && (!defined(HEDLEY_ARM_VERSION))) || \
1300
+ HEDLEY_GCC_VERSION_CHECK(4,5,0) || \
1301
+ HEDLEY_PGI_VERSION_CHECK(18,10,0) || \
1302
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1303
+ HEDLEY_IBM_VERSION_CHECK(13,1,5) || \
1304
+ HEDLEY_CRAY_VERSION_CHECK(10,0,0) || \
1305
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1306
+# define HEDLEY_UNREACHABLE() __builtin_unreachable()
1307
+#elif defined(HEDLEY_ASSUME)
1308
+# define HEDLEY_UNREACHABLE() HEDLEY_ASSUME(0)
1309
+#endif
1310
+#if !defined(HEDLEY_ASSUME)
1311
+# if defined(HEDLEY_UNREACHABLE)
1312
+# define HEDLEY_ASSUME(expr) HEDLEY_STATIC_CAST(void, ((expr) ? 1 : (HEDLEY_UNREACHABLE(), 1)))
1313
+# else
1314
+# define HEDLEY_ASSUME(expr) HEDLEY_STATIC_CAST(void, expr)
1315
+# endif
1316
+#endif
1317
+#if defined(HEDLEY_UNREACHABLE)
1318
+# if \
1319
+ HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \
1320
+ HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0)
1321
+# define HEDLEY_UNREACHABLE_RETURN(value) return (HEDLEY_STATIC_CAST(void, HEDLEY_ASSUME(0)), (value))
1322
+# else
1323
+# define HEDLEY_UNREACHABLE_RETURN(value) HEDLEY_UNREACHABLE()
1324
+# endif
1325
+#else
1326
+# define HEDLEY_UNREACHABLE_RETURN(value) return (value)
1327
+#endif
1328
+#if !defined(HEDLEY_UNREACHABLE)
1329
+# define HEDLEY_UNREACHABLE() HEDLEY_ASSUME(0)
1330
+#endif
1331
+
1332
+HEDLEY_DIAGNOSTIC_PUSH
1333
+#if HEDLEY_HAS_WARNING("-Wpedantic")
1334
+# pragma clang diagnostic ignored "-Wpedantic"
1335
+#endif
1336
+#if HEDLEY_HAS_WARNING("-Wc++98-compat-pedantic") && defined(__cplusplus)
1337
+# pragma clang diagnostic ignored "-Wc++98-compat-pedantic"
1338
+#endif
1339
+#if HEDLEY_GCC_HAS_WARNING("-Wvariadic-macros",4,0,0)
1340
+# if defined(__clang__)
1341
+# pragma clang diagnostic ignored "-Wvariadic-macros"
1342
+# elif defined(HEDLEY_GCC_VERSION)
1343
+# pragma GCC diagnostic ignored "-Wvariadic-macros"
1344
+# endif
1345
+#endif
1346
+#if defined(HEDLEY_NON_NULL)
1347
+# undef HEDLEY_NON_NULL
1348
+#endif
1349
+#if \
1350
+ HEDLEY_HAS_ATTRIBUTE(nonnull) || \
1351
+ HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
1352
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1353
+ HEDLEY_ARM_VERSION_CHECK(4,1,0)
1354
+# define HEDLEY_NON_NULL(...) __attribute__((__nonnull__(__VA_ARGS__)))
1355
+#else
1356
+# define HEDLEY_NON_NULL(...)
1357
+#endif
1358
+HEDLEY_DIAGNOSTIC_POP
1359
+
1360
+#if defined(HEDLEY_PRINTF_FORMAT)
1361
+# undef HEDLEY_PRINTF_FORMAT
1362
+#endif
1363
+#if defined(__MINGW32__) && HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && !defined(__USE_MINGW_ANSI_STDIO)
1364
+# define HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(ms_printf, string_idx, first_to_check)))
1365
+#elif defined(__MINGW32__) && HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && defined(__USE_MINGW_ANSI_STDIO)
1366
+# define HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(gnu_printf, string_idx, first_to_check)))
1367
+#elif \
1368
+ HEDLEY_HAS_ATTRIBUTE(format) || \
1369
+ HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
1370
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1371
+ HEDLEY_ARM_VERSION_CHECK(5,6,0) || \
1372
+ HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
1373
+ HEDLEY_TI_VERSION_CHECK(15,12,0) || \
1374
+ (HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1375
+ HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
1376
+ (HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1377
+ HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
1378
+ (HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1379
+ HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
1380
+ (HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1381
+ HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
1382
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
1383
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
1384
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1385
+# define HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(__printf__, string_idx, first_to_check)))
1386
+#elif HEDLEY_PELLES_VERSION_CHECK(6,0,0)
1387
+# define HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __declspec(vaformat(printf,string_idx,first_to_check))
1388
+#else
1389
+# define HEDLEY_PRINTF_FORMAT(string_idx,first_to_check)
1390
+#endif
1391
+
1392
+#if defined(HEDLEY_CONSTEXPR)
1393
+# undef HEDLEY_CONSTEXPR
1394
+#endif
1395
+#if defined(__cplusplus)
1396
+# if __cplusplus >= 201103L
1397
+# define HEDLEY_CONSTEXPR HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(constexpr)
1398
+# endif
1399
+#endif
1400
+#if !defined(HEDLEY_CONSTEXPR)
1401
+# define HEDLEY_CONSTEXPR
1402
+#endif
1403
+
1404
+#if defined(HEDLEY_PREDICT)
1405
+# undef HEDLEY_PREDICT
1406
+#endif
1407
+#if defined(HEDLEY_LIKELY)
1408
+# undef HEDLEY_LIKELY
1409
+#endif
1410
+#if defined(HEDLEY_UNLIKELY)
1411
+# undef HEDLEY_UNLIKELY
1412
+#endif
1413
+#if defined(HEDLEY_UNPREDICTABLE)
1414
+# undef HEDLEY_UNPREDICTABLE
1415
+#endif
1416
+#if HEDLEY_HAS_BUILTIN(__builtin_unpredictable)
1417
+# define HEDLEY_UNPREDICTABLE(expr) __builtin_unpredictable((expr))
1418
+#endif
1419
+#if \
1420
+ (HEDLEY_HAS_BUILTIN(__builtin_expect_with_probability) && !defined(HEDLEY_PGI_VERSION) && !defined(HEDLEY_INTEL_VERSION)) || \
1421
+ HEDLEY_GCC_VERSION_CHECK(9,0,0) || \
1422
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1423
+# define HEDLEY_PREDICT(expr, value, probability) __builtin_expect_with_probability( (expr), (value), (probability))
1424
+# define HEDLEY_PREDICT_TRUE(expr, probability) __builtin_expect_with_probability(!!(expr), 1 , (probability))
1425
+# define HEDLEY_PREDICT_FALSE(expr, probability) __builtin_expect_with_probability(!!(expr), 0 , (probability))
1426
+# define HEDLEY_LIKELY(expr) __builtin_expect (!!(expr), 1 )
1427
+# define HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 )
1428
+#elif \
1429
+ (HEDLEY_HAS_BUILTIN(__builtin_expect) && !defined(HEDLEY_INTEL_CL_VERSION)) || \
1430
+ HEDLEY_GCC_VERSION_CHECK(3,0,0) || \
1431
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1432
+ (HEDLEY_SUNPRO_VERSION_CHECK(5,15,0) && defined(__cplusplus)) || \
1433
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
1434
+ HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
1435
+ HEDLEY_TI_VERSION_CHECK(15,12,0) || \
1436
+ HEDLEY_TI_ARMCL_VERSION_CHECK(4,7,0) || \
1437
+ HEDLEY_TI_CL430_VERSION_CHECK(3,1,0) || \
1438
+ HEDLEY_TI_CL2000_VERSION_CHECK(6,1,0) || \
1439
+ HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \
1440
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
1441
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
1442
+ HEDLEY_TINYC_VERSION_CHECK(0,9,27) || \
1443
+ HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \
1444
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1445
+# define HEDLEY_PREDICT(expr, expected, probability) \
1446
+ (((probability) >= 0.9) ? __builtin_expect((expr), (expected)) : (HEDLEY_STATIC_CAST(void, expected), (expr)))
1447
+# define HEDLEY_PREDICT_TRUE(expr, probability) \
1448
+ (__extension__ ({ \
1449
+ double hedley_probability_ = (probability); \
1450
+ ((hedley_probability_ >= 0.9) ? __builtin_expect(!!(expr), 1) : ((hedley_probability_ <= 0.1) ? __builtin_expect(!!(expr), 0) : !!(expr))); \
1451
+ }))
1452
+# define HEDLEY_PREDICT_FALSE(expr, probability) \
1453
+ (__extension__ ({ \
1454
+ double hedley_probability_ = (probability); \
1455
+ ((hedley_probability_ >= 0.9) ? __builtin_expect(!!(expr), 0) : ((hedley_probability_ <= 0.1) ? __builtin_expect(!!(expr), 1) : !!(expr))); \
1456
+ }))
1457
+# define HEDLEY_LIKELY(expr) __builtin_expect(!!(expr), 1)
1458
+# define HEDLEY_UNLIKELY(expr) __builtin_expect(!!(expr), 0)
1459
+#else
1460
+# define HEDLEY_PREDICT(expr, expected, probability) (HEDLEY_STATIC_CAST(void, expected), (expr))
1461
+# define HEDLEY_PREDICT_TRUE(expr, probability) (!!(expr))
1462
+# define HEDLEY_PREDICT_FALSE(expr, probability) (!!(expr))
1463
+# define HEDLEY_LIKELY(expr) (!!(expr))
1464
+# define HEDLEY_UNLIKELY(expr) (!!(expr))
1465
+#endif
1466
+#if !defined(HEDLEY_UNPREDICTABLE)
1467
+# define HEDLEY_UNPREDICTABLE(expr) HEDLEY_PREDICT(expr, 1, 0.5)
1468
+#endif
1469
+
1470
+#if defined(HEDLEY_MALLOC)
1471
+# undef HEDLEY_MALLOC
1472
+#endif
1473
+#if \
1474
+ HEDLEY_HAS_ATTRIBUTE(malloc) || \
1475
+ HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
1476
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1477
+ HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
1478
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
1479
+ HEDLEY_IBM_VERSION_CHECK(12,1,0) || \
1480
+ HEDLEY_TI_VERSION_CHECK(15,12,0) || \
1481
+ (HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1482
+ HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
1483
+ (HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1484
+ HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
1485
+ (HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1486
+ HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
1487
+ (HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1488
+ HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
1489
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
1490
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
1491
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1492
+# define HEDLEY_MALLOC __attribute__((__malloc__))
1493
+#elif HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
1494
+# define HEDLEY_MALLOC _Pragma("returns_new_memory")
1495
+#elif \
1496
+ HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \
1497
+ HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
1498
+# define HEDLEY_MALLOC __declspec(restrict)
1499
+#else
1500
+# define HEDLEY_MALLOC
1501
+#endif
1502
+
1503
+#if defined(HEDLEY_PURE)
1504
+# undef HEDLEY_PURE
1505
+#endif
1506
+#if \
1507
+ HEDLEY_HAS_ATTRIBUTE(pure) || \
1508
+ HEDLEY_GCC_VERSION_CHECK(2,96,0) || \
1509
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1510
+ HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
1511
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
1512
+ HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
1513
+ HEDLEY_TI_VERSION_CHECK(15,12,0) || \
1514
+ (HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1515
+ HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
1516
+ (HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1517
+ HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
1518
+ (HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1519
+ HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
1520
+ (HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1521
+ HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
1522
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
1523
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
1524
+ HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
1525
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1526
+# define HEDLEY_PURE __attribute__((__pure__))
1527
+#elif HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
1528
+# define HEDLEY_PURE _Pragma("does_not_write_global_data")
1529
+#elif defined(__cplusplus) && \
1530
+ ( \
1531
+ HEDLEY_TI_CL430_VERSION_CHECK(2,0,1) || \
1532
+ HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0) || \
1533
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) \
1534
+ )
1535
+# define HEDLEY_PURE _Pragma("FUNC_IS_PURE;")
1536
+#else
1537
+# define HEDLEY_PURE
1538
+#endif
1539
+
1540
+#if defined(HEDLEY_CONST)
1541
+# undef HEDLEY_CONST
1542
+#endif
1543
+#if \
1544
+ HEDLEY_HAS_ATTRIBUTE(const) || \
1545
+ HEDLEY_GCC_VERSION_CHECK(2,5,0) || \
1546
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1547
+ HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
1548
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
1549
+ HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
1550
+ HEDLEY_TI_VERSION_CHECK(15,12,0) || \
1551
+ (HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1552
+ HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
1553
+ (HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1554
+ HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
1555
+ (HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1556
+ HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
1557
+ (HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1558
+ HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
1559
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
1560
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
1561
+ HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
1562
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1563
+# define HEDLEY_CONST __attribute__((__const__))
1564
+#elif \
1565
+ HEDLEY_SUNPRO_VERSION_CHECK(5,10,0)
1566
+# define HEDLEY_CONST _Pragma("no_side_effect")
1567
+#else
1568
+# define HEDLEY_CONST HEDLEY_PURE
1569
+#endif
1570
+
1571
+#if defined(HEDLEY_RESTRICT)
1572
+# undef HEDLEY_RESTRICT
1573
+#endif
1574
+#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && !defined(__cplusplus)
1575
+# define HEDLEY_RESTRICT restrict
1576
+#elif \
1577
+ HEDLEY_GCC_VERSION_CHECK(3,1,0) || \
1578
+ HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \
1579
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1580
+ HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \
1581
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
1582
+ HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
1583
+ HEDLEY_PGI_VERSION_CHECK(17,10,0) || \
1584
+ HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
1585
+ HEDLEY_TI_CL2000_VERSION_CHECK(6,2,4) || \
1586
+ HEDLEY_TI_CL6X_VERSION_CHECK(8,1,0) || \
1587
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
1588
+ (HEDLEY_SUNPRO_VERSION_CHECK(5,14,0) && defined(__cplusplus)) || \
1589
+ HEDLEY_IAR_VERSION_CHECK(8,0,0) || \
1590
+ defined(__clang__) || \
1591
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1592
+# define HEDLEY_RESTRICT __restrict
1593
+#elif HEDLEY_SUNPRO_VERSION_CHECK(5,3,0) && !defined(__cplusplus)
1594
+# define HEDLEY_RESTRICT _Restrict
1595
+#else
1596
+# define HEDLEY_RESTRICT
1597
+#endif
1598
+
1599
+#if defined(HEDLEY_INLINE)
1600
+# undef HEDLEY_INLINE
1601
+#endif
1602
+#if \
1603
+ (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \
1604
+ (defined(__cplusplus) && (__cplusplus >= 199711L))
1605
+# define HEDLEY_INLINE inline
1606
+#elif \
1607
+ defined(HEDLEY_GCC_VERSION) || \
1608
+ HEDLEY_ARM_VERSION_CHECK(6,2,0)
1609
+# define HEDLEY_INLINE __inline__
1610
+#elif \
1611
+ HEDLEY_MSVC_VERSION_CHECK(12,0,0) || \
1612
+ HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \
1613
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
1614
+ HEDLEY_TI_ARMCL_VERSION_CHECK(5,1,0) || \
1615
+ HEDLEY_TI_CL430_VERSION_CHECK(3,1,0) || \
1616
+ HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \
1617
+ HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0) || \
1618
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
1619
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
1620
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1621
+# define HEDLEY_INLINE __inline
1622
+#else
1623
+# define HEDLEY_INLINE
1624
+#endif
1625
+
1626
+#if defined(HEDLEY_ALWAYS_INLINE)
1627
+# undef HEDLEY_ALWAYS_INLINE
1628
+#endif
1629
+#if \
1630
+ HEDLEY_HAS_ATTRIBUTE(always_inline) || \
1631
+ HEDLEY_GCC_VERSION_CHECK(4,0,0) || \
1632
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1633
+ HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
1634
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
1635
+ HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
1636
+ HEDLEY_TI_VERSION_CHECK(15,12,0) || \
1637
+ (HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1638
+ HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
1639
+ (HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1640
+ HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
1641
+ (HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1642
+ HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
1643
+ (HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1644
+ HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
1645
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
1646
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
1647
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \
1648
+ HEDLEY_IAR_VERSION_CHECK(8,10,0)
1649
+# define HEDLEY_ALWAYS_INLINE __attribute__((__always_inline__)) HEDLEY_INLINE
1650
+#elif \
1651
+ HEDLEY_MSVC_VERSION_CHECK(12,0,0) || \
1652
+ HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
1653
+# define HEDLEY_ALWAYS_INLINE __forceinline
1654
+#elif defined(__cplusplus) && \
1655
+ ( \
1656
+ HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
1657
+ HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
1658
+ HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
1659
+ HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \
1660
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
1661
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) \
1662
+ )
1663
+# define HEDLEY_ALWAYS_INLINE _Pragma("FUNC_ALWAYS_INLINE;")
1664
+#elif HEDLEY_IAR_VERSION_CHECK(8,0,0)
1665
+# define HEDLEY_ALWAYS_INLINE _Pragma("inline=forced")
1666
+#else
1667
+# define HEDLEY_ALWAYS_INLINE HEDLEY_INLINE
1668
+#endif
1669
+
1670
+#if defined(HEDLEY_NEVER_INLINE)
1671
+# undef HEDLEY_NEVER_INLINE
1672
+#endif
1673
+#if \
1674
+ HEDLEY_HAS_ATTRIBUTE(noinline) || \
1675
+ HEDLEY_GCC_VERSION_CHECK(4,0,0) || \
1676
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1677
+ HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
1678
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
1679
+ HEDLEY_IBM_VERSION_CHECK(10,1,0) || \
1680
+ HEDLEY_TI_VERSION_CHECK(15,12,0) || \
1681
+ (HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1682
+ HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \
1683
+ (HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1684
+ HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \
1685
+ (HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1686
+ HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \
1687
+ (HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1688
+ HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \
1689
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
1690
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \
1691
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \
1692
+ HEDLEY_IAR_VERSION_CHECK(8,10,0)
1693
+# define HEDLEY_NEVER_INLINE __attribute__((__noinline__))
1694
+#elif \
1695
+ HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \
1696
+ HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
1697
+# define HEDLEY_NEVER_INLINE __declspec(noinline)
1698
+#elif HEDLEY_PGI_VERSION_CHECK(10,2,0)
1699
+# define HEDLEY_NEVER_INLINE _Pragma("noinline")
1700
+#elif HEDLEY_TI_CL6X_VERSION_CHECK(6,0,0) && defined(__cplusplus)
1701
+# define HEDLEY_NEVER_INLINE _Pragma("FUNC_CANNOT_INLINE;")
1702
+#elif HEDLEY_IAR_VERSION_CHECK(8,0,0)
1703
+# define HEDLEY_NEVER_INLINE _Pragma("inline=never")
1704
+#elif HEDLEY_COMPCERT_VERSION_CHECK(3,2,0)
1705
+# define HEDLEY_NEVER_INLINE __attribute((noinline))
1706
+#elif HEDLEY_PELLES_VERSION_CHECK(9,0,0)
1707
+# define HEDLEY_NEVER_INLINE __declspec(noinline)
1708
+#else
1709
+# define HEDLEY_NEVER_INLINE
1710
+#endif
1711
+
1712
+#if defined(HEDLEY_PRIVATE)
1713
+# undef HEDLEY_PRIVATE
1714
+#endif
1715
+#if defined(HEDLEY_PUBLIC)
1716
+# undef HEDLEY_PUBLIC
1717
+#endif
1718
+#if defined(HEDLEY_IMPORT)
1719
+# undef HEDLEY_IMPORT
1720
+#endif
1721
+#if defined(_WIN32) || defined(__CYGWIN__)
1722
+# define HEDLEY_PRIVATE
1723
+# define HEDLEY_PUBLIC __declspec(dllexport)
1724
+# define HEDLEY_IMPORT __declspec(dllimport)
1725
+#else
1726
+# if \
1727
+ HEDLEY_HAS_ATTRIBUTE(visibility) || \
1728
+ HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
1729
+ HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \
1730
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1731
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
1732
+ HEDLEY_IBM_VERSION_CHECK(13,1,0) || \
1733
+ ( \
1734
+ defined(__TI_EABI__) && \
1735
+ ( \
1736
+ (HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \
1737
+ HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) \
1738
+ ) \
1739
+ ) || \
1740
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1741
+# define HEDLEY_PRIVATE __attribute__((__visibility__("hidden")))
1742
+# define HEDLEY_PUBLIC __attribute__((__visibility__("default")))
1743
+# else
1744
+# define HEDLEY_PRIVATE
1745
+# define HEDLEY_PUBLIC
1746
+# endif
1747
+# define HEDLEY_IMPORT extern
1748
+#endif
1749
+
1750
+#if defined(HEDLEY_NO_THROW)
1751
+# undef HEDLEY_NO_THROW
1752
+#endif
1753
+#if \
1754
+ HEDLEY_HAS_ATTRIBUTE(nothrow) || \
1755
+ HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
1756
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1757
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1758
+# define HEDLEY_NO_THROW __attribute__((__nothrow__))
1759
+#elif \
1760
+ HEDLEY_MSVC_VERSION_CHECK(13,1,0) || \
1761
+ HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0) || \
1762
+ HEDLEY_ARM_VERSION_CHECK(4,1,0)
1763
+# define HEDLEY_NO_THROW __declspec(nothrow)
1764
+#else
1765
+# define HEDLEY_NO_THROW
1766
+#endif
1767
+
1768
+#if defined(HEDLEY_FALL_THROUGH)
1769
+# undef HEDLEY_FALL_THROUGH
1770
+#endif
1771
+#if defined(HEDLEY_INTEL_VERSION)
1772
+# define HEDLEY_FALL_THROUGH
1773
+#elif \
1774
+ HEDLEY_HAS_ATTRIBUTE(fallthrough) || \
1775
+ HEDLEY_GCC_VERSION_CHECK(7,0,0) || \
1776
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1777
+# define HEDLEY_FALL_THROUGH __attribute__((__fallthrough__))
1778
+#elif HEDLEY_HAS_CPP_ATTRIBUTE_NS(clang,fallthrough)
1779
+# define HEDLEY_FALL_THROUGH HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[clang::fallthrough]])
1780
+#elif HEDLEY_HAS_CPP_ATTRIBUTE(fallthrough)
1781
+# define HEDLEY_FALL_THROUGH HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[fallthrough]])
1782
+#elif defined(__fallthrough) /* SAL */
1783
+# define HEDLEY_FALL_THROUGH __fallthrough
1784
+#else
1785
+# define HEDLEY_FALL_THROUGH
1786
+#endif
1787
+
1788
+#if defined(HEDLEY_RETURNS_NON_NULL)
1789
+# undef HEDLEY_RETURNS_NON_NULL
1790
+#endif
1791
+#if \
1792
+ HEDLEY_HAS_ATTRIBUTE(returns_nonnull) || \
1793
+ HEDLEY_GCC_VERSION_CHECK(4,9,0) || \
1794
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1795
+# define HEDLEY_RETURNS_NON_NULL __attribute__((__returns_nonnull__))
1796
+#elif defined(_Ret_notnull_) /* SAL */
1797
+# define HEDLEY_RETURNS_NON_NULL _Ret_notnull_
1798
+#else
1799
+# define HEDLEY_RETURNS_NON_NULL
1800
+#endif
1801
+
1802
+#if defined(HEDLEY_ARRAY_PARAM)
1803
+# undef HEDLEY_ARRAY_PARAM
1804
+#endif
1805
+#if \
1806
+ defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && \
1807
+ !defined(__STDC_NO_VLA__) && \
1808
+ !defined(__cplusplus) && \
1809
+ !defined(HEDLEY_PGI_VERSION) && \
1810
+ !defined(HEDLEY_TINYC_VERSION)
1811
+# define HEDLEY_ARRAY_PARAM(name) (name)
1812
+#else
1813
+# define HEDLEY_ARRAY_PARAM(name)
1814
+#endif
1815
+
1816
+#if defined(HEDLEY_IS_CONSTANT)
1817
+# undef HEDLEY_IS_CONSTANT
1818
+#endif
1819
+#if defined(HEDLEY_REQUIRE_CONSTEXPR)
1820
+# undef HEDLEY_REQUIRE_CONSTEXPR
1821
+#endif
1822
+/* HEDLEY_IS_CONSTEXPR_ is for
1823
+ HEDLEY INTERNAL USE ONLY. API subject to change without notice. */
1824
+#if defined(HEDLEY_IS_CONSTEXPR_)
1825
+# undef HEDLEY_IS_CONSTEXPR_
1826
+#endif
1827
+#if \
1828
+ HEDLEY_HAS_BUILTIN(__builtin_constant_p) || \
1829
+ HEDLEY_GCC_VERSION_CHECK(3,4,0) || \
1830
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1831
+ HEDLEY_TINYC_VERSION_CHECK(0,9,19) || \
1832
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
1833
+ HEDLEY_IBM_VERSION_CHECK(13,1,0) || \
1834
+ HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \
1835
+ (HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) && !defined(__cplusplus)) || \
1836
+ HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \
1837
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10)
1838
+# define HEDLEY_IS_CONSTANT(expr) __builtin_constant_p(expr)
1839
+#endif
1840
+#if !defined(__cplusplus)
1841
+# if \
1842
+ HEDLEY_HAS_BUILTIN(__builtin_types_compatible_p) || \
1843
+ HEDLEY_GCC_VERSION_CHECK(3,4,0) || \
1844
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1845
+ HEDLEY_IBM_VERSION_CHECK(13,1,0) || \
1846
+ HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \
1847
+ HEDLEY_ARM_VERSION_CHECK(5,4,0) || \
1848
+ HEDLEY_TINYC_VERSION_CHECK(0,9,24)
1849
+# if defined(__INTPTR_TYPE__)
1850
+# define HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0)), int*)
1851
+# else
1852
+# include <stdint.h>
1853
+# define HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((intptr_t) ((expr) * 0)) : (int*) 0)), int*)
1854
+# endif
1855
+# elif \
1856
+ ( \
1857
+ defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) && \
1858
+ !defined(HEDLEY_SUNPRO_VERSION) && \
1859
+ !defined(HEDLEY_PGI_VERSION) && \
1860
+ !defined(HEDLEY_IAR_VERSION)) || \
1861
+ (HEDLEY_HAS_EXTENSION(c_generic_selections) && !defined(HEDLEY_IAR_VERSION)) || \
1862
+ HEDLEY_GCC_VERSION_CHECK(4,9,0) || \
1863
+ HEDLEY_INTEL_VERSION_CHECK(17,0,0) || \
1864
+ HEDLEY_IBM_VERSION_CHECK(12,1,0) || \
1865
+ HEDLEY_ARM_VERSION_CHECK(5,3,0)
1866
+# if defined(__INTPTR_TYPE__)
1867
+# define HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0), int*: 1, void*: 0)
1868
+# else
1869
+# include <stdint.h>
1870
+# define HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((intptr_t) * 0) : (int*) 0), int*: 1, void*: 0)
1871
+# endif
1872
+# elif \
1873
+ defined(HEDLEY_GCC_VERSION) || \
1874
+ defined(HEDLEY_INTEL_VERSION) || \
1875
+ defined(HEDLEY_TINYC_VERSION) || \
1876
+ defined(HEDLEY_TI_ARMCL_VERSION) || \
1877
+ HEDLEY_TI_CL430_VERSION_CHECK(18,12,0) || \
1878
+ defined(HEDLEY_TI_CL2000_VERSION) || \
1879
+ defined(HEDLEY_TI_CL6X_VERSION) || \
1880
+ defined(HEDLEY_TI_CL7X_VERSION) || \
1881
+ defined(HEDLEY_TI_CLPRU_VERSION) || \
1882
+ defined(__clang__)
1883
+# define HEDLEY_IS_CONSTEXPR_(expr) ( \
1884
+ sizeof(void) != \
1885
+ sizeof(*( \
1886
+ 1 ? \
1887
+ ((void*) ((expr) * 0L) ) : \
1888
+ ((struct { char v[sizeof(void) * 2]; } *) 1) \
1889
+ ) \
1890
+ ) \
1891
+ )
1892
+# endif
1893
+#endif
1894
+#if defined(HEDLEY_IS_CONSTEXPR_)
1895
+# if !defined(HEDLEY_IS_CONSTANT)
1896
+# define HEDLEY_IS_CONSTANT(expr) HEDLEY_IS_CONSTEXPR_(expr)
1897
+# endif
1898
+# define HEDLEY_REQUIRE_CONSTEXPR(expr) (HEDLEY_IS_CONSTEXPR_(expr) ? (expr) : (-1))
1899
+#else
1900
+# if !defined(HEDLEY_IS_CONSTANT)
1901
+# define HEDLEY_IS_CONSTANT(expr) (0)
1902
+# endif
1903
+# define HEDLEY_REQUIRE_CONSTEXPR(expr) (expr)
1904
+#endif
1905
+
1906
+#if defined(HEDLEY_BEGIN_C_DECLS)
1907
+# undef HEDLEY_BEGIN_C_DECLS
1908
+#endif
1909
+#if defined(HEDLEY_END_C_DECLS)
1910
+# undef HEDLEY_END_C_DECLS
1911
+#endif
1912
+#if defined(HEDLEY_C_DECL)
1913
+# undef HEDLEY_C_DECL
1914
+#endif
1915
+#if defined(__cplusplus)
1916
+# define HEDLEY_BEGIN_C_DECLS extern "C" {
1917
+# define HEDLEY_END_C_DECLS }
1918
+# define HEDLEY_C_DECL extern "C"
1919
+#else
1920
+# define HEDLEY_BEGIN_C_DECLS
1921
+# define HEDLEY_END_C_DECLS
1922
+# define HEDLEY_C_DECL
1923
+#endif
1924
+
1925
+#if defined(HEDLEY_STATIC_ASSERT)
1926
+# undef HEDLEY_STATIC_ASSERT
1927
+#endif
1928
+#if \
1929
+ !defined(__cplusplus) && ( \
1930
+ (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)) || \
1931
+ (HEDLEY_HAS_FEATURE(c_static_assert) && !defined(HEDLEY_INTEL_CL_VERSION)) || \
1932
+ HEDLEY_GCC_VERSION_CHECK(6,0,0) || \
1933
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
1934
+ defined(_Static_assert) \
1935
+ )
1936
+# define HEDLEY_STATIC_ASSERT(expr, message) _Static_assert(expr, message)
1937
+#elif \
1938
+ (defined(__cplusplus) && (__cplusplus >= 201103L)) || \
1939
+ HEDLEY_MSVC_VERSION_CHECK(16,0,0) || \
1940
+ HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
1941
+# define HEDLEY_STATIC_ASSERT(expr, message) HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(static_assert(expr, message))
1942
+#else
1943
+# define HEDLEY_STATIC_ASSERT(expr, message)
1944
+#endif
1945
+
1946
+#if defined(HEDLEY_NULL)
1947
+# undef HEDLEY_NULL
1948
+#endif
1949
+#if defined(__cplusplus)
1950
+# if __cplusplus >= 201103L
1951
+# define HEDLEY_NULL HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(nullptr)
1952
+# elif defined(NULL)
1953
+# define HEDLEY_NULL NULL
1954
+# else
1955
+# define HEDLEY_NULL HEDLEY_STATIC_CAST(void*, 0)
1956
+# endif
1957
+#elif defined(NULL)
1958
+# define HEDLEY_NULL NULL
1959
+#else
1960
+# define HEDLEY_NULL ((void*) 0)
1961
+#endif
1962
+
1963
+#if defined(HEDLEY_MESSAGE)
1964
+# undef HEDLEY_MESSAGE
1965
+#endif
1966
+#if HEDLEY_HAS_WARNING("-Wunknown-pragmas")
1967
+# define HEDLEY_MESSAGE(msg) \
1968
+ HEDLEY_DIAGNOSTIC_PUSH \
1969
+ HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS \
1970
+ HEDLEY_PRAGMA(message msg) \
1971
+ HEDLEY_DIAGNOSTIC_POP
1972
+#elif \
1973
+ HEDLEY_GCC_VERSION_CHECK(4,4,0) || \
1974
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0)
1975
+# define HEDLEY_MESSAGE(msg) HEDLEY_PRAGMA(message msg)
1976
+#elif HEDLEY_CRAY_VERSION_CHECK(5,0,0)
1977
+# define HEDLEY_MESSAGE(msg) HEDLEY_PRAGMA(_CRI message msg)
1978
+#elif HEDLEY_IAR_VERSION_CHECK(8,0,0)
1979
+# define HEDLEY_MESSAGE(msg) HEDLEY_PRAGMA(message(msg))
1980
+#elif HEDLEY_PELLES_VERSION_CHECK(2,0,0)
1981
+# define HEDLEY_MESSAGE(msg) HEDLEY_PRAGMA(message(msg))
1982
+#else
1983
+# define HEDLEY_MESSAGE(msg)
1984
+#endif
1985
+
1986
+#if defined(HEDLEY_WARNING)
1987
+# undef HEDLEY_WARNING
1988
+#endif
1989
+#if HEDLEY_HAS_WARNING("-Wunknown-pragmas")
1990
+# define HEDLEY_WARNING(msg) \
1991
+ HEDLEY_DIAGNOSTIC_PUSH \
1992
+ HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS \
1993
+ HEDLEY_PRAGMA(clang warning msg) \
1994
+ HEDLEY_DIAGNOSTIC_POP
1995
+#elif \
1996
+ HEDLEY_GCC_VERSION_CHECK(4,8,0) || \
1997
+ HEDLEY_PGI_VERSION_CHECK(18,4,0) || \
1998
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0)
1999
+# define HEDLEY_WARNING(msg) HEDLEY_PRAGMA(GCC warning msg)
2000
+#elif \
2001
+ HEDLEY_MSVC_VERSION_CHECK(15,0,0) || \
2002
+ HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
2003
+# define HEDLEY_WARNING(msg) HEDLEY_PRAGMA(message(msg))
2004
+#else
2005
+# define HEDLEY_WARNING(msg) HEDLEY_MESSAGE(msg)
2006
+#endif
2007
+
2008
+#if defined(HEDLEY_REQUIRE)
2009
+# undef HEDLEY_REQUIRE
2010
+#endif
2011
+#if defined(HEDLEY_REQUIRE_MSG)
2012
+# undef HEDLEY_REQUIRE_MSG
2013
+#endif
2014
+#if HEDLEY_HAS_ATTRIBUTE(diagnose_if)
2015
+# if HEDLEY_HAS_WARNING("-Wgcc-compat")
2016
+# define HEDLEY_REQUIRE(expr) \
2017
+ HEDLEY_DIAGNOSTIC_PUSH \
2018
+ _Pragma("clang diagnostic ignored \"-Wgcc-compat\"") \
2019
+ __attribute__((diagnose_if(!(expr), #expr, "error"))) \
2020
+ HEDLEY_DIAGNOSTIC_POP
2021
+# define HEDLEY_REQUIRE_MSG(expr,msg) \
2022
+ HEDLEY_DIAGNOSTIC_PUSH \
2023
+ _Pragma("clang diagnostic ignored \"-Wgcc-compat\"") \
2024
+ __attribute__((diagnose_if(!(expr), msg, "error"))) \
2025
+ HEDLEY_DIAGNOSTIC_POP
2026
+# else
2027
+# define HEDLEY_REQUIRE(expr) __attribute__((diagnose_if(!(expr), #expr, "error")))
2028
+# define HEDLEY_REQUIRE_MSG(expr,msg) __attribute__((diagnose_if(!(expr), msg, "error")))
2029
+# endif
2030
+#else
2031
+# define HEDLEY_REQUIRE(expr)
2032
+# define HEDLEY_REQUIRE_MSG(expr,msg)
2033
+#endif
2034
+
2035
+#if defined(HEDLEY_FLAGS)
2036
+# undef HEDLEY_FLAGS
2037
+#endif
2038
+#if HEDLEY_HAS_ATTRIBUTE(flag_enum) && (!defined(__cplusplus) || HEDLEY_HAS_WARNING("-Wbitfield-enum-conversion"))
2039
+# define HEDLEY_FLAGS __attribute__((__flag_enum__))
2040
+#else
2041
+# define HEDLEY_FLAGS
2042
+#endif
2043
+
2044
+#if defined(HEDLEY_FLAGS_CAST)
2045
+# undef HEDLEY_FLAGS_CAST
2046
+#endif
2047
+#if HEDLEY_INTEL_VERSION_CHECK(19,0,0)
2048
+# define HEDLEY_FLAGS_CAST(T, expr) (__extension__ ({ \
2049
+ HEDLEY_DIAGNOSTIC_PUSH \
2050
+ _Pragma("warning(disable:188)") \
2051
+ ((T) (expr)); \
2052
+ HEDLEY_DIAGNOSTIC_POP \
2053
+ }))
2054
+#else
2055
+# define HEDLEY_FLAGS_CAST(T, expr) HEDLEY_STATIC_CAST(T, expr)
2056
+#endif
2057
+
2058
+#if defined(HEDLEY_EMPTY_BASES)
2059
+# undef HEDLEY_EMPTY_BASES
2060
+#endif
2061
+#if \
2062
+ (HEDLEY_MSVC_VERSION_CHECK(19,0,23918) && !HEDLEY_MSVC_VERSION_CHECK(20,0,0)) || \
2063
+ HEDLEY_INTEL_CL_VERSION_CHECK(2021,1,0)
2064
+# define HEDLEY_EMPTY_BASES __declspec(empty_bases)
2065
+#else
2066
+# define HEDLEY_EMPTY_BASES
2067
+#endif
2068
+
2069
+/* Remaining macros are deprecated. */
2070
+
2071
+#if defined(HEDLEY_GCC_NOT_CLANG_VERSION_CHECK)
2072
+# undef HEDLEY_GCC_NOT_CLANG_VERSION_CHECK
2073
+#endif
2074
+#if defined(__clang__)
2075
+# define HEDLEY_GCC_NOT_CLANG_VERSION_CHECK(major,minor,patch) (0)
2076
+#else
2077
+# define HEDLEY_GCC_NOT_CLANG_VERSION_CHECK(major,minor,patch) HEDLEY_GCC_VERSION_CHECK(major,minor,patch)
2078
+#endif
2079
+
2080
+#if defined(HEDLEY_CLANG_HAS_ATTRIBUTE)
2081
+# undef HEDLEY_CLANG_HAS_ATTRIBUTE
2082
+#endif
2083
+#define HEDLEY_CLANG_HAS_ATTRIBUTE(attribute) HEDLEY_HAS_ATTRIBUTE(attribute)
2084
+
2085
+#if defined(HEDLEY_CLANG_HAS_CPP_ATTRIBUTE)
2086
+# undef HEDLEY_CLANG_HAS_CPP_ATTRIBUTE
2087
+#endif
2088
+#define HEDLEY_CLANG_HAS_CPP_ATTRIBUTE(attribute) HEDLEY_HAS_CPP_ATTRIBUTE(attribute)
2089
+
2090
+#if defined(HEDLEY_CLANG_HAS_BUILTIN)
2091
+# undef HEDLEY_CLANG_HAS_BUILTIN
2092
+#endif
2093
+#define HEDLEY_CLANG_HAS_BUILTIN(builtin) HEDLEY_HAS_BUILTIN(builtin)
2094
+
2095
+#if defined(HEDLEY_CLANG_HAS_FEATURE)
2096
+# undef HEDLEY_CLANG_HAS_FEATURE
2097
+#endif
2098
+#define HEDLEY_CLANG_HAS_FEATURE(feature) HEDLEY_HAS_FEATURE(feature)
2099
+
2100
+#if defined(HEDLEY_CLANG_HAS_EXTENSION)
2101
+# undef HEDLEY_CLANG_HAS_EXTENSION
2102
+#endif
2103
+#define HEDLEY_CLANG_HAS_EXTENSION(extension) HEDLEY_HAS_EXTENSION(extension)
2104
+
2105
+#if defined(HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE)
2106
+# undef HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE
2107
+#endif
2108
+#define HEDLEY_CLANG_HAS_DECLSPEC_ATTRIBUTE(attribute) HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute)
2109
+
2110
+#if defined(HEDLEY_CLANG_HAS_WARNING)
2111
+# undef HEDLEY_CLANG_HAS_WARNING
2112
+#endif
2113
+#define HEDLEY_CLANG_HAS_WARNING(warning) HEDLEY_HAS_WARNING(warning)
2114
+
2115
+#endif /* !defined(HEDLEY_VERSION) || (HEDLEY_VERSION < X) */
2116
+/* :: End simde/hedley.h :: */
2117
+
2118
+#define SIMDE_VERSION_MAJOR 0
2119
+#define SIMDE_VERSION_MINOR 8
2120
+#define SIMDE_VERSION_MICRO 2
2121
+#define SIMDE_VERSION HEDLEY_VERSION_ENCODE(SIMDE_VERSION_MAJOR, SIMDE_VERSION_MINOR, SIMDE_VERSION_MICRO)
2122
+// Also update meson.build in the root directory of the repository
2123
+
2124
+#include <stddef.h>
2125
+#include <stdint.h>
2126
+
2127
+/* AUTOMATICALLY GENERATED FILE, DO NOT MODIFY */
2128
+/* 71fd833d9666141edcd1d3c109a80e228303d8d7 */
2129
+/* :: Begin simde/simde-detect-clang.h :: */
2130
+/* Detect Clang Version
2131
+ * Created by Evan Nemerson <evan@nemerson.com>
2132
+ *
2133
+ * To the extent possible under law, the author(s) have dedicated all
2134
+ * copyright and related and neighboring rights to this software to
2135
+ * the public domain worldwide. This software is distributed without
2136
+ * any warranty.
2137
+ *
2138
+ * For details, see <http://creativecommons.org/publicdomain/zero/1.0/>.
2139
+ * SPDX-License-Identifier: CC0-1.0
2140
+ */
2141
+
2142
+/* This file was originally part of SIMDe
2143
+ * (<https://github.com/simd-everywhere/simde>). You're free to do with it as
2144
+ * you please, but I do have a few small requests:
2145
+ *
2146
+ * * If you make improvements, please submit them back to SIMDe
2147
+ * (at <https://github.com/simd-everywhere/simde/issues>) so others can
2148
+ * benefit from them.
2149
+ * * Please keep a link to SIMDe intact so people know where to submit
2150
+ * improvements.
2151
+ * * If you expose it publicly, please change the SIMDE_ prefix to
2152
+ * something specific to your project.
2153
+ *
2154
+ * The version numbers clang exposes (in the ___clang_major__,
2155
+ * __clang_minor__, and __clang_patchlevel__ macros) are unreliable.
2156
+ * Vendors such as Apple will define these values to their version
2157
+ * numbers; for example, "Apple Clang 4.0" is really clang 3.1, but
2158
+ * __clang_major__ and __clang_minor__ are defined to 4 and 0
2159
+ * respectively, instead of 3 and 1.
2160
+ *
2161
+ * The solution is *usually* to use clang's feature detection macros
2162
+ * (<https://clang.llvm.org/docs/LanguageExtensions.html#feature-checking-macros>)
2163
+ * to determine if the feature you're interested in is available. This
2164
+ * generally works well, and it should probably be the first thing you
2165
+ * try. Unfortunately, it's not possible to check for everything. In
2166
+ * particular, compiler bugs.
2167
+ *
2168
+ * This file just uses the feature checking macros to detect features
2169
+ * added in specific versions of clang to identify which version of
2170
+ * clang the compiler is based on.
2171
+ *
2172
+ * Right now it only goes back to 3.6, but I'm happy to accept patches
2173
+ * to go back further. And, of course, newer versions are welcome if
2174
+ * they're not already present, and if you find a way to detect a point
2175
+ * release that would be great, too!
2176
+ */
2177
+
2178
+#if !defined(SIMDE_DETECT_CLANG_H)
2179
+#define SIMDE_DETECT_CLANG_H 1
2180
+
2181
+/* Attempt to detect the upstream clang version number. I usually only
2182
+ * worry about major version numbers (at least for 4.0+), but if you
2183
+ * need more resolution I'm happy to accept patches that are able to
2184
+ * detect minor versions as well. That said, you'll probably have a
2185
+ * hard time with detection since AFAIK most minor releases don't add
2186
+ * anything we can detect. Updated based on
2187
+ * https://github.com/google/highway/blob/438c705a295176b96a50336527bb3e7ea365ffac/hwy/detect_compiler_arch.h#L73
2188
+ * - would welcome patches/updates there as well.
2189
+ */
2190
+
2191
+#if defined(__clang__) && !defined(SIMDE_DETECT_CLANG_VERSION)
2192
+# if __has_warning("-Wmissing-designated-field-initializers")
2193
+# define SIMDE_DETECT_CLANG_VERSION 190000
2194
+# elif __has_warning("-Woverriding-option")
2195
+# define SIMDE_DETECT_CLANG_VERSION 180000
2196
+# elif __has_attribute(unsafe_buffer_usage) // no new warnings in 17.0
2197
+# define SIMDE_DETECT_CLANG_VERSION 170000
2198
+# elif __has_attribute(nouwtable) // no new warnings in 16.0
2199
+# define SIMDE_DETECT_CLANG_VERSION 160000
2200
+# elif __has_warning("-Warray-parameter")
2201
+# define SIMDE_DETECT_CLANG_VERSION 150000
2202
+# elif __has_warning("-Wbitwise-instead-of-logical")
2203
+# define SIMDE_DETECT_CLANG_VERSION 140000
2204
+# elif __has_warning("-Waix-compat")
2205
+# define SIMDE_DETECT_CLANG_VERSION 130000
2206
+# elif __has_warning("-Wformat-insufficient-args")
2207
+# define SIMDE_DETECT_CLANG_VERSION 120000
2208
+# elif __has_warning("-Wimplicit-const-int-float-conversion")
2209
+# define SIMDE_DETECT_CLANG_VERSION 110000
2210
+# elif __has_warning("-Wmisleading-indentation")
2211
+# define SIMDE_DETECT_CLANG_VERSION 100000
2212
+# elif defined(__FILE_NAME__)
2213
+# define SIMDE_DETECT_CLANG_VERSION 90000
2214
+# elif __has_warning("-Wextra-semi-stmt") || __has_builtin(__builtin_rotateleft32)
2215
+# define SIMDE_DETECT_CLANG_VERSION 80000
2216
+// For reasons unknown, Xcode 10.3 (Apple LLVM version 10.0.1) is apparently
2217
+// based on Clang 7, but does not support the warning we test.
2218
+// See https://en.wikipedia.org/wiki/Xcode#Toolchain_versions and
2219
+// https://trac.macports.org/wiki/XcodeVersionInfo.
2220
+# elif __has_warning("-Wc++98-compat-extra-semi") || \
2221
+ (defined(__apple_build_version__) && __apple_build_version__ >= 10010000)
2222
+# define SIMDE_DETECT_CLANG_VERSION 70000
2223
+# elif __has_warning("-Wpragma-pack")
2224
+# define SIMDE_DETECT_CLANG_VERSION 60000
2225
+# elif __has_warning("-Wbitfield-enum-conversion")
2226
+# define SIMDE_DETECT_CLANG_VERSION 50000
2227
+# elif __has_attribute(diagnose_if)
2228
+# define SIMDE_DETECT_CLANG_VERSION 40000
2229
+# elif __has_warning("-Wcomma")
2230
+# define SIMDE_DETECT_CLANG_VERSION 39000
2231
+# elif __has_warning("-Wdouble-promotion")
2232
+# define SIMDE_DETECT_CLANG_VERSION 38000
2233
+# elif __has_warning("-Wshift-negative-value")
2234
+# define SIMDE_DETECT_CLANG_VERSION 37000
2235
+# elif __has_warning("-Wambiguous-ellipsis")
2236
+# define SIMDE_DETECT_CLANG_VERSION 36000
2237
+# else
2238
+# define SIMDE_DETECT_CLANG_VERSION 1
2239
+# endif
2240
+#endif /* defined(__clang__) && !defined(SIMDE_DETECT_CLANG_VERSION) */
2241
+
2242
+/* The SIMDE_DETECT_CLANG_VERSION_CHECK macro is pretty
2243
+ * straightforward; it returns true if the compiler is a derivative
2244
+ * of clang >= the specified version.
2245
+ *
2246
+ * Since this file is often (primarily?) useful for working around bugs
2247
+ * it is also helpful to have a macro which returns true if only if the
2248
+ * compiler is a version of clang *older* than the specified version to
2249
+ * make it a bit easier to ifdef regions to add code for older versions,
2250
+ * such as pragmas to disable a specific warning. */
2251
+
2252
+#if defined(SIMDE_DETECT_CLANG_VERSION)
2253
+# define SIMDE_DETECT_CLANG_VERSION_CHECK(major, minor, revision) (SIMDE_DETECT_CLANG_VERSION >= ((major * 10000) + (minor * 1000) + (revision)))
2254
+# define SIMDE_DETECT_CLANG_VERSION_NOT(major, minor, revision) (SIMDE_DETECT_CLANG_VERSION < ((major * 10000) + (minor * 1000) + (revision)))
2255
+#else
2256
+# define SIMDE_DETECT_CLANG_VERSION_CHECK(major, minor, revision) (0)
2257
+# define SIMDE_DETECT_CLANG_VERSION_NOT(major, minor, revision) (0)
2258
+#endif
2259
+
2260
+#endif /* !defined(SIMDE_DETECT_CLANG_H) */
2261
+/* :: End simde/simde-detect-clang.h :: */
2262
+/* AUTOMATICALLY GENERATED FILE, DO NOT MODIFY */
2263
+/* 71fd833d9666141edcd1d3c109a80e228303d8d7 */
2264
+/* :: Begin simde/simde-arch.h :: */
2265
+/* Architecture detection
2266
+ * Created by Evan Nemerson <evan@nemerson.com>
2267
+ *
2268
+ * To the extent possible under law, the authors have waived all
2269
+ * copyright and related or neighboring rights to this code. For
2270
+ * details, see the Creative Commons Zero 1.0 Universal license at
2271
+ * <https://creativecommons.org/publicdomain/zero/1.0/>
2272
+ *
2273
+ * SPDX-License-Identifier: CC0-1.0
2274
+ *
2275
+ * Different compilers define different preprocessor macros for the
2276
+ * same architecture. This is an attempt to provide a single
2277
+ * interface which is usable on any compiler.
2278
+ *
2279
+ * In general, a macro named SIMDE_ARCH_* is defined for each
2280
+ * architecture the CPU supports. When there are multiple possible
2281
+ * versions, we try to define the macro to the target version. For
2282
+ * example, if you want to check for i586+, you could do something
2283
+ * like:
2284
+ *
2285
+ * #if defined(SIMDE_ARCH_X86) && (SIMDE_ARCH_X86 >= 5)
2286
+ * ...
2287
+ * #endif
2288
+ *
2289
+ * You could also just check that SIMDE_ARCH_X86 >= 5 without checking
2290
+ * if it's defined first, but some compilers may emit a warning about
2291
+ * an undefined macro being used (e.g., GCC with -Wundef).
2292
+ *
2293
+ * This was originally created for SIMDe
2294
+ * <https://github.com/simd-everywhere/simde> (hence the prefix), but this
2295
+ * header has no dependencies and may be used anywhere. It is
2296
+ * originally based on information from
2297
+ * <https://sourceforge.net/p/predef/wiki/Architectures/>, though it
2298
+ * has been enhanced with additional information.
2299
+ *
2300
+ * If you improve this file, or find a bug, please file the issue at
2301
+ * <https://github.com/simd-everywhere/simde/issues>. If you copy this into
2302
+ * your project, even if you change the prefix, please keep the links
2303
+ * to SIMDe intact so others know where to report issues, submit
2304
+ * enhancements, and find the latest version. */
2305
+
2306
+#if !defined(SIMDE_ARCH_H)
2307
+#define SIMDE_ARCH_H
2308
+
2309
+/* AUTOMATICALLY GENERATED FILE, DO NOT MODIFY */
2310
+/* 71fd833d9666141edcd1d3c109a80e228303d8d7 */
2311
+
2312
+/* Alpha
2313
+ <https://en.wikipedia.org/wiki/DEC_Alpha> */
2314
+#if defined(__alpha__) || defined(__alpha) || defined(_M_ALPHA)
2315
+# if defined(__alpha_ev6__)
2316
+# define SIMDE_ARCH_ALPHA 6
2317
+# elif defined(__alpha_ev5__)
2318
+# define SIMDE_ARCH_ALPHA 5
2319
+# elif defined(__alpha_ev4__)
2320
+# define SIMDE_ARCH_ALPHA 4
2321
+# else
2322
+# define SIMDE_ARCH_ALPHA 1
2323
+# endif
2324
+#endif
2325
+#if defined(SIMDE_ARCH_ALPHA)
2326
+# define SIMDE_ARCH_ALPHA_CHECK(version) ((version) <= SIMDE_ARCH_ALPHA)
2327
+#else
2328
+# define SIMDE_ARCH_ALPHA_CHECK(version) (0)
2329
+#endif
2330
+
2331
+/* Atmel AVR
2332
+ <https://en.wikipedia.org/wiki/Atmel_AVR> */
2333
+#if defined(__AVR_ARCH__)
2334
+# define SIMDE_ARCH_AVR __AVR_ARCH__
2335
+#endif
2336
+
2337
+/* AMD64 / x86_64
2338
+ <https://en.wikipedia.org/wiki/X86-64> */
2339
+#if defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64) || defined(_M_X64) || defined(_M_AMD64)
2340
+# if !defined(_M_ARM64EC)
2341
+# define SIMDE_ARCH_AMD64 1000
2342
+# endif
2343
+#endif
2344
+
2345
+/* ARM
2346
+ <https://en.wikipedia.org/wiki/ARM_architecture> */
2347
+#if defined(__ARM_ARCH)
2348
+# if __ARM_ARCH > 100
2349
+# define SIMDE_ARCH_ARM (__ARM_ARCH)
2350
+# else
2351
+# define SIMDE_ARCH_ARM (__ARM_ARCH * 100)
2352
+# endif
2353
+#elif defined(_M_ARM)
2354
+# if _M_ARM > 100
2355
+# define SIMDE_ARCH_ARM (_M_ARM)
2356
+# else
2357
+# define SIMDE_ARCH_ARM (_M_ARM * 100)
2358
+# endif
2359
+#elif defined(_M_ARM64) || defined(_M_ARM64EC)
2360
+# define SIMDE_ARCH_ARM 800
2361
+#elif defined(__arm__) || defined(__thumb__) || defined(__TARGET_ARCH_ARM) || defined(_ARM) || defined(_M_ARM) || defined(_M_ARM)
2362
+# define SIMDE_ARCH_ARM 1
2363
+#endif
2364
+#if defined(SIMDE_ARCH_ARM)
2365
+# define SIMDE_ARCH_ARM_CHECK(major, minor) (((major * 100) + (minor)) <= SIMDE_ARCH_ARM)
2366
+#else
2367
+# define SIMDE_ARCH_ARM_CHECK(major, minor) (0)
2368
+#endif
2369
+
2370
+/* AArch64
2371
+ <https://en.wikipedia.org/wiki/ARM_architecture> */
2372
+#if defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC)
2373
+# define SIMDE_ARCH_AARCH64 1000
2374
+#endif
2375
+#if defined(SIMDE_ARCH_AARCH64)
2376
+# define SIMDE_ARCH_AARCH64_CHECK(version) ((version) <= SIMDE_ARCH_AARCH64)
2377
+#else
2378
+# define SIMDE_ARCH_AARCH64_CHECK(version) (0)
2379
+#endif
2380
+
2381
+/* ARM SIMD ISA extensions */
2382
+#if defined(__ARM_NEON) || defined(SIMDE_ARCH_AARCH64)
2383
+# if defined(SIMDE_ARCH_AARCH64)
2384
+# define SIMDE_ARCH_ARM_NEON SIMDE_ARCH_AARCH64
2385
+# elif defined(SIMDE_ARCH_ARM)
2386
+# define SIMDE_ARCH_ARM_NEON SIMDE_ARCH_ARM
2387
+# endif
2388
+#endif
2389
+#if defined(__ARM_FEATURE_AES) && __ARM_FEATURE_AES
2390
+# define SIMDE_ARCH_ARM_AES
2391
+#endif
2392
+#if defined(__ARM_FEATURE_COMPLEX) && __ARM_FEATURE_COMPLEX
2393
+# define SIMDE_ARCH_ARM_COMPLEX
2394
+#endif
2395
+#if defined(__ARM_FEATURE_CRYPTO) && __ARM_FEATURE_CRYPTO
2396
+# define SIMDE_ARCH_ARM_CRYPTO
2397
+#endif
2398
+#if defined(__ARM_FEATURE_DOTPROD) && __ARM_FEATURE_DOTPROD
2399
+# define SIMDE_ARCH_ARM_DOTPROD
2400
+#endif
2401
+#if defined(__ARM_FEATURE_FMA) && __ARM_FEATURE_FMA
2402
+# define SIMDE_ARCH_ARM_FMA
2403
+#endif
2404
+#if defined(__ARM_FEATURE_FP16_FML) && __ARM_FEATURE_FP16_FML
2405
+# define SIMDE_ARCH_ARM_FP16_FML
2406
+#endif
2407
+#if defined(__ARM_FEATURE_FRINT) && __ARM_FEATURE_FRINT
2408
+# define SIMDE_ARCH_ARM_FRINT
2409
+#endif
2410
+#if defined(__ARM_FEATURE_MATMUL_INT8) && __ARM_FEATURE_MATMUL_INT8
2411
+# define SIMDE_ARCH_ARM_MATMUL_INT8
2412
+#endif
2413
+#if defined(__ARM_FEATURE_SHA2) && __ARM_FEATURE_SHA2 && !defined(__APPLE_CC__)
2414
+# define SIMDE_ARCH_ARM_SHA2
2415
+#endif
2416
+#if defined(__ARM_FEATURE_SHA3) && __ARM_FEATURE_SHA3
2417
+# define SIMDE_ARCH_ARM_SHA3
2418
+#endif
2419
+#if defined(__ARM_FEATURE_SHA512) && __ARM_FEATURE_SHA512
2420
+# define SIMDE_ARCH_ARM_SHA512
2421
+#endif
2422
+#if defined(__ARM_FEATURE_SM3) && __ARM_FEATURE_SM3
2423
+# define SIMDE_ARCH_ARM_SM3
2424
+#endif
2425
+#if defined(__ARM_FEATURE_SM4) && __ARM_FEATURE_SM4
2426
+# define SIMDE_ARCH_ARM_SM4
2427
+#endif
2428
+#if defined(__ARM_FEATURE_SVE) && __ARM_FEATURE_SVE
2429
+# define SIMDE_ARCH_ARM_SVE
2430
+#endif
2431
+#if defined(__ARM_FEATURE_QRDMX) && __ARM_FEATURE_QRDMX
2432
+# define SIMDE_ARCH_ARM_QRDMX
2433
+#endif
2434
+
2435
+/* Blackfin
2436
+ <https://en.wikipedia.org/wiki/Blackfin> */
2437
+#if defined(__bfin) || defined(__BFIN__) || defined(__bfin__)
2438
+# define SIMDE_ARCH_BLACKFIN 1
2439
+#endif
2440
+
2441
+/* CRIS
2442
+ <https://en.wikipedia.org/wiki/ETRAX_CRIS> */
2443
+#if defined(__CRIS_arch_version)
2444
+# define SIMDE_ARCH_CRIS __CRIS_arch_version
2445
+#elif defined(__cris__) || defined(__cris) || defined(__CRIS) || defined(__CRIS__)
2446
+# define SIMDE_ARCH_CRIS 1
2447
+#endif
2448
+
2449
+/* Convex
2450
+ <https://en.wikipedia.org/wiki/Convex_Computer> */
2451
+#if defined(__convex_c38__)
2452
+# define SIMDE_ARCH_CONVEX 38
2453
+#elif defined(__convex_c34__)
2454
+# define SIMDE_ARCH_CONVEX 34
2455
+#elif defined(__convex_c32__)
2456
+# define SIMDE_ARCH_CONVEX 32
2457
+#elif defined(__convex_c2__)
2458
+# define SIMDE_ARCH_CONVEX 2
2459
+#elif defined(__convex__)
2460
+# define SIMDE_ARCH_CONVEX 1
2461
+#endif
2462
+#if defined(SIMDE_ARCH_CONVEX)
2463
+# define SIMDE_ARCH_CONVEX_CHECK(version) ((version) <= SIMDE_ARCH_CONVEX)
2464
+#else
2465
+# define SIMDE_ARCH_CONVEX_CHECK(version) (0)
2466
+#endif
2467
+
2468
+/* Adapteva Epiphany
2469
+ <https://en.wikipedia.org/wiki/Adapteva_Epiphany> */
2470
+#if defined(__epiphany__)
2471
+# define SIMDE_ARCH_EPIPHANY 1
2472
+#endif
2473
+
2474
+/* Fujitsu FR-V
2475
+ <https://en.wikipedia.org/wiki/FR-V_(microprocessor)> */
2476
+#if defined(__frv__)
2477
+# define SIMDE_ARCH_FRV 1
2478
+#endif
2479
+
2480
+/* H8/300
2481
+ <https://en.wikipedia.org/wiki/H8_Family> */
2482
+#if defined(__H8300__)
2483
+# define SIMDE_ARCH_H8300
2484
+#endif
2485
+
2486
+/* Elbrus (8S, 8SV and successors)
2487
+ <https://en.wikipedia.org/wiki/Elbrus-8S> */
2488
+#if defined(__e2k__)
2489
+# define SIMDE_ARCH_E2K
2490
+#endif
2491
+
2492
+/* HP/PA / PA-RISC
2493
+ <https://en.wikipedia.org/wiki/PA-RISC> */
2494
+#if defined(__PA8000__) || defined(__HPPA20__) || defined(__RISC2_0__) || defined(_PA_RISC2_0)
2495
+# define SIMDE_ARCH_HPPA 20
2496
+#elif defined(__PA7100__) || defined(__HPPA11__) || defined(_PA_RISC1_1)
2497
+# define SIMDE_ARCH_HPPA 11
2498
+#elif defined(_PA_RISC1_0)
2499
+# define SIMDE_ARCH_HPPA 10
2500
+#elif defined(__hppa__) || defined(__HPPA__) || defined(__hppa)
2501
+# define SIMDE_ARCH_HPPA 1
2502
+#endif
2503
+#if defined(SIMDE_ARCH_HPPA)
2504
+# define SIMDE_ARCH_HPPA_CHECK(version) ((version) <= SIMDE_ARCH_HPPA)
2505
+#else
2506
+# define SIMDE_ARCH_HPPA_CHECK(version) (0)
2507
+#endif
2508
+
2509
+/* x86
2510
+ <https://en.wikipedia.org/wiki/X86> */
2511
+#if defined(_M_IX86)
2512
+# define SIMDE_ARCH_X86 (_M_IX86 / 100)
2513
+#elif defined(__I86__)
2514
+# define SIMDE_ARCH_X86 __I86__
2515
+#elif defined(i686) || defined(__i686) || defined(__i686__)
2516
+# define SIMDE_ARCH_X86 6
2517
+#elif defined(i586) || defined(__i586) || defined(__i586__)
2518
+# define SIMDE_ARCH_X86 5
2519
+#elif defined(i486) || defined(__i486) || defined(__i486__)
2520
+# define SIMDE_ARCH_X86 4
2521
+#elif defined(i386) || defined(__i386) || defined(__i386__)
2522
+# define SIMDE_ARCH_X86 3
2523
+#elif defined(_X86_) || defined(__X86__) || defined(__THW_INTEL__)
2524
+# define SIMDE_ARCH_X86 3
2525
+#endif
2526
+#if defined(SIMDE_ARCH_X86)
2527
+# define SIMDE_ARCH_X86_CHECK(version) ((version) <= SIMDE_ARCH_X86)
2528
+#else
2529
+# define SIMDE_ARCH_X86_CHECK(version) (0)
2530
+#endif
2531
+
2532
+/* SIMD ISA extensions for x86/x86_64 and Elbrus */
2533
+#if defined(SIMDE_ARCH_X86) || defined(SIMDE_ARCH_AMD64) || defined(SIMDE_ARCH_E2K)
2534
+# if defined(_M_IX86_FP)
2535
+# define SIMDE_ARCH_X86_MMX
2536
+# if (_M_IX86_FP >= 1)
2537
+# define SIMDE_ARCH_X86_SSE 1
2538
+# endif
2539
+# if (_M_IX86_FP >= 2)
2540
+# define SIMDE_ARCH_X86_SSE2 1
2541
+# endif
2542
+# elif defined(_M_X64)
2543
+# define SIMDE_ARCH_X86_SSE 1
2544
+# define SIMDE_ARCH_X86_SSE2 1
2545
+# else
2546
+# if defined(__MMX__)
2547
+# define SIMDE_ARCH_X86_MMX 1
2548
+# endif
2549
+# if defined(__SSE__)
2550
+# define SIMDE_ARCH_X86_SSE 1
2551
+# endif
2552
+# if defined(__SSE2__)
2553
+# define SIMDE_ARCH_X86_SSE2 1
2554
+# endif
2555
+# endif
2556
+# if defined(__SSE3__)
2557
+# define SIMDE_ARCH_X86_SSE3 1
2558
+# endif
2559
+# if defined(__SSSE3__)
2560
+# define SIMDE_ARCH_X86_SSSE3 1
2561
+# endif
2562
+# if defined(__SSE4_1__)
2563
+# define SIMDE_ARCH_X86_SSE4_1 1
2564
+# endif
2565
+# if defined(__SSE4_2__)
2566
+# define SIMDE_ARCH_X86_SSE4_2 1
2567
+# endif
2568
+# if defined(__XOP__)
2569
+# define SIMDE_ARCH_X86_XOP 1
2570
+# endif
2571
+# if defined(__AVX__)
2572
+# define SIMDE_ARCH_X86_AVX 1
2573
+# if !defined(SIMDE_ARCH_X86_SSE3)
2574
+# define SIMDE_ARCH_X86_SSE3 1
2575
+# endif
2576
+# if !defined(SIMDE_ARCH_X86_SSE4_1)
2577
+# define SIMDE_ARCH_X86_SSE4_1 1
2578
+# endif
2579
+# if !defined(SIMDE_ARCH_X86_SSE4_2)
2580
+# define SIMDE_ARCH_X86_SSE4_2 1
2581
+# endif
2582
+# endif
2583
+# if defined(__AVX2__)
2584
+# define SIMDE_ARCH_X86_AVX2 1
2585
+# if defined(_MSC_VER)
2586
+# define SIMDE_ARCH_X86_FMA 1
2587
+# endif
2588
+# endif
2589
+# if defined(__FMA__)
2590
+# define SIMDE_ARCH_X86_FMA 1
2591
+# if !defined(SIMDE_ARCH_X86_AVX)
2592
+# define SIMDE_ARCH_X86_AVX 1
2593
+# endif
2594
+# endif
2595
+# if defined(__AVX512VP2INTERSECT__)
2596
+# define SIMDE_ARCH_X86_AVX512VP2INTERSECT 1
2597
+# endif
2598
+# if defined(__AVX512BITALG__)
2599
+# define SIMDE_ARCH_X86_AVX512BITALG 1
2600
+# endif
2601
+# if defined(__AVX512VPOPCNTDQ__)
2602
+# define SIMDE_ARCH_X86_AVX512VPOPCNTDQ 1
2603
+# endif
2604
+# if defined(__AVX512VBMI__)
2605
+# define SIMDE_ARCH_X86_AVX512VBMI 1
2606
+# endif
2607
+# if defined(__AVX512VBMI2__)
2608
+# define SIMDE_ARCH_X86_AVX512VBMI2 1
2609
+# endif
2610
+# if defined(__AVX512VNNI__)
2611
+# define SIMDE_ARCH_X86_AVX512VNNI 1
2612
+# endif
2613
+# if defined(__AVX5124VNNIW__)
2614
+# define SIMDE_ARCH_X86_AVX5124VNNIW 1
2615
+# endif
2616
+# if defined(__AVX512BW__)
2617
+# define SIMDE_ARCH_X86_AVX512BW 1
2618
+# endif
2619
+# if defined(__AVX512BF16__)
2620
+# define SIMDE_ARCH_X86_AVX512BF16 1
2621
+# endif
2622
+# if defined(__AVX512CD__)
2623
+# define SIMDE_ARCH_X86_AVX512CD 1
2624
+# endif
2625
+# if defined(__AVX512DQ__)
2626
+# define SIMDE_ARCH_X86_AVX512DQ 1
2627
+# endif
2628
+# if defined(__AVX512F__)
2629
+# define SIMDE_ARCH_X86_AVX512F 1
2630
+# endif
2631
+# if defined(__AVX512VL__)
2632
+# define SIMDE_ARCH_X86_AVX512VL 1
2633
+# endif
2634
+# if defined(__AVX512FP16__)
2635
+# define SIMDE_ARCH_X86_AVX512FP16 1
2636
+# endif
2637
+# if defined(__GFNI__)
2638
+# define SIMDE_ARCH_X86_GFNI 1
2639
+# endif
2640
+# if defined(__PCLMUL__)
2641
+# define SIMDE_ARCH_X86_PCLMUL 1
2642
+# endif
2643
+# if defined(__VPCLMULQDQ__)
2644
+# define SIMDE_ARCH_X86_VPCLMULQDQ 1
2645
+# endif
2646
+# if defined(__F16C__) || (defined(HEDLEY_MSVC_VERSION) && HEDLEY_MSVC_VERSION_CHECK(19,30,0) && defined(SIMDE_ARCH_X86_AVX2) )
2647
+# define SIMDE_ARCH_X86_F16C 1
2648
+# endif
2649
+# if defined(__AES__)
2650
+# define SIMDE_ARCH_X86_AES 1
2651
+# endif
2652
+#endif
2653
+
2654
+/* Itanium
2655
+ <https://en.wikipedia.org/wiki/Itanium> */
2656
+#if defined(__ia64__) || defined(_IA64) || defined(__IA64__) || defined(__ia64) || defined(_M_IA64) || defined(__itanium__)
2657
+# define SIMDE_ARCH_IA64 1
2658
+#endif
2659
+
2660
+/* Renesas M32R
2661
+ <https://en.wikipedia.org/wiki/M32R> */
2662
+#if defined(__m32r__) || defined(__M32R__)
2663
+# define SIMDE_ARCH_M32R
2664
+#endif
2665
+
2666
+/* Motorola 68000
2667
+ <https://en.wikipedia.org/wiki/Motorola_68000> */
2668
+#if defined(__mc68060__) || defined(__MC68060__)
2669
+# define SIMDE_ARCH_M68K 68060
2670
+#elif defined(__mc68040__) || defined(__MC68040__)
2671
+# define SIMDE_ARCH_M68K 68040
2672
+#elif defined(__mc68030__) || defined(__MC68030__)
2673
+# define SIMDE_ARCH_M68K 68030
2674
+#elif defined(__mc68020__) || defined(__MC68020__)
2675
+# define SIMDE_ARCH_M68K 68020
2676
+#elif defined(__mc68010__) || defined(__MC68010__)
2677
+# define SIMDE_ARCH_M68K 68010
2678
+#elif defined(__mc68000__) || defined(__MC68000__)
2679
+# define SIMDE_ARCH_M68K 68000
2680
+#endif
2681
+#if defined(SIMDE_ARCH_M68K)
2682
+# define SIMDE_ARCH_M68K_CHECK(version) ((version) <= SIMDE_ARCH_M68K)
2683
+#else
2684
+# define SIMDE_ARCH_M68K_CHECK(version) (0)
2685
+#endif
2686
+
2687
+/* Xilinx MicroBlaze
2688
+ <https://en.wikipedia.org/wiki/MicroBlaze> */
2689
+#if defined(__MICROBLAZE__) || defined(__microblaze__)
2690
+# define SIMDE_ARCH_MICROBLAZE
2691
+#endif
2692
+
2693
+/* MIPS
2694
+ <https://en.wikipedia.org/wiki/MIPS_architecture> */
2695
+#if defined(_MIPS_ISA_MIPS64R2)
2696
+# define SIMDE_ARCH_MIPS 642
2697
+#elif defined(_MIPS_ISA_MIPS64)
2698
+# define SIMDE_ARCH_MIPS 640
2699
+#elif defined(_MIPS_ISA_MIPS32R2)
2700
+# define SIMDE_ARCH_MIPS 322
2701
+#elif defined(_MIPS_ISA_MIPS32)
2702
+# define SIMDE_ARCH_MIPS 320
2703
+#elif defined(_MIPS_ISA_MIPS4)
2704
+# define SIMDE_ARCH_MIPS 4
2705
+#elif defined(_MIPS_ISA_MIPS3)
2706
+# define SIMDE_ARCH_MIPS 3
2707
+#elif defined(_MIPS_ISA_MIPS2)
2708
+# define SIMDE_ARCH_MIPS 2
2709
+#elif defined(_MIPS_ISA_MIPS1)
2710
+# define SIMDE_ARCH_MIPS 1
2711
+#elif defined(_MIPS_ISA_MIPS) || defined(__mips) || defined(__MIPS__)
2712
+# define SIMDE_ARCH_MIPS 1
2713
+#endif
2714
+#if defined(SIMDE_ARCH_MIPS)
2715
+# define SIMDE_ARCH_MIPS_CHECK(version) ((version) <= SIMDE_ARCH_MIPS)
2716
+#else
2717
+# define SIMDE_ARCH_MIPS_CHECK(version) (0)
2718
+#endif
2719
+
2720
+#if defined(__mips_loongson_mmi)
2721
+# define SIMDE_ARCH_MIPS_LOONGSON_MMI 1
2722
+#endif
2723
+
2724
+#if defined(__mips_msa)
2725
+# define SIMDE_ARCH_MIPS_MSA 1
2726
+#endif
2727
+
2728
+/* Matsushita MN10300
2729
+ <https://en.wikipedia.org/wiki/MN103> */
2730
+#if defined(__MN10300__) || defined(__mn10300__)
2731
+# define SIMDE_ARCH_MN10300 1
2732
+#endif
2733
+
2734
+/* POWER
2735
+ <https://en.wikipedia.org/wiki/IBM_POWER_Instruction_Set_Architecture> */
2736
+#if defined(_M_PPC)
2737
+# define SIMDE_ARCH_POWER _M_PPC
2738
+#elif defined(_ARCH_PWR9)
2739
+# define SIMDE_ARCH_POWER 900
2740
+#elif defined(_ARCH_PWR8)
2741
+# define SIMDE_ARCH_POWER 800
2742
+#elif defined(_ARCH_PWR7)
2743
+# define SIMDE_ARCH_POWER 700
2744
+#elif defined(_ARCH_PWR6)
2745
+# define SIMDE_ARCH_POWER 600
2746
+#elif defined(_ARCH_PWR5)
2747
+# define SIMDE_ARCH_POWER 500
2748
+#elif defined(_ARCH_PWR4)
2749
+# define SIMDE_ARCH_POWER 400
2750
+#elif defined(_ARCH_440) || defined(__ppc440__)
2751
+# define SIMDE_ARCH_POWER 440
2752
+#elif defined(_ARCH_450) || defined(__ppc450__)
2753
+# define SIMDE_ARCH_POWER 450
2754
+#elif defined(_ARCH_601) || defined(__ppc601__)
2755
+# define SIMDE_ARCH_POWER 601
2756
+#elif defined(_ARCH_603) || defined(__ppc603__)
2757
+# define SIMDE_ARCH_POWER 603
2758
+#elif defined(_ARCH_604) || defined(__ppc604__)
2759
+# define SIMDE_ARCH_POWER 604
2760
+#elif defined(_ARCH_605) || defined(__ppc605__)
2761
+# define SIMDE_ARCH_POWER 605
2762
+#elif defined(_ARCH_620) || defined(__ppc620__)
2763
+# define SIMDE_ARCH_POWER 620
2764
+#elif defined(__powerpc) || defined(__powerpc__) || defined(__POWERPC__) || defined(__ppc__) || defined(__PPC__) || defined(_ARCH_PPC) || defined(__ppc)
2765
+# define SIMDE_ARCH_POWER 1
2766
+#endif
2767
+#if defined(SIMDE_ARCH_POWER)
2768
+ #define SIMDE_ARCH_POWER_CHECK(version) ((version) <= SIMDE_ARCH_POWER)
2769
+#else
2770
+ #define SIMDE_ARCH_POWER_CHECK(version) (0)
2771
+#endif
2772
+
2773
+#if defined(__ALTIVEC__)
2774
+# define SIMDE_ARCH_POWER_ALTIVEC SIMDE_ARCH_POWER
2775
+ #define SIMDE_ARCH_POWER_ALTIVEC_CHECK(version) ((version) <= SIMDE_ARCH_POWER)
2776
+#else
2777
+ #define SIMDE_ARCH_POWER_ALTIVEC_CHECK(version) (0)
2778
+#endif
2779
+
2780
+/* RISC-V
2781
+ <https://en.wikipedia.org/wiki/RISC-V> */
2782
+#if defined(__riscv) || defined(__riscv__)
2783
+# if __riscv_xlen == 64
2784
+# define SIMDE_ARCH_RISCV64
2785
+# elif __riscv_xlen == 32
2786
+# define SIMDE_ARCH_RISCV32
2787
+# endif
2788
+#endif
2789
+
2790
+/* RISC-V SIMD ISA extensions */
2791
+#if defined(__riscv_zve32x)
2792
+# define SIMDE_ARCH_RISCV_ZVE32X 1
2793
+#endif
2794
+#if defined(__riscv_zve32f)
2795
+# define SIMDE_ARCH_RISCV_ZVE32F 1
2796
+#endif
2797
+#if defined(__riscv_zve64x)
2798
+# define SIMDE_ARCH_RISCV_ZVE64X 1
2799
+#endif
2800
+#if defined(__riscv_zve64f)
2801
+# define SIMDE_ARCH_RISCV_ZVE64F 1
2802
+#endif
2803
+#if defined(__riscv_zve64d)
2804
+# define SIMDE_ARCH_RISCV_ZVE64D 1
2805
+#endif
2806
+#if defined(__riscv_v)
2807
+# define SIMDE_ARCH_RISCV_V 1
2808
+#endif
2809
+#if defined(__riscv_zvfh)
2810
+# define SIMDE_ARCH_RISCV_ZVFH 1
2811
+#endif
2812
+#if defined(__riscv_zvfhmin)
2813
+# define SIMDE_ARCH_RISCV_ZVFHMIN 1
2814
+#endif
2815
+
2816
+/* SPARC
2817
+ <https://en.wikipedia.org/wiki/SPARC> */
2818
+#if defined(__sparc_v9__) || defined(__sparcv9)
2819
+# define SIMDE_ARCH_SPARC 9
2820
+#elif defined(__sparc_v8__) || defined(__sparcv8)
2821
+# define SIMDE_ARCH_SPARC 8
2822
+#elif defined(__sparc_v7__) || defined(__sparcv7)
2823
+# define SIMDE_ARCH_SPARC 7
2824
+#elif defined(__sparc_v6__) || defined(__sparcv6)
2825
+# define SIMDE_ARCH_SPARC 6
2826
+#elif defined(__sparc_v5__) || defined(__sparcv5)
2827
+# define SIMDE_ARCH_SPARC 5
2828
+#elif defined(__sparc_v4__) || defined(__sparcv4)
2829
+# define SIMDE_ARCH_SPARC 4
2830
+#elif defined(__sparc_v3__) || defined(__sparcv3)
2831
+# define SIMDE_ARCH_SPARC 3
2832
+#elif defined(__sparc_v2__) || defined(__sparcv2)
2833
+# define SIMDE_ARCH_SPARC 2
2834
+#elif defined(__sparc_v1__) || defined(__sparcv1)
2835
+# define SIMDE_ARCH_SPARC 1
2836
+#elif defined(__sparc__) || defined(__sparc)
2837
+# define SIMDE_ARCH_SPARC 1
2838
+#endif
2839
+#if defined(SIMDE_ARCH_SPARC)
2840
+ #define SIMDE_ARCH_SPARC_CHECK(version) ((version) <= SIMDE_ARCH_SPARC)
2841
+#else
2842
+ #define SIMDE_ARCH_SPARC_CHECK(version) (0)
2843
+#endif
2844
+
2845
+/* SuperH
2846
+ <https://en.wikipedia.org/wiki/SuperH> */
2847
+#if defined(__sh5__) || defined(__SH5__)
2848
+# define SIMDE_ARCH_SUPERH 5
2849
+#elif defined(__sh4__) || defined(__SH4__)
2850
+# define SIMDE_ARCH_SUPERH 4
2851
+#elif defined(__sh3__) || defined(__SH3__)
2852
+# define SIMDE_ARCH_SUPERH 3
2853
+#elif defined(__sh2__) || defined(__SH2__)
2854
+# define SIMDE_ARCH_SUPERH 2
2855
+#elif defined(__sh1__) || defined(__SH1__)
2856
+# define SIMDE_ARCH_SUPERH 1
2857
+#elif defined(__sh__) || defined(__SH__)
2858
+# define SIMDE_ARCH_SUPERH 1
2859
+#endif
2860
+
2861
+/* IBM System z
2862
+ <https://en.wikipedia.org/wiki/IBM_System_z> */
2863
+#if defined(__370__) || defined(__THW_370__) || defined(__s390__) || defined(__s390x__) || defined(__zarch__) || defined(__SYSC_ZARCH__)
2864
+# define SIMDE_ARCH_ZARCH __ARCH__
2865
+#endif
2866
+#if defined(SIMDE_ARCH_ZARCH)
2867
+ #define SIMDE_ARCH_ZARCH_CHECK(version) ((version) <= SIMDE_ARCH_ZARCH)
2868
+#else
2869
+ #define SIMDE_ARCH_ZARCH_CHECK(version) (0)
2870
+#endif
2871
+
2872
+#if defined(SIMDE_ARCH_ZARCH) && defined(__VEC__)
2873
+ #define SIMDE_ARCH_ZARCH_ZVECTOR SIMDE_ARCH_ZARCH
2874
+#endif
2875
+
2876
+/* TMS320 DSP
2877
+ <https://en.wikipedia.org/wiki/Texas_Instruments_TMS320> */
2878
+#if defined(_TMS320C6740) || defined(__TMS320C6740__)
2879
+# define SIMDE_ARCH_TMS320 6740
2880
+#elif defined(_TMS320C6700_PLUS) || defined(__TMS320C6700_PLUS__)
2881
+# define SIMDE_ARCH_TMS320 6701
2882
+#elif defined(_TMS320C6700) || defined(__TMS320C6700__)
2883
+# define SIMDE_ARCH_TMS320 6700
2884
+#elif defined(_TMS320C6600) || defined(__TMS320C6600__)
2885
+# define SIMDE_ARCH_TMS320 6600
2886
+#elif defined(_TMS320C6400_PLUS) || defined(__TMS320C6400_PLUS__)
2887
+# define SIMDE_ARCH_TMS320 6401
2888
+#elif defined(_TMS320C6400) || defined(__TMS320C6400__)
2889
+# define SIMDE_ARCH_TMS320 6400
2890
+#elif defined(_TMS320C6200) || defined(__TMS320C6200__)
2891
+# define SIMDE_ARCH_TMS320 6200
2892
+#elif defined(_TMS320C55X) || defined(__TMS320C55X__)
2893
+# define SIMDE_ARCH_TMS320 550
2894
+#elif defined(_TMS320C54X) || defined(__TMS320C54X__)
2895
+# define SIMDE_ARCH_TMS320 540
2896
+#elif defined(_TMS320C28X) || defined(__TMS320C28X__)
2897
+# define SIMDE_ARCH_TMS320 280
2898
+#endif
2899
+#if defined(SIMDE_ARCH_TMS320)
2900
+ #define SIMDE_ARCH_TMS320_CHECK(version) ((version) <= SIMDE_ARCH_TMS320)
2901
+#else
2902
+ #define SIMDE_ARCH_TMS320_CHECK(version) (0)
2903
+#endif
2904
+
2905
+/* WebAssembly */
2906
+#if defined(__wasm__)
2907
+# define SIMDE_ARCH_WASM 1
2908
+#endif
2909
+
2910
+#if defined(SIMDE_ARCH_WASM) && defined(__wasm_simd128__)
2911
+# define SIMDE_ARCH_WASM_SIMD128
2912
+#endif
2913
+
2914
+#if defined(SIMDE_ARCH_WASM) && defined(__wasm_relaxed_simd__)
2915
+# define SIMDE_ARCH_WASM_RELAXED_SIMD
2916
+#endif
2917
+
2918
+/* Xtensa
2919
+ <https://en.wikipedia.org/wiki/> */
2920
+#if defined(__xtensa__) || defined(__XTENSA__)
2921
+# define SIMDE_ARCH_XTENSA 1
2922
+#endif
2923
+
2924
+/* Availability of 16-bit floating-point arithmetic intrinsics */
2925
+#if defined(__ARM_FEATURE_FP16_VECTOR_ARITHMETIC)
2926
+# define SIMDE_ARCH_ARM_NEON_FP16
2927
+#endif
2928
+
2929
+/* Availability of 16-bit brain floating-point arithmetic intrinsics */
2930
+#if defined(__ARM_FEATURE_BF16_VECTOR_ARITHMETIC)
2931
+# define SIMDE_ARCH_ARM_NEON_BF16
2932
+#endif
2933
+
2934
+/* LoongArch
2935
+ <https://en.wikipedia.org/wiki/Loongson#LoongArch> */
2936
+#if defined(__loongarch32)
2937
+# define SIMDE_ARCH_LOONGARCH 1
2938
+#elif defined(__loongarch64)
2939
+# define SIMDE_ARCH_LOONGARCH 2
2940
+#endif
2941
+
2942
+/* LSX: LoongArch 128-bits SIMD extension */
2943
+#if defined(__loongarch_sx)
2944
+# define SIMDE_ARCH_LOONGARCH_LSX 1
2945
+#endif
2946
+
2947
+/* LASX: LoongArch 256-bits SIMD extension */
2948
+#if defined(__loongarch_asx)
2949
+# define SIMDE_ARCH_LOONGARCH_LASX 2
2950
+#endif
2951
+
2952
+#endif /* !defined(SIMDE_ARCH_H) */
2953
+/* :: End simde/simde-arch.h :: */
2954
+/* AUTOMATICALLY GENERATED FILE, DO NOT MODIFY */
2955
+/* 71fd833d9666141edcd1d3c109a80e228303d8d7 */
2956
+/* :: Begin simde/simde-features.h :: */
2957
+/* SPDX-License-Identifier: MIT
2958
+ *
2959
+ * Permission is hereby granted, free of charge, to any person
2960
+ * obtaining a copy of this software and associated documentation
2961
+ * files (the "Software"), to deal in the Software without
2962
+ * restriction, including without limitation the rights to use, copy,
2963
+ * modify, merge, publish, distribute, sublicense, and/or sell copies
2964
+ * of the Software, and to permit persons to whom the Software is
2965
+ * furnished to do so, subject to the following conditions:
2966
+ *
2967
+ * The above copyright notice and this permission notice shall be
2968
+ * included in all copies or substantial portions of the Software.
2969
+ *
2970
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
2971
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2972
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
2973
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
2974
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
2975
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2976
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2977
+ * SOFTWARE.
2978
+ *
2979
+ * Copyright:
2980
+ * 2020 Evan Nemerson <evan@nemerson.com>
2981
+ * 2023 Ju-Hung Li <jhlee@pllab.cs.nthu.edu.tw> (Copyright owned by NTHU pllab)
2982
+ */
2983
+
2984
+/* simde-arch.h is used to determine which features are available according
2985
+ to the compiler. However, we want to make it possible to forcibly enable
2986
+ or disable APIs */
2987
+
2988
+#if !defined(SIMDE_FEATURES_H)
2989
+#define SIMDE_FEATURES_H
2990
+
2991
+/* AUTOMATICALLY GENERATED FILE, DO NOT MODIFY */
2992
+/* 71fd833d9666141edcd1d3c109a80e228303d8d7 */
2993
+/* AUTOMATICALLY GENERATED FILE, DO NOT MODIFY */
2994
+/* 71fd833d9666141edcd1d3c109a80e228303d8d7 */
2995
+/* :: Begin simde/simde-diagnostic.h :: */
2996
+/* SPDX-License-Identifier: MIT
2997
+ *
2998
+ * Permission is hereby granted, free of charge, to any person
2999
+ * obtaining a copy of this software and associated documentation
3000
+ * files (the "Software"), to deal in the Software without
3001
+ * restriction, including without limitation the rights to use, copy,
3002
+ * modify, merge, publish, distribute, sublicense, and/or sell copies
3003
+ * of the Software, and to permit persons to whom the Software is
3004
+ * furnished to do so, subject to the following conditions:
3005
+ *
3006
+ * The above copyright notice and this permission notice shall be
3007
+ * included in all copies or substantial portions of the Software.
3008
+ *
3009
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
3010
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
3011
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
3012
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
3013
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
3014
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
3015
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3016
+ * SOFTWARE.
3017
+ *
3018
+ * Copyright:
3019
+ * 2017-2020 Evan Nemerson <evan@nemerson.com>
3020
+ */
3021
+
3022
+/* SIMDe targets a very wide range of standards and compilers, and our
3023
+ * goal is to compile cleanly even with extremely aggressive warnings
3024
+ * (i.e., -Weverything in clang, -Wextra in GCC, /W4 for MSVC, etc.)
3025
+ * treated as errors.
3026
+ *
3027
+ * While our preference is to resolve the underlying issue a given
3028
+ * diagnostic is warning us about, sometimes that's not possible.
3029
+ * Fixing a warning in one compiler may cause problems in another.
3030
+ * Sometimes a warning doesn't really apply to us (false positives),
3031
+ * and sometimes adhering to a warning would mean dropping a feature
3032
+ * we *know* the compiler supports since we have tested specifically
3033
+ * for the compiler or feature.
3034
+ *
3035
+ * When practical, warnings are only disabled for specific code. For
3036
+ * a list of warnings which are enabled by default in all SIMDe code,
3037
+ * see SIMDE_DISABLE_UNWANTED_DIAGNOSTICS. Note that we restore the
3038
+ * warning stack when SIMDe is done parsing, so code which includes
3039
+ * SIMDe is not deprived of these warnings.
3040
+ */
3041
+
3042
+#if !defined(SIMDE_DIAGNOSTIC_H)
3043
+#define SIMDE_DIAGNOSTIC_H
3044
+
3045
+/* AUTOMATICALLY GENERATED FILE, DO NOT MODIFY */
3046
+/* 71fd833d9666141edcd1d3c109a80e228303d8d7 */
3047
+/* AUTOMATICALLY GENERATED FILE, DO NOT MODIFY */
3048
+/* 71fd833d9666141edcd1d3c109a80e228303d8d7 */
3049
+/* AUTOMATICALLY GENERATED FILE, DO NOT MODIFY */
3050
+/* 71fd833d9666141edcd1d3c109a80e228303d8d7 */
3051
+
3052
+/* This is only to help us implement functions like _mm_undefined_ps. */
3053
+#if defined(SIMDE_DIAGNOSTIC_DISABLE_UNINITIALIZED_)
3054
+ #undef SIMDE_DIAGNOSTIC_DISABLE_UNINITIALIZED_
3055
+#endif
3056
+#if HEDLEY_HAS_WARNING("-Wuninitialized")
3057
+ #define SIMDE_DIAGNOSTIC_DISABLE_UNINITIALIZED_ _Pragma("clang diagnostic ignored \"-Wuninitialized\"")
3058
+#elif HEDLEY_GCC_VERSION_CHECK(4,2,0)
3059
+ #define SIMDE_DIAGNOSTIC_DISABLE_UNINITIALIZED_ _Pragma("GCC diagnostic ignored \"-Wuninitialized\"")
3060
+#elif HEDLEY_PGI_VERSION_CHECK(19,10,0)
3061
+ #define SIMDE_DIAGNOSTIC_DISABLE_UNINITIALIZED_ _Pragma("diag_suppress 549")
3062
+#elif HEDLEY_SUNPRO_VERSION_CHECK(5,14,0) && defined(__cplusplus)
3063
+ #define SIMDE_DIAGNOSTIC_DISABLE_UNINITIALIZED_ _Pragma("error_messages(off,SEC_UNINITIALIZED_MEM_READ,SEC_UNDEFINED_RETURN_VALUE,unassigned)")
3064
+#elif HEDLEY_SUNPRO_VERSION_CHECK(5,14,0)
3065
+ #define SIMDE_DIAGNOSTIC_DISABLE_UNINITIALIZED_ _Pragma("error_messages(off,SEC_UNINITIALIZED_MEM_READ,SEC_UNDEFINED_RETURN_VALUE)")
3066
+#elif HEDLEY_SUNPRO_VERSION_CHECK(5,12,0) && defined(__cplusplus)
3067
+ #define SIMDE_DIAGNOSTIC_DISABLE_UNINITIALIZED_ _Pragma("error_messages(off,unassigned)")
3068
+#elif \
3069
+ HEDLEY_TI_VERSION_CHECK(16,9,9) || \
3070
+ HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0) || \
3071
+ HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
3072
+ HEDLEY_TI_CLPRU_VERSION_CHECK(2,3,2)
3073
+ #define SIMDE_DIAGNOSTIC_DISABLE_UNINITIALIZED_ _Pragma("diag_suppress 551")
3074
+#elif HEDLEY_INTEL_VERSION_CHECK(13,0,0)
3075
+ #define SIMDE_DIAGNOSTIC_DISABLE_UNINITIALIZED_ _Pragma("warning(disable:592)")
3076
+#elif HEDLEY_MSVC_VERSION_CHECK(19,0,0) && !defined(__MSVC_RUNTIME_CHECKS)
3077
+ #define SIMDE_DIAGNOSTIC_DISABLE_UNINITIALIZED_ __pragma(warning(disable:4700))
3078
+#endif
3079
+
3080
+/* GCC emits a lot of "notes" about the ABI being different for things
3081
+ * in newer versions of GCC. We don't really care because all our
3082
+ * functions are inlined and don't generate ABI. */
3083
+#if HEDLEY_GCC_VERSION_CHECK(7,0,0)
3084
+ #define SIMDE_DIAGNOSTIC_DISABLE_PSABI_ _Pragma("GCC diagnostic ignored \"-Wpsabi\"")
3085
+#else
3086
+ #define SIMDE_DIAGNOSTIC_DISABLE_PSABI_
3087
+#endif
3088
+
3089
+/* Since MMX uses x87 FP registers, you're supposed to call _mm_empty()
3090
+ * after each MMX function before any floating point instructions.
3091
+ * Some compilers warn about functions which use MMX functions but
3092
+ * don't call _mm_empty(). However, since SIMDe is implementyng the
3093
+ * MMX API we shouldn't be calling _mm_empty(); we leave it to the
3094
+ * caller to invoke simde_mm_empty(). */
3095
+#if HEDLEY_INTEL_VERSION_CHECK(19,0,0)
3096
+ #define SIMDE_DIAGNOSTIC_DISABLE_NO_EMMS_INSTRUCTION_ _Pragma("warning(disable:13200 13203)")
3097
+#elif defined(HEDLEY_MSVC_VERSION)
3098
+ #define SIMDE_DIAGNOSTIC_DISABLE_NO_EMMS_INSTRUCTION_ __pragma(warning(disable:4799))
3099
+#else
3100
+ #define SIMDE_DIAGNOSTIC_DISABLE_NO_EMMS_INSTRUCTION_
3101
+#endif
3102
+
3103
+/* Intel is pushing people to use OpenMP SIMD instead of Cilk+, so they
3104
+ * emit a diagnostic if you use #pragma simd instead of
3105
+ * #pragma omp simd. SIMDe supports OpenMP SIMD, you just need to
3106
+ * compile with -qopenmp or -qopenmp-simd and define
3107
+ * SIMDE_ENABLE_OPENMP. Cilk+ is just a fallback. */
3108
+#if HEDLEY_INTEL_VERSION_CHECK(18,0,0)
3109
+ #define SIMDE_DIAGNOSTIC_DISABLE_SIMD_PRAGMA_DEPRECATED_ _Pragma("warning(disable:3948)")
3110
+#else
3111
+ #define SIMDE_DIAGNOSTIC_DISABLE_SIMD_PRAGMA_DEPRECATED_
3112
+#endif
3113
+
3114
+/* MSVC emits a diagnostic when we call a function (like
3115
+ * simde_mm_set_epi32) while initializing a struct. We currently do
3116
+ * this a *lot* in the tests. */
3117
+#if \
3118
+ defined(HEDLEY_MSVC_VERSION)
3119
+ #define SIMDE_DIAGNOSTIC_DISABLE_NON_CONSTANT_AGGREGATE_INITIALIZER_ __pragma(warning(disable:4204))
3120
+#else
3121
+ #define SIMDE_DIAGNOSTIC_DISABLE_NON_CONSTANT_AGGREGATE_INITIALIZER_
3122
+#endif
3123
+
3124
+/* This warning needs a lot of work. It is triggered if all you do is
3125
+ * pass the value to memcpy/__builtin_memcpy, or if you initialize a
3126
+ * member of the union, even if that member takes up the entire union.
3127
+ * Last tested with clang-10, hopefully things will improve in the
3128
+ * future; if clang fixes this I'd love to enable it. */
3129
+#if \
3130
+ HEDLEY_HAS_WARNING("-Wconditional-uninitialized")
3131
+ #define SIMDE_DIAGNOSTIC_DISABLE_CONDITIONAL_UNINITIALIZED_ _Pragma("clang diagnostic ignored \"-Wconditional-uninitialized\"")
3132
+#else
3133
+ #define SIMDE_DIAGNOSTIC_DISABLE_CONDITIONAL_UNINITIALIZED_
3134
+#endif
3135
+
3136
+/* This warning is meant to catch things like `0.3 + 0.4 == 0.7`, which
3137
+ * will is false. However, SIMDe uses these operations exclusively
3138
+ * for things like _mm_cmpeq_ps, for which we really do want to check
3139
+ * for equality (or inequality).
3140
+ *
3141
+ * If someone wants to put together a SIMDE_FLOAT_EQUAL(a, op, b) macro
3142
+ * which just wraps a check in some code do disable this diagnostic I'd
3143
+ * be happy to accept it. */
3144
+#if \
3145
+ HEDLEY_HAS_WARNING("-Wfloat-equal") || \
3146
+ HEDLEY_GCC_VERSION_CHECK(3,0,0)
3147
+ #define SIMDE_DIAGNOSTIC_DISABLE_FLOAT_EQUAL_ _Pragma("GCC diagnostic ignored \"-Wfloat-equal\"")
3148
+#else
3149
+ #define SIMDE_DIAGNOSTIC_DISABLE_FLOAT_EQUAL_
3150
+#endif
3151
+
3152
+/* This is because we use HEDLEY_STATIC_ASSERT for static assertions.
3153
+ * If Hedley can't find an implementation it will preprocess to
3154
+ * nothing, which means there will be a trailing semi-colon. */
3155
+#if HEDLEY_HAS_WARNING("-Wextra-semi")
3156
+ #define SIMDE_DIAGNOSTIC_DISABLE_EXTRA_SEMI_ _Pragma("clang diagnostic ignored \"-Wextra-semi\"")
3157
+#elif HEDLEY_GCC_VERSION_CHECK(8,1,0) && defined(__cplusplus)
3158
+ #define SIMDE_DIAGNOSTIC_DISABLE_EXTRA_SEMI_ _Pragma("GCC diagnostic ignored \"-Wextra-semi\"")
3159
+#else
3160
+ #define SIMDE_DIAGNOSTIC_DISABLE_EXTRA_SEMI_
3161
+#endif
3162
+
3163
+/* We do use a few variadic macros, which technically aren't available
3164
+ * until C99 and C++11, but every compiler I'm aware of has supported
3165
+ * them for much longer. That said, usage is isolated to the test
3166
+ * suite and compilers known to support them. */
3167
+#if HEDLEY_HAS_WARNING("-Wvariadic-macros") || HEDLEY_GCC_VERSION_CHECK(4,0,0)
3168
+ #if HEDLEY_HAS_WARNING("-Wc++98-compat-pedantic")
3169
+ #define SIMDE_DIAGNOSTIC_DISABLE_VARIADIC_MACROS_ \
3170
+ _Pragma("clang diagnostic ignored \"-Wvariadic-macros\"") \
3171
+ _Pragma("clang diagnostic ignored \"-Wc++98-compat-pedantic\"")
3172
+ #else
3173
+ #define SIMDE_DIAGNOSTIC_DISABLE_VARIADIC_MACROS_ _Pragma("GCC diagnostic ignored \"-Wvariadic-macros\"")
3174
+ #endif
3175
+#else
3176
+ #define SIMDE_DIAGNOSTIC_DISABLE_VARIADIC_MACROS_
3177
+#endif
3178
+
3179
+/* emscripten requires us to use a __wasm_unimplemented_simd128__ macro
3180
+ * before we can access certain SIMD intrinsics, but this diagnostic
3181
+ * warns about it being a reserved name. It is a reserved name, but
3182
+ * it's reserved for the compiler and we are using it to convey
3183
+ * information to the compiler.
3184
+ *
3185
+ * This is also used when enabling native aliases since we don't get to
3186
+ * choose the macro names. */
3187
+#if HEDLEY_HAS_WARNING("-Wreserved-id-macro")
3188
+ #define SIMDE_DIAGNOSTIC_DISABLE_RESERVED_ID_MACRO_ _Pragma("clang diagnostic ignored \"-Wreserved-id-macro\"")
3189
+#else
3190
+ #define SIMDE_DIAGNOSTIC_DISABLE_RESERVED_ID_MACRO_
3191
+#endif
3192
+
3193
+/* Similar to above; types like simde__m128i are reserved due to the
3194
+ * double underscore, but we didn't choose them, Intel did. */
3195
+#if HEDLEY_HAS_WARNING("-Wreserved-identifier")
3196
+ #define SIMDE_DIAGNOSTIC_DISABLE_RESERVED_ID_ _Pragma("clang diagnostic ignored \"-Wreserved-identifier\"")
3197
+#else
3198
+ #define SIMDE_DIAGNOSTIC_DISABLE_RESERVED_ID_
3199
+#endif
3200
+
3201
+/* clang 3.8 warns about the packed attribute being unnecessary when
3202
+ * used in the _mm_loadu_* functions. That *may* be true for version
3203
+ * 3.8, but for later versions it is crucial in order to make unaligned
3204
+ * access safe. */
3205
+#if HEDLEY_HAS_WARNING("-Wpacked")
3206
+ #define SIMDE_DIAGNOSTIC_DISABLE_PACKED_ _Pragma("clang diagnostic ignored \"-Wpacked\"")
3207
+#else
3208
+ #define SIMDE_DIAGNOSTIC_DISABLE_PACKED_
3209
+#endif
3210
+
3211
+/* Triggered when assigning a float to a double implicitly. We use
3212
+ * explicit casts in SIMDe, this is only used in the test suite. */
3213
+#if HEDLEY_HAS_WARNING("-Wdouble-promotion")
3214
+ #define SIMDE_DIAGNOSTIC_DISABLE_DOUBLE_PROMOTION_ _Pragma("clang diagnostic ignored \"-Wdouble-promotion\"")
3215
+#else
3216
+ #define SIMDE_DIAGNOSTIC_DISABLE_DOUBLE_PROMOTION_
3217
+#endif
3218
+
3219
+/* Several compilers treat conformant array parameters as VLAs. We
3220
+ * test to make sure we're in C mode (C++ doesn't support CAPs), and
3221
+ * that the version of the standard supports CAPs. We also reject
3222
+ * some buggy compilers like MSVC (the logic is in Hedley if you want
3223
+ * to take a look), but with certain warnings enabled some compilers
3224
+ * still like to emit a diagnostic. */
3225
+#if HEDLEY_HAS_WARNING("-Wvla")
3226
+ #define SIMDE_DIAGNOSTIC_DISABLE_VLA_ _Pragma("clang diagnostic ignored \"-Wvla\"")
3227
+#elif HEDLEY_GCC_VERSION_CHECK(4,3,0)
3228
+ #define SIMDE_DIAGNOSTIC_DISABLE_VLA_ _Pragma("GCC diagnostic ignored \"-Wvla\"")
3229
+#else
3230
+ #define SIMDE_DIAGNOSTIC_DISABLE_VLA_
3231
+#endif
3232
+
3233
+/* If you add an unused attribute to a function and don't use it, clang
3234
+ * may emit this. */
3235
+#if HEDLEY_HAS_WARNING("-Wused-but-marked-unused")
3236
+ #define SIMDE_DIAGNOSTIC_DISABLE_USED_BUT_MARKED_UNUSED_ _Pragma("clang diagnostic ignored \"-Wused-but-marked-unused\"")
3237
+#else
3238
+ #define SIMDE_DIAGNOSTIC_DISABLE_USED_BUT_MARKED_UNUSED_
3239
+#endif
3240
+
3241
+#if HEDLEY_HAS_WARNING("-Wpass-failed")
3242
+ #define SIMDE_DIAGNOSTIC_DISABLE_PASS_FAILED_ _Pragma("clang diagnostic ignored \"-Wpass-failed\"")
3243
+#else
3244
+ #define SIMDE_DIAGNOSTIC_DISABLE_PASS_FAILED_
3245
+#endif
3246
+
3247
+#if HEDLEY_HAS_WARNING("-Wpadded")
3248
+ #define SIMDE_DIAGNOSTIC_DISABLE_PADDED_ _Pragma("clang diagnostic ignored \"-Wpadded\"")
3249
+#elif HEDLEY_MSVC_VERSION_CHECK(19,0,0) /* Likely goes back further */
3250
+ #define SIMDE_DIAGNOSTIC_DISABLE_PADDED_ __pragma(warning(disable:4324))
3251
+#else
3252
+ #define SIMDE_DIAGNOSTIC_DISABLE_PADDED_
3253
+#endif
3254
+
3255
+#if HEDLEY_HAS_WARNING("-Wzero-as-null-pointer-constant")
3256
+ #define SIMDE_DIAGNOSTIC_DISABLE_ZERO_AS_NULL_POINTER_CONSTANT_ _Pragma("clang diagnostic ignored \"-Wzero-as-null-pointer-constant\"")
3257
+#else
3258
+ #define SIMDE_DIAGNOSTIC_DISABLE_ZERO_AS_NULL_POINTER_CONSTANT_
3259
+#endif
3260
+
3261
+#if HEDLEY_HAS_WARNING("-Wold-style-cast")
3262
+ #define SIMDE_DIAGNOSTIC_DISABLE_OLD_STYLE_CAST_ _Pragma("clang diagnostic ignored \"-Wold-style-cast\"")
3263
+#else
3264
+ #define SIMDE_DIAGNOSTIC_DISABLE_OLD_STYLE_CAST_
3265
+#endif
3266
+
3267
+#if HEDLEY_HAS_WARNING("-Wcast-function-type") || HEDLEY_GCC_VERSION_CHECK(8,0,0)
3268
+ #define SIMDE_DIAGNOSTIC_DISABLE_CAST_FUNCTION_TYPE_ _Pragma("GCC diagnostic ignored \"-Wcast-function-type\"")
3269
+#else
3270
+ #define SIMDE_DIAGNOSTIC_DISABLE_CAST_FUNCTION_TYPE_
3271
+#endif
3272
+
3273
+/* clang will emit this warning when we use C99 extensions when not in
3274
+ * C99 mode, even though it does support this. In such cases we check
3275
+ * the compiler and version first, so we know it's not a problem. */
3276
+#if HEDLEY_HAS_WARNING("-Wc99-extensions")
3277
+ #define SIMDE_DIAGNOSTIC_DISABLE_C99_EXTENSIONS_ _Pragma("clang diagnostic ignored \"-Wc99-extensions\"")
3278
+#else
3279
+ #define SIMDE_DIAGNOSTIC_DISABLE_C99_EXTENSIONS_
3280
+#endif
3281
+
3282
+/* Similar problm as above; we rely on some basic C99 support, but clang
3283
+ * has started warning obut this even in C17 mode with -Weverything. */
3284
+#if HEDLEY_HAS_WARNING("-Wdeclaration-after-statement")
3285
+ #define SIMDE_DIAGNOSTIC_DISABLE_DECLARATION_AFTER_STATEMENT_ _Pragma("clang diagnostic ignored \"-Wdeclaration-after-statement\"")
3286
+#else
3287
+ #define SIMDE_DIAGNOSTIC_DISABLE_DECLARATION_AFTER_STATEMENT_
3288
+#endif
3289
+
3290
+/* https://github.com/simd-everywhere/simde/issues/277 */
3291
+#if defined(HEDLEY_GCC_VERSION) && HEDLEY_GCC_VERSION_CHECK(4,6,0) && !HEDLEY_GCC_VERSION_CHECK(6,4,0) && defined(__cplusplus)
3292
+ #define SIMDE_DIAGNOSTIC_DISABLE_BUGGY_UNUSED_BUT_SET_VARIBALE_ _Pragma("GCC diagnostic ignored \"-Wunused-but-set-variable\"")
3293
+#else
3294
+ #define SIMDE_DIAGNOSTIC_DISABLE_BUGGY_UNUSED_BUT_SET_VARIBALE_
3295
+#endif
3296
+
3297
+/* This is the warning that you normally define _CRT_SECURE_NO_WARNINGS
3298
+ * to silence, but you have to do that before including anything and
3299
+ * that would require reordering includes. */
3300
+#if defined(_MSC_VER)
3301
+ #define SIMDE_DIAGNOSTIC_DISABLE_ANNEX_K_ __pragma(warning(disable:4996))
3302
+#else
3303
+ #define SIMDE_DIAGNOSTIC_DISABLE_ANNEX_K_
3304
+#endif
3305
+
3306
+/* Some compilers, such as clang, may use `long long` for 64-bit
3307
+ * integers, but `long long` triggers a diagnostic with
3308
+ * -Wc++98-compat-pedantic which says 'long long' is incompatible with
3309
+ * C++98. */
3310
+#if HEDLEY_HAS_WARNING("-Wc++98-compat-pedantic")
3311
+ #if HEDLEY_HAS_WARNING("-Wc++11-long-long")
3312
+ #define SIMDE_DIAGNOSTIC_DISABLE_CPP98_COMPAT_PEDANTIC_ \
3313
+ _Pragma("clang diagnostic ignored \"-Wc++98-compat-pedantic\"") \
3314
+ _Pragma("clang diagnostic ignored \"-Wc++11-long-long\"")
3315
+ #else
3316
+ #define SIMDE_DIAGNOSTIC_DISABLE_CPP98_COMPAT_PEDANTIC_ _Pragma("clang diagnostic ignored \"-Wc++98-compat-pedantic\"")
3317
+ #endif
3318
+#else
3319
+ #define SIMDE_DIAGNOSTIC_DISABLE_CPP98_COMPAT_PEDANTIC_
3320
+#endif
3321
+
3322
+/* Some problem as above */
3323
+#if HEDLEY_HAS_WARNING("-Wc++11-long-long")
3324
+ #define SIMDE_DIAGNOSTIC_DISABLE_CPP11_LONG_LONG_ _Pragma("clang diagnostic ignored \"-Wc++11-long-long\"")
3325
+#else
3326
+ #define SIMDE_DIAGNOSTIC_DISABLE_CPP11_LONG_LONG_
3327
+#endif
3328
+
3329
+/* emscripten emits this whenever stdin/stdout/stderr is used in a
3330
+ * macro. */
3331
+#if HEDLEY_HAS_WARNING("-Wdisabled-macro-expansion")
3332
+ #define SIMDE_DIAGNOSTIC_DISABLE_DISABLED_MACRO_EXPANSION_ _Pragma("clang diagnostic ignored \"-Wdisabled-macro-expansion\"")
3333
+#else
3334
+ #define SIMDE_DIAGNOSTIC_DISABLE_DISABLED_MACRO_EXPANSION_
3335
+#endif
3336
+
3337
+/* Clang uses C11 generic selections to implement some AltiVec
3338
+ * functions, which triggers this diagnostic when not compiling
3339
+ * in C11 mode */
3340
+#if HEDLEY_HAS_WARNING("-Wc11-extensions")
3341
+ #define SIMDE_DIAGNOSTIC_DISABLE_C11_EXTENSIONS_ _Pragma("clang diagnostic ignored \"-Wc11-extensions\"")
3342
+#else
3343
+ #define SIMDE_DIAGNOSTIC_DISABLE_C11_EXTENSIONS_
3344
+#endif
3345
+
3346
+/* Clang sometimes triggers this warning in macros in the AltiVec and
3347
+ * NEON headers, or due to missing functions. */
3348
+#if HEDLEY_HAS_WARNING("-Wvector-conversion")
3349
+ #define SIMDE_DIAGNOSTIC_DISABLE_VECTOR_CONVERSION_ _Pragma("clang diagnostic ignored \"-Wvector-conversion\"")
3350
+ /* For NEON, the situation with -Wvector-conversion in clang < 10 is
3351
+ * bad enough that we just disable the warning altogether. On x86,
3352
+ * clang has similar issues on several sse4.2+ intrinsics before 3.8. */
3353
+ #if \
3354
+ (defined(SIMDE_ARCH_ARM) && SIMDE_DETECT_CLANG_VERSION_NOT(10,0,0)) || \
3355
+ SIMDE_DETECT_CLANG_VERSION_NOT(3,8,0)
3356
+ #define SIMDE_DIAGNOSTIC_DISABLE_BUGGY_VECTOR_CONVERSION_ SIMDE_DIAGNOSTIC_DISABLE_VECTOR_CONVERSION_
3357
+ #endif
3358
+#else
3359
+ #define SIMDE_DIAGNOSTIC_DISABLE_VECTOR_CONVERSION_
3360
+#endif
3361
+#if !defined(SIMDE_DIAGNOSTIC_DISABLE_BUGGY_VECTOR_CONVERSION_)
3362
+ #define SIMDE_DIAGNOSTIC_DISABLE_BUGGY_VECTOR_CONVERSION_
3363
+#endif
3364
+
3365
+/* Prior to 5.0, clang didn't support disabling diagnostics in
3366
+ * statement exprs. As a result, some macros we use don't
3367
+ * properly silence warnings. */
3368
+#if SIMDE_DETECT_CLANG_VERSION_NOT(5,0,0) && HEDLEY_HAS_WARNING("-Wcast-qual") && HEDLEY_HAS_WARNING("-Wcast-align")
3369
+ #define SIMDE_DIAGNOSTIC_DISABLE_BUGGY_CASTS_ _Pragma("clang diagnostic ignored \"-Wcast-qual\"") _Pragma("clang diagnostic ignored \"-Wcast-align\"")
3370
+#elif SIMDE_DETECT_CLANG_VERSION_NOT(5,0,0) && HEDLEY_HAS_WARNING("-Wcast-qual")
3371
+ #define SIMDE_DIAGNOSTIC_DISABLE_BUGGY_CASTS_ _Pragma("clang diagnostic ignored \"-Wcast-qual\"")
3372
+#elif SIMDE_DETECT_CLANG_VERSION_NOT(5,0,0) && HEDLEY_HAS_WARNING("-Wcast-align")
3373
+ #define SIMDE_DIAGNOSTIC_DISABLE_BUGGY_CASTS_ _Pragma("clang diagnostic ignored \"-Wcast-align\"")
3374
+#else
3375
+ #define SIMDE_DIAGNOSTIC_DISABLE_BUGGY_CASTS_
3376
+#endif
3377
+
3378
+/* SLEEF triggers this a *lot* in their headers */
3379
+#if HEDLEY_HAS_WARNING("-Wignored-qualifiers")
3380
+ #define SIMDE_DIAGNOSTIC_DISABLE_IGNORED_QUALIFIERS_ _Pragma("clang diagnostic ignored \"-Wignored-qualifiers\"")
3381
+#elif HEDLEY_GCC_VERSION_CHECK(4,3,0)
3382
+ #define SIMDE_DIAGNOSTIC_DISABLE_IGNORED_QUALIFIERS_ _Pragma("GCC diagnostic ignored \"-Wignored-qualifiers\"")
3383
+#else
3384
+ #define SIMDE_DIAGNOSTIC_DISABLE_IGNORED_QUALIFIERS_
3385
+#endif
3386
+
3387
+/* GCC emits this under some circumstances when using __int128 */
3388
+#if HEDLEY_GCC_VERSION_CHECK(4,8,0)
3389
+ #define SIMDE_DIAGNOSTIC_DISABLE_PEDANTIC_ _Pragma("GCC diagnostic ignored \"-Wpedantic\"")
3390
+#else
3391
+ #define SIMDE_DIAGNOSTIC_DISABLE_PEDANTIC_
3392
+#endif
3393
+
3394
+/* MSVC doesn't like (__assume(0), code) and will warn about code being
3395
+ * unreachable, but we want it there because not all compilers
3396
+ * understand the unreachable macro and will complain if it is missing.
3397
+ * I'm planning on adding a new macro to Hedley to handle this a bit
3398
+ * more elegantly, but until then... */
3399
+#if defined(HEDLEY_MSVC_VERSION)
3400
+ #define SIMDE_DIAGNOSTIC_DISABLE_UNREACHABLE_ __pragma(warning(disable:4702))
3401
+#elif defined(__clang__)
3402
+ #define SIMDE_DIAGNOSTIC_DISABLE_UNREACHABLE_ HEDLEY_PRAGMA(clang diagnostic ignored "-Wunreachable-code")
3403
+#else
3404
+ #define SIMDE_DIAGNOSTIC_DISABLE_UNREACHABLE_
3405
+#endif
3406
+
3407
+/* This is a false positive from GCC in a few places. */
3408
+#if HEDLEY_GCC_VERSION_CHECK(4,7,0)
3409
+ #define SIMDE_DIAGNOSTIC_DISABLE_MAYBE_UNINITIAZILED_ _Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
3410
+#else
3411
+ #define SIMDE_DIAGNOSTIC_DISABLE_MAYBE_UNINITIAZILED_
3412
+#endif
3413
+
3414
+#if defined(SIMDE_ENABLE_NATIVE_ALIASES)
3415
+ #define SIMDE_DISABLE_UNWANTED_DIAGNOSTICS_NATIVE_ALIASES_ \
3416
+ SIMDE_DIAGNOSTIC_DISABLE_RESERVED_ID_MACRO_
3417
+#else
3418
+ #define SIMDE_DISABLE_UNWANTED_DIAGNOSTICS_NATIVE_ALIASES_
3419
+#endif
3420
+
3421
+/* Some native functions on E2K with instruction set < v6 are declared
3422
+ * as deprecated due to inefficiency. Still they are more efficient
3423
+ * than SIMDe implementation. So we're using them, and switching off
3424
+ * these deprecation warnings. */
3425
+#if defined(HEDLEY_MCST_LCC_VERSION)
3426
+# define SIMDE_LCC_DISABLE_DEPRECATED_WARNINGS _Pragma("diag_suppress 1215,1444")
3427
+# define SIMDE_LCC_REVERT_DEPRECATED_WARNINGS _Pragma("diag_default 1215,1444")
3428
+#else
3429
+# define SIMDE_LCC_DISABLE_DEPRECATED_WARNINGS
3430
+# define SIMDE_LCC_REVERT_DEPRECATED_WARNINGS
3431
+#endif
3432
+
3433
+#define SIMDE_DISABLE_UNWANTED_DIAGNOSTICS \
3434
+ HEDLEY_DIAGNOSTIC_DISABLE_UNUSED_FUNCTION \
3435
+ SIMDE_DISABLE_UNWANTED_DIAGNOSTICS_NATIVE_ALIASES_ \
3436
+ SIMDE_DIAGNOSTIC_DISABLE_PSABI_ \
3437
+ SIMDE_DIAGNOSTIC_DISABLE_NO_EMMS_INSTRUCTION_ \
3438
+ SIMDE_DIAGNOSTIC_DISABLE_SIMD_PRAGMA_DEPRECATED_ \
3439
+ SIMDE_DIAGNOSTIC_DISABLE_CONDITIONAL_UNINITIALIZED_ \
3440
+ SIMDE_DIAGNOSTIC_DISABLE_DECLARATION_AFTER_STATEMENT_ \
3441
+ SIMDE_DIAGNOSTIC_DISABLE_FLOAT_EQUAL_ \
3442
+ SIMDE_DIAGNOSTIC_DISABLE_NON_CONSTANT_AGGREGATE_INITIALIZER_ \
3443
+ SIMDE_DIAGNOSTIC_DISABLE_EXTRA_SEMI_ \
3444
+ SIMDE_DIAGNOSTIC_DISABLE_VLA_ \
3445
+ SIMDE_DIAGNOSTIC_DISABLE_USED_BUT_MARKED_UNUSED_ \
3446
+ SIMDE_DIAGNOSTIC_DISABLE_PASS_FAILED_ \
3447
+ SIMDE_DIAGNOSTIC_DISABLE_CPP98_COMPAT_PEDANTIC_ \
3448
+ SIMDE_DIAGNOSTIC_DISABLE_CPP11_LONG_LONG_ \
3449
+ SIMDE_DIAGNOSTIC_DISABLE_BUGGY_UNUSED_BUT_SET_VARIBALE_ \
3450
+ SIMDE_DIAGNOSTIC_DISABLE_BUGGY_CASTS_ \
3451
+ SIMDE_DIAGNOSTIC_DISABLE_BUGGY_VECTOR_CONVERSION_ \
3452
+ SIMDE_DIAGNOSTIC_DISABLE_RESERVED_ID_
3453
+
3454
+#endif /* !defined(SIMDE_DIAGNOSTIC_H) */
3455
+/* :: End simde/simde-diagnostic.h :: */
3456
+
3457
+#if !defined(SIMDE_X86_SVML_NATIVE) && !defined(SIMDE_X86_SVML_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3458
+ #if defined(SIMDE_ARCH_X86_SVML)
3459
+ #define SIMDE_X86_SVML_NATIVE
3460
+ #endif
3461
+#endif
3462
+
3463
+#if !defined(SIMDE_X86_AVX512VP2INTERSECT_NATIVE) && !defined(SIMDE_X86_AVX512VP2INTERSECT_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3464
+ #if defined(SIMDE_ARCH_X86_AVX512VP2INTERSECT)
3465
+ #define SIMDE_X86_AVX512VP2INTERSECT_NATIVE
3466
+ #endif
3467
+#endif
3468
+#if defined(SIMDE_X86_AVX512VP2INTERSECT_NATIVE) && !defined(SIMDE_X86_AVX512F_NATIVE)
3469
+ #define SIMDE_X86_AVX512F_NATIVE
3470
+#endif
3471
+
3472
+#if !defined(SIMDE_X86_AVX512VPOPCNTDQ_NATIVE) && !defined(SIMDE_X86_AVX512VPOPCNTDQ_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3473
+ #if defined(SIMDE_ARCH_X86_AVX512VPOPCNTDQ)
3474
+ #define SIMDE_X86_AVX512VPOPCNTDQ_NATIVE
3475
+ #endif
3476
+#endif
3477
+#if defined(SIMDE_X86_AVX512VPOPCNTDQ_NATIVE) && !defined(SIMDE_X86_AVX512F_NATIVE)
3478
+ #define SIMDE_X86_AVX512F_NATIVE
3479
+#endif
3480
+
3481
+#if !defined(SIMDE_X86_AVX512BITALG_NATIVE) && !defined(SIMDE_X86_AVX512BITALG_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3482
+ #if defined(SIMDE_ARCH_X86_AVX512BITALG)
3483
+ #define SIMDE_X86_AVX512BITALG_NATIVE
3484
+ #endif
3485
+#endif
3486
+#if defined(SIMDE_X86_AVX512BITALG_NATIVE) && !defined(SIMDE_X86_AVX512F_NATIVE)
3487
+ #define SIMDE_X86_AVX512F_NATIVE
3488
+#endif
3489
+
3490
+#if !defined(SIMDE_X86_AVX512VBMI_NATIVE) && !defined(SIMDE_X86_AVX512VBMI_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3491
+ #if defined(SIMDE_ARCH_X86_AVX512VBMI)
3492
+ #define SIMDE_X86_AVX512VBMI_NATIVE
3493
+ #endif
3494
+#endif
3495
+#if defined(SIMDE_X86_AVX512VBMI_NATIVE) && !defined(SIMDE_X86_AVX512F_NATIVE)
3496
+ #define SIMDE_X86_AVX512F_NATIVE
3497
+#endif
3498
+
3499
+#if !defined(SIMDE_X86_AVX512VBMI2_NATIVE) && !defined(SIMDE_X86_AVX512VBMI2_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3500
+ #if defined(SIMDE_ARCH_X86_AVX512VBMI2)
3501
+ #define SIMDE_X86_AVX512VBMI2_NATIVE
3502
+ #endif
3503
+#endif
3504
+#if defined(SIMDE_X86_AVX512VBMI2_NATIVE) && !defined(SIMDE_X86_AVX512F_NATIVE)
3505
+ #define SIMDE_X86_AVX512F_NATIVE
3506
+#endif
3507
+
3508
+#if !defined(SIMDE_X86_AVX512VNNI_NATIVE) && !defined(SIMDE_X86_AVX512VNNI_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3509
+ #if defined(SIMDE_ARCH_X86_AVX512VNNI)
3510
+ #define SIMDE_X86_AVX512VNNI_NATIVE
3511
+ #endif
3512
+#endif
3513
+#if defined(SIMDE_X86_AVX512VNNI_NATIVE) && !defined(SIMDE_X86_AVX512F_NATIVE)
3514
+ #define SIMDE_X86_AVX512F_NATIVE
3515
+#endif
3516
+
3517
+#if !defined(SIMDE_X86_AVX5124VNNIW_NATIVE) && !defined(SIMDE_X86_AVX5124VNNIW_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3518
+ #if defined(SIMDE_ARCH_X86_AVX5124VNNIW)
3519
+ #define SIMDE_X86_AVX5124VNNIW_NATIVE
3520
+ #endif
3521
+#endif
3522
+#if defined(SIMDE_X86_AVX5124VNNIW_NATIVE) && !defined(SIMDE_X86_AVX512F_NATIVE)
3523
+ #define SIMDE_X86_AVX512F_NATIVE
3524
+#endif
3525
+
3526
+#if !defined(SIMDE_X86_AVX512CD_NATIVE) && !defined(SIMDE_X86_AVX512CD_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3527
+ #if defined(SIMDE_ARCH_X86_AVX512CD)
3528
+ #define SIMDE_X86_AVX512CD_NATIVE
3529
+ #endif
3530
+#endif
3531
+#if defined(SIMDE_X86_AVX512CD_NATIVE) && !defined(SIMDE_X86_AVX512F_NATIVE)
3532
+ #define SIMDE_X86_AVX512F_NATIVE
3533
+#endif
3534
+
3535
+#if !defined(SIMDE_X86_AVX512DQ_NATIVE) && !defined(SIMDE_X86_AVX512DQ_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3536
+ #if defined(SIMDE_ARCH_X86_AVX512DQ)
3537
+ #define SIMDE_X86_AVX512DQ_NATIVE
3538
+ #endif
3539
+#endif
3540
+#if defined(SIMDE_X86_AVX512DQ_NATIVE) && !defined(SIMDE_X86_AVX512F_NATIVE)
3541
+ #define SIMDE_X86_AVX512F_NATIVE
3542
+#endif
3543
+
3544
+#if !defined(SIMDE_X86_AVX512VL_NATIVE) && !defined(SIMDE_X86_AVX512VL_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3545
+ #if defined(SIMDE_ARCH_X86_AVX512VL)
3546
+ #define SIMDE_X86_AVX512VL_NATIVE
3547
+ #endif
3548
+#endif
3549
+#if defined(SIMDE_X86_AVX512VL_NATIVE) && !defined(SIMDE_X86_AVX512F_NATIVE)
3550
+ #define SIMDE_X86_AVX512F_NATIVE
3551
+#endif
3552
+
3553
+#if !defined(SIMDE_X86_AVX512BW_NATIVE) && !defined(SIMDE_X86_AVX512BW_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3554
+ #if defined(SIMDE_ARCH_X86_AVX512BW)
3555
+ #define SIMDE_X86_AVX512BW_NATIVE
3556
+ #endif
3557
+#endif
3558
+#if defined(SIMDE_X86_AVX512BW_NATIVE) && !defined(SIMDE_X86_AVX512F_NATIVE)
3559
+ #define SIMDE_X86_AVX512F_NATIVE
3560
+#endif
3561
+
3562
+#if !defined(SIMDE_X86_AVX512FP16_NATIVE) && !defined(SIMDE_X86_AVX512FP16_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3563
+ #if defined(SIMDE_ARCH_X86_AVX512FP16)
3564
+ #define SIMDE_X86_AVX512FP16_NATIVE
3565
+ #endif
3566
+#endif
3567
+#if defined(SIMDE_X86_AVX512BW_NATIVE) && !defined(SIMDE_X86_AVX512F_NATIVE)
3568
+ #define SIMDE_X86_AVX512F_NATIVE
3569
+#endif
3570
+
3571
+#if !defined(SIMDE_X86_AVX512BF16_NATIVE) && !defined(SIMDE_X86_AVX512BF16_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3572
+ #if defined(SIMDE_ARCH_X86_AVX512BF16)
3573
+ #define SIMDE_X86_AVX512BF16_NATIVE
3574
+ #endif
3575
+#endif
3576
+#if defined(SIMDE_X86_AVX512BF16_NATIVE) && !defined(SIMDE_X86_AVX512F_NATIVE)
3577
+ #define SIMDE_X86_AVX512F_NATIVE
3578
+#endif
3579
+
3580
+#if !defined(SIMDE_X86_AVX512F_NATIVE) && !defined(SIMDE_X86_AVX512F_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3581
+ #if defined(SIMDE_ARCH_X86_AVX512F)
3582
+ #define SIMDE_X86_AVX512F_NATIVE
3583
+ #endif
3584
+#endif
3585
+#if defined(SIMDE_X86_AVX512F_NATIVE) && !defined(SIMDE_X86_AVX2_NATIVE)
3586
+ #define SIMDE_X86_AVX2_NATIVE
3587
+#endif
3588
+
3589
+#if !defined(SIMDE_X86_FMA_NATIVE) && !defined(SIMDE_X86_FMA_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3590
+ #if defined(SIMDE_ARCH_X86_FMA)
3591
+ #define SIMDE_X86_FMA_NATIVE
3592
+ #endif
3593
+#endif
3594
+#if defined(SIMDE_X86_FMA_NATIVE) && !defined(SIMDE_X86_AVX_NATIVE)
3595
+ #define SIMDE_X86_AVX_NATIVE
3596
+#endif
3597
+
3598
+#if !defined(SIMDE_X86_AVX2_NATIVE) && !defined(SIMDE_X86_AVX2_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3599
+ #if defined(SIMDE_ARCH_X86_AVX2)
3600
+ #define SIMDE_X86_AVX2_NATIVE
3601
+ #endif
3602
+#endif
3603
+#if defined(SIMDE_X86_AVX2_NATIVE) && !defined(SIMDE_X86_AVX_NATIVE)
3604
+ #define SIMDE_X86_AVX_NATIVE
3605
+#endif
3606
+
3607
+#if !defined(SIMDE_X86_AVX_NATIVE) && !defined(SIMDE_X86_AVX_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3608
+ #if defined(SIMDE_ARCH_X86_AVX)
3609
+ #define SIMDE_X86_AVX_NATIVE
3610
+ #endif
3611
+#endif
3612
+#if defined(SIMDE_X86_AVX_NATIVE) && !defined(SIMDE_X86_SSE4_2_NATIVE)
3613
+ #define SIMDE_X86_SSE4_2_NATIVE
3614
+#endif
3615
+
3616
+#if !defined(SIMDE_X86_XOP_NATIVE) && !defined(SIMDE_X86_XOP_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3617
+ #if defined(SIMDE_ARCH_X86_XOP)
3618
+ #define SIMDE_X86_XOP_NATIVE
3619
+ #endif
3620
+#endif
3621
+#if defined(SIMDE_X86_XOP_NATIVE) && !defined(SIMDE_X86_SSE4_2_NATIVE)
3622
+ #define SIMDE_X86_SSE4_2_NATIVE
3623
+#endif
3624
+
3625
+#if !defined(SIMDE_X86_SSE4_2_NATIVE) && !defined(SIMDE_X86_SSE4_2_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3626
+ #if defined(SIMDE_ARCH_X86_SSE4_2)
3627
+ #define SIMDE_X86_SSE4_2_NATIVE
3628
+ #endif
3629
+#endif
3630
+#if defined(SIMDE_X86_SSE4_2_NATIVE) && !defined(SIMDE_X86_SSE4_1_NATIVE)
3631
+ #define SIMDE_X86_SSE4_1_NATIVE
3632
+#endif
3633
+
3634
+#if !defined(SIMDE_X86_SSE4_1_NATIVE) && !defined(SIMDE_X86_SSE4_1_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3635
+ #if defined(SIMDE_ARCH_X86_SSE4_1)
3636
+ #define SIMDE_X86_SSE4_1_NATIVE
3637
+ #endif
3638
+#endif
3639
+#if defined(SIMDE_X86_SSE4_1_NATIVE) && !defined(SIMDE_X86_SSSE3_NATIVE)
3640
+ #define SIMDE_X86_SSSE3_NATIVE
3641
+#endif
3642
+
3643
+#if !defined(SIMDE_X86_SSSE3_NATIVE) && !defined(SIMDE_X86_SSSE3_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3644
+ #if defined(SIMDE_ARCH_X86_SSSE3)
3645
+ #define SIMDE_X86_SSSE3_NATIVE
3646
+ #endif
3647
+#endif
3648
+#if defined(SIMDE_X86_SSSE3_NATIVE) && !defined(SIMDE_X86_SSE3_NATIVE)
3649
+ #define SIMDE_X86_SSE3_NATIVE
3650
+#endif
3651
+
3652
+#if !defined(SIMDE_X86_SSE3_NATIVE) && !defined(SIMDE_X86_SSE3_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3653
+ #if defined(SIMDE_ARCH_X86_SSE3)
3654
+ #define SIMDE_X86_SSE3_NATIVE
3655
+ #endif
3656
+#endif
3657
+#if defined(SIMDE_X86_SSE3_NATIVE) && !defined(SIMDE_X86_SSE2_NATIVE)
3658
+ #define SIMDE_X86_SSE2_NATIVE
3659
+#endif
3660
+
3661
+#if !defined(SIMDE_X86_AES_NATIVE) && !defined(SIMDE_X86_AES_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3662
+ #if defined(SIMDE_ARCH_X86_AES)
3663
+ #define SIMDE_X86_AES_NATIVE
3664
+ #endif
3665
+#endif
3666
+#if defined(SIMDE_X86_AES_NATIVE) && !defined(SIMDE_X86_SSE2_NATIVE)
3667
+ #define SIMDE_X86_SSE2_NATIVE
3668
+#endif
3669
+
3670
+#if !defined(SIMDE_X86_SSE2_NATIVE) && !defined(SIMDE_X86_SSE2_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3671
+ #if defined(SIMDE_ARCH_X86_SSE2)
3672
+ #define SIMDE_X86_SSE2_NATIVE
3673
+ #endif
3674
+#endif
3675
+#if defined(SIMDE_X86_SSE2_NATIVE) && !defined(SIMDE_X86_SSE_NATIVE)
3676
+ #define SIMDE_X86_SSE_NATIVE
3677
+#endif
3678
+
3679
+#if !defined(SIMDE_X86_SSE_NATIVE) && !defined(SIMDE_X86_SSE_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3680
+ #if defined(SIMDE_ARCH_X86_SSE)
3681
+ #define SIMDE_X86_SSE_NATIVE
3682
+ #endif
3683
+#endif
3684
+
3685
+#if !defined(SIMDE_X86_MMX_NATIVE) && !defined(SIMDE_X86_MMX_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3686
+ #if defined(SIMDE_ARCH_X86_MMX)
3687
+ #define SIMDE_X86_MMX_NATIVE
3688
+ #endif
3689
+#endif
3690
+
3691
+#if !defined(SIMDE_X86_GFNI_NATIVE) && !defined(SIMDE_X86_GFNI_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3692
+ #if defined(SIMDE_ARCH_X86_GFNI)
3693
+ #define SIMDE_X86_GFNI_NATIVE
3694
+ #endif
3695
+#endif
3696
+
3697
+#if !defined(SIMDE_X86_PCLMUL_NATIVE) && !defined(SIMDE_X86_PCLMUL_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3698
+ #if defined(SIMDE_ARCH_X86_PCLMUL)
3699
+ #define SIMDE_X86_PCLMUL_NATIVE
3700
+ #endif
3701
+#endif
3702
+
3703
+#if !defined(SIMDE_X86_VPCLMULQDQ_NATIVE) && !defined(SIMDE_X86_VPCLMULQDQ_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3704
+ #if defined(SIMDE_ARCH_X86_VPCLMULQDQ)
3705
+ #define SIMDE_X86_VPCLMULQDQ_NATIVE
3706
+ #endif
3707
+#endif
3708
+
3709
+#if !defined(SIMDE_X86_F16C_NATIVE) && !defined(SIMDE_X86_F16C_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3710
+ #if defined(SIMDE_ARCH_X86_F16C)
3711
+ #define SIMDE_X86_F16C_NATIVE
3712
+ #endif
3713
+#endif
3714
+
3715
+#if !defined(SIMDE_X86_SVML_NATIVE) && !defined(SIMDE_X86_SVML_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3716
+ #if defined(SIMDE_ARCH_X86) && (defined(__INTEL_COMPILER) || (HEDLEY_MSVC_VERSION_CHECK(14, 20, 0) && !defined(__clang__)))
3717
+ #define SIMDE_X86_SVML_NATIVE
3718
+ #endif
3719
+#endif
3720
+
3721
+#if defined(HEDLEY_MSVC_VERSION)
3722
+ #pragma warning(push)
3723
+ #pragma warning(disable:4799)
3724
+#endif
3725
+
3726
+#if \
3727
+ defined(SIMDE_X86_AVX_NATIVE) || defined(SIMDE_X86_GFNI_NATIVE) || defined(SIMDE_X86_SVML_NATIVE)
3728
+ #include <immintrin.h>
3729
+#elif defined(SIMDE_X86_SSE4_2_NATIVE)
3730
+ #include <nmmintrin.h>
3731
+#elif defined(SIMDE_X86_SSE4_1_NATIVE)
3732
+ #include <smmintrin.h>
3733
+#elif defined(SIMDE_X86_SSSE3_NATIVE)
3734
+ #include <tmmintrin.h>
3735
+#elif defined(SIMDE_X86_SSE3_NATIVE)
3736
+ #include <pmmintrin.h>
3737
+#elif defined(SIMDE_X86_SSE2_NATIVE)
3738
+ #include <emmintrin.h>
3739
+#elif defined(SIMDE_X86_SSE_NATIVE)
3740
+ #include <xmmintrin.h>
3741
+#elif defined(SIMDE_X86_MMX_NATIVE)
3742
+ #include <mmintrin.h>
3743
+#endif
3744
+
3745
+#if defined(SIMDE_X86_XOP_NATIVE)
3746
+ #if defined(_MSC_VER)
3747
+ #include <intrin.h>
3748
+ #else
3749
+ #include <x86intrin.h>
3750
+ #endif
3751
+#endif
3752
+
3753
+#if defined(SIMDE_X86_AES_NATIVE)
3754
+ #include <wmmintrin.h>
3755
+#endif
3756
+
3757
+#if defined(HEDLEY_MSVC_VERSION)
3758
+ #pragma warning(pop)
3759
+#endif
3760
+
3761
+#if !defined(SIMDE_ARM_NEON_A64V8_NATIVE) && !defined(SIMDE_ARM_NEON_A64V8_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3762
+ #if defined(SIMDE_ARCH_ARM_NEON) && defined(SIMDE_ARCH_AARCH64) && SIMDE_ARCH_ARM_CHECK(8,0)
3763
+ #define SIMDE_ARM_NEON_A64V8_NATIVE
3764
+ #endif
3765
+#endif
3766
+#if defined(SIMDE_ARM_NEON_A64V8_NATIVE) && !defined(SIMDE_ARM_NEON_A32V8_NATIVE)
3767
+ #define SIMDE_ARM_NEON_A32V8_NATIVE
3768
+#endif
3769
+
3770
+#if !defined(SIMDE_ARM_NEON_A32V8_NATIVE) && !defined(SIMDE_ARM_NEON_A32V8_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3771
+ #if defined(SIMDE_ARCH_ARM_NEON) && SIMDE_ARCH_ARM_CHECK(8,0) && (__ARM_NEON_FP & 0x02)
3772
+ #define SIMDE_ARM_NEON_A32V8_NATIVE
3773
+ #endif
3774
+#endif
3775
+#if defined(__ARM_ACLE)
3776
+ #include <arm_acle.h>
3777
+#endif
3778
+#if defined(SIMDE_ARM_NEON_A32V8_NATIVE) && !defined(SIMDE_ARM_NEON_A32V7_NATIVE)
3779
+ #define SIMDE_ARM_NEON_A32V7_NATIVE
3780
+#endif
3781
+
3782
+#if !defined(SIMDE_ARM_NEON_A32V7_NATIVE) && !defined(SIMDE_ARM_NEON_A32V7_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3783
+ #if defined(SIMDE_ARCH_ARM_NEON) && SIMDE_ARCH_ARM_CHECK(7,0)
3784
+ #define SIMDE_ARM_NEON_A32V7_NATIVE
3785
+ #endif
3786
+#endif
3787
+#if defined(SIMDE_ARM_NEON_A32V7_NATIVE)
3788
+ #include <arm_neon.h>
3789
+ #if defined(__ARM_FEATURE_FP16_VECTOR_ARITHMETIC)
3790
+ #include <arm_fp16.h>
3791
+ #endif
3792
+#endif
3793
+
3794
+#if !defined(SIMDE_ARM_SVE_NATIVE) && !defined(SIMDE_ARM_SVE_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3795
+ #if defined(SIMDE_ARCH_ARM_SVE)
3796
+ #define SIMDE_ARM_SVE_NATIVE
3797
+ #include <arm_sve.h>
3798
+ #endif
3799
+#endif
3800
+
3801
+#if !defined(SIMDE_RISCV_V_NATIVE) && !defined(SIMDE_RISCV_V_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3802
+ #if defined(SIMDE_ARCH_RISCV_V)
3803
+ #define SIMDE_RISCV_V_NATIVE
3804
+ #endif
3805
+#endif
3806
+#if defined(SIMDE_RISCV_V_NATIVE)
3807
+ #include <riscv_vector.h>
3808
+#endif
3809
+
3810
+#if !defined(SIMDE_WASM_SIMD128_NATIVE) && !defined(SIMDE_WASM_SIMD128_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3811
+ #if defined(SIMDE_ARCH_WASM_SIMD128)
3812
+ #define SIMDE_WASM_SIMD128_NATIVE
3813
+ #endif
3814
+#endif
3815
+
3816
+#if !defined(SIMDE_WASM_RELAXED_SIMD_NATIVE) && !defined(SIMDE_WASM_RELAXED_SIMD_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3817
+ #if defined(SIMDE_ARCH_WASM_RELAXED_SIMD)
3818
+ #define SIMDE_WASM_RELAXED_SIMD_NATIVE
3819
+ #endif
3820
+#endif
3821
+#if defined(SIMDE_WASM_SIMD128_NATIVE) || defined(SIMDE_WASM_RELAXED_SIMD_NATIVE)
3822
+ #include <wasm_simd128.h>
3823
+#endif
3824
+
3825
+#if !defined(SIMDE_POWER_ALTIVEC_P9_NATIVE) && !defined(SIMDE_POWER_ALTIVEC_P9_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3826
+ #if SIMDE_ARCH_POWER_ALTIVEC_CHECK(900)
3827
+ #define SIMDE_POWER_ALTIVEC_P9_NATIVE
3828
+ #endif
3829
+#endif
3830
+#if defined(SIMDE_POWER_ALTIVEC_P9_NATIVE) && !defined(SIMDE_POWER_ALTIVEC_P8)
3831
+ #define SIMDE_POWER_ALTIVEC_P8_NATIVE
3832
+#endif
3833
+
3834
+#if !defined(SIMDE_POWER_ALTIVEC_P8_NATIVE) && !defined(SIMDE_POWER_ALTIVEC_P8_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3835
+ #if SIMDE_ARCH_POWER_ALTIVEC_CHECK(800)
3836
+ #define SIMDE_POWER_ALTIVEC_P8_NATIVE
3837
+ #endif
3838
+#endif
3839
+#if defined(SIMDE_POWER_ALTIVEC_P8_NATIVE) && !defined(SIMDE_POWER_ALTIVEC_P7)
3840
+ #define SIMDE_POWER_ALTIVEC_P7_NATIVE
3841
+#endif
3842
+
3843
+#if !defined(SIMDE_POWER_ALTIVEC_P7_NATIVE) && !defined(SIMDE_POWER_ALTIVEC_P7_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3844
+ #if SIMDE_ARCH_POWER_ALTIVEC_CHECK(700)
3845
+ #define SIMDE_POWER_ALTIVEC_P7_NATIVE
3846
+ #endif
3847
+#endif
3848
+#if defined(SIMDE_POWER_ALTIVEC_P7_NATIVE) && !defined(SIMDE_POWER_ALTIVEC_P6)
3849
+ #define SIMDE_POWER_ALTIVEC_P6_NATIVE
3850
+#endif
3851
+
3852
+#if !defined(SIMDE_POWER_ALTIVEC_P6_NATIVE) && !defined(SIMDE_POWER_ALTIVEC_P6_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3853
+ #if SIMDE_ARCH_POWER_ALTIVEC_CHECK(600)
3854
+ #define SIMDE_POWER_ALTIVEC_P6_NATIVE
3855
+ #endif
3856
+#endif
3857
+#if defined(SIMDE_POWER_ALTIVEC_P6_NATIVE) && !defined(SIMDE_POWER_ALTIVEC_P5)
3858
+ #define SIMDE_POWER_ALTIVEC_P5_NATIVE
3859
+#endif
3860
+
3861
+#if !defined(SIMDE_POWER_ALTIVEC_P5_NATIVE) && !defined(SIMDE_POWER_ALTIVEC_P5_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3862
+ #if SIMDE_ARCH_POWER_ALTIVEC_CHECK(500)
3863
+ #define SIMDE_POWER_ALTIVEC_P5_NATIVE
3864
+ #endif
3865
+#endif
3866
+
3867
+#if !defined(SIMDE_ZARCH_ZVECTOR_15_NATIVE) && !defined(SIMDE_ZARCH_ZVECTOR_15_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3868
+ #if SIMDE_ARCH_ZARCH_CHECK(13) && defined(SIMDE_ARCH_ZARCH_ZVECTOR)
3869
+ #define SIMDE_ZARCH_ZVECTOR_15_NATIVE
3870
+ #endif
3871
+#endif
3872
+
3873
+#if !defined(SIMDE_ZARCH_ZVECTOR_14_NATIVE) && !defined(SIMDE_ZARCH_ZVECTOR_14_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3874
+ #if SIMDE_ARCH_ZARCH_CHECK(12) && defined(SIMDE_ARCH_ZARCH_ZVECTOR)
3875
+ #define SIMDE_ZARCH_ZVECTOR_14_NATIVE
3876
+ #endif
3877
+#endif
3878
+
3879
+#if !defined(SIMDE_ZARCH_ZVECTOR_13_NATIVE) && !defined(SIMDE_ZARCH_ZVECTOR_13_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3880
+ #if SIMDE_ARCH_ZARCH_CHECK(11) && defined(SIMDE_ARCH_ZARCH_ZVECTOR)
3881
+ #define SIMDE_ZARCH_ZVECTOR_13_NATIVE
3882
+ #endif
3883
+#endif
3884
+
3885
+#if defined(SIMDE_POWER_ALTIVEC_P6_NATIVE) || defined(SIMDE_ZARCH_ZVECTOR_13_NATIVE)
3886
+ /* AltiVec conflicts with lots of stuff. The bool keyword conflicts
3887
+ * with the bool keyword in C++ and the bool macro in C99+ (defined
3888
+ * in stdbool.h). The vector keyword conflicts with std::vector in
3889
+ * C++ if you are `using std;`.
3890
+ *
3891
+ * Luckily AltiVec allows you to use `__vector`/`__bool`/`__pixel`
3892
+ * instead, but altivec.h will unconditionally define
3893
+ * `vector`/`bool`/`pixel` so we need to work around that.
3894
+ *
3895
+ * Unfortunately this means that if your code uses AltiVec directly
3896
+ * it may break. If this is the case you'll want to define
3897
+ * `SIMDE_POWER_ALTIVEC_NO_UNDEF` before including SIMDe. Or, even
3898
+ * better, port your code to use the double-underscore versions. */
3899
+ #if defined(bool)
3900
+ #undef bool
3901
+ #endif
3902
+
3903
+ #if defined(SIMDE_POWER_ALTIVEC_P6_NATIVE)
3904
+ #include <altivec.h>
3905
+
3906
+ #if !defined(SIMDE_POWER_ALTIVEC_NO_UNDEF)
3907
+ #if defined(vector)
3908
+ #undef vector
3909
+ #endif
3910
+ #if defined(pixel)
3911
+ #undef pixel
3912
+ #endif
3913
+ #if defined(bool)
3914
+ #undef bool
3915
+ #endif
3916
+ #endif /* !defined(SIMDE_POWER_ALTIVEC_NO_UNDEF) */
3917
+ #elif defined(SIMDE_ZARCH_ZVECTOR_13_NATIVE)
3918
+ #include <vecintrin.h>
3919
+ #endif
3920
+
3921
+ /* Use these intsead of vector/pixel/bool in SIMDe. */
3922
+ #define SIMDE_POWER_ALTIVEC_VECTOR(T) __vector T
3923
+ #define SIMDE_POWER_ALTIVEC_PIXEL __pixel
3924
+ #define SIMDE_POWER_ALTIVEC_BOOL __bool
3925
+
3926
+ /* Re-define bool if we're using stdbool.h */
3927
+ #if !defined(__cplusplus) && defined(__bool_true_false_are_defined) && !defined(SIMDE_POWER_ALTIVEC_NO_UNDEF)
3928
+ #define bool _Bool
3929
+ #endif
3930
+#endif
3931
+
3932
+#if !defined(SIMDE_MIPS_LOONGSON_MMI_NATIVE) && !defined(SIMDE_MIPS_LOONGSON_MMI_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3933
+ #if defined(SIMDE_ARCH_MIPS_LOONGSON_MMI)
3934
+ #define SIMDE_MIPS_LOONGSON_MMI_NATIVE 1
3935
+ #endif
3936
+#endif
3937
+#if defined(SIMDE_MIPS_LOONGSON_MMI_NATIVE)
3938
+ #include <loongson-mmiintrin.h>
3939
+#endif
3940
+
3941
+#if !defined(SIMDE_MIPS_MSA_NATIVE) && !defined(SIMDE_MIPS_MSA_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
3942
+ #if defined(SIMDE_ARCH_MIPS_MSA)
3943
+ #define SIMDE_MIPS_MSA_NATIVE 1
3944
+ #endif
3945
+#endif
3946
+#if defined(SIMDE_MIPS_MSA_NATIVE)
3947
+ #include <msa.h>
3948
+#endif
3949
+
3950
+/* This is used to determine whether or not to fall back on a vector
3951
+ * function in an earlier ISA extensions, as well as whether
3952
+ * we expected any attempts at vectorization to be fruitful or if we
3953
+ * expect to always be running serial code.
3954
+ *
3955
+ * Note that, for some architectures (okay, *one* architecture) there
3956
+ * can be a split where some types are supported for one vector length
3957
+ * but others only for a shorter length. Therefore, it is possible to
3958
+ * provide separate values for float/int/double types. */
3959
+
3960
+#if !defined(SIMDE_NATURAL_VECTOR_SIZE)
3961
+ #if defined(SIMDE_X86_AVX512F_NATIVE)
3962
+ #define SIMDE_NATURAL_VECTOR_SIZE (512)
3963
+ #elif defined(SIMDE_X86_AVX2_NATIVE)
3964
+ #define SIMDE_NATURAL_VECTOR_SIZE (256)
3965
+ #elif defined(SIMDE_X86_AVX_NATIVE)
3966
+ #define SIMDE_NATURAL_FLOAT_VECTOR_SIZE (256)
3967
+ #define SIMDE_NATURAL_INT_VECTOR_SIZE (128)
3968
+ #define SIMDE_NATURAL_DOUBLE_VECTOR_SIZE (128)
3969
+ #elif \
3970
+ defined(SIMDE_X86_SSE2_NATIVE) || \
3971
+ defined(SIMDE_ARM_NEON_A32V7_NATIVE) || \
3972
+ defined(SIMDE_WASM_SIMD128_NATIVE) || \
3973
+ defined(SIMDE_POWER_ALTIVEC_P5_NATIVE) || \
3974
+ defined(SIMDE_ZARCH_ZVECTOR_13_NATIVE) || \
3975
+ defined(SIMDE_MIPS_MSA_NATIVE)
3976
+ #define SIMDE_NATURAL_VECTOR_SIZE (128)
3977
+ #elif defined(SIMDE_X86_SSE_NATIVE)
3978
+ #define SIMDE_NATURAL_FLOAT_VECTOR_SIZE (128)
3979
+ #define SIMDE_NATURAL_INT_VECTOR_SIZE (64)
3980
+ #define SIMDE_NATURAL_DOUBLE_VECTOR_SIZE (0)
3981
+ #elif defined(SIMDE_RISCV_V_NATIVE) && defined(__riscv_v_fixed_vlen)
3982
+ //FIXME : SIMDE_NATURAL_VECTOR_SIZE == __riscv_v_fixed_vlen
3983
+ #define SIMDE_NATURAL_VECTOR_SIZE (128)
3984
+ #endif
3985
+
3986
+ #if !defined(SIMDE_NATURAL_VECTOR_SIZE)
3987
+ #if defined(SIMDE_NATURAL_FLOAT_VECTOR_SIZE)
3988
+ #define SIMDE_NATURAL_VECTOR_SIZE SIMDE_NATURAL_FLOAT_VECTOR_SIZE
3989
+ #elif defined(SIMDE_NATURAL_INT_VECTOR_SIZE)
3990
+ #define SIMDE_NATURAL_VECTOR_SIZE SIMDE_NATURAL_INT_VECTOR_SIZE
3991
+ #elif defined(SIMDE_NATURAL_DOUBLE_VECTOR_SIZE)
3992
+ #define SIMDE_NATURAL_VECTOR_SIZE SIMDE_NATURAL_DOUBLE_VECTOR_SIZE
3993
+ #else
3994
+ #define SIMDE_NATURAL_VECTOR_SIZE (0)
3995
+ #endif
3996
+ #endif
3997
+
3998
+ #if !defined(SIMDE_NATURAL_FLOAT_VECTOR_SIZE)
3999
+ #define SIMDE_NATURAL_FLOAT_VECTOR_SIZE SIMDE_NATURAL_VECTOR_SIZE
4000
+ #endif
4001
+ #if !defined(SIMDE_NATURAL_INT_VECTOR_SIZE)
4002
+ #define SIMDE_NATURAL_INT_VECTOR_SIZE SIMDE_NATURAL_VECTOR_SIZE
4003
+ #endif
4004
+ #if !defined(SIMDE_NATURAL_DOUBLE_VECTOR_SIZE)
4005
+ #define SIMDE_NATURAL_DOUBLE_VECTOR_SIZE SIMDE_NATURAL_VECTOR_SIZE
4006
+ #endif
4007
+#endif
4008
+
4009
+#define SIMDE_NATURAL_VECTOR_SIZE_LE(x) ((SIMDE_NATURAL_VECTOR_SIZE > 0) && (SIMDE_NATURAL_VECTOR_SIZE <= (x)))
4010
+#define SIMDE_NATURAL_VECTOR_SIZE_GE(x) ((SIMDE_NATURAL_VECTOR_SIZE > 0) && (SIMDE_NATURAL_VECTOR_SIZE >= (x)))
4011
+#define SIMDE_NATURAL_FLOAT_VECTOR_SIZE_LE(x) ((SIMDE_NATURAL_FLOAT_VECTOR_SIZE > 0) && (SIMDE_NATURAL_FLOAT_VECTOR_SIZE <= (x)))
4012
+#define SIMDE_NATURAL_FLOAT_VECTOR_SIZE_GE(x) ((SIMDE_NATURAL_FLOAT_VECTOR_SIZE > 0) && (SIMDE_NATURAL_FLOAT_VECTOR_SIZE >= (x)))
4013
+#define SIMDE_NATURAL_INT_VECTOR_SIZE_LE(x) ((SIMDE_NATURAL_INT_VECTOR_SIZE > 0) && (SIMDE_NATURAL_INT_VECTOR_SIZE <= (x)))
4014
+#define SIMDE_NATURAL_INT_VECTOR_SIZE_GE(x) ((SIMDE_NATURAL_INT_VECTOR_SIZE > 0) && (SIMDE_NATURAL_INT_VECTOR_SIZE >= (x)))
4015
+#define SIMDE_NATURAL_DOUBLE_VECTOR_SIZE_LE(x) ((SIMDE_NATURAL_DOUBLE_VECTOR_SIZE > 0) && (SIMDE_NATURAL_DOUBLE_VECTOR_SIZE <= (x)))
4016
+#define SIMDE_NATURAL_DOUBLE_VECTOR_SIZE_GE(x) ((SIMDE_NATURAL_DOUBLE_VECTOR_SIZE > 0) && (SIMDE_NATURAL_DOUBLE_VECTOR_SIZE >= (x)))
4017
+
4018
+/* Native aliases */
4019
+#if defined(SIMDE_ENABLE_NATIVE_ALIASES)
4020
+ #if !defined(SIMDE_X86_MMX_NATIVE)
4021
+ #define SIMDE_X86_MMX_ENABLE_NATIVE_ALIASES
4022
+ #endif
4023
+ #if !defined(SIMDE_X86_SSE_NATIVE)
4024
+ #define SIMDE_X86_SSE_ENABLE_NATIVE_ALIASES
4025
+ #endif
4026
+ #if !defined(SIMDE_X86_SSE2_NATIVE)
4027
+ #define SIMDE_X86_SSE2_ENABLE_NATIVE_ALIASES
4028
+ #endif
4029
+ #if !defined(SIMDE_X86_SSE3_NATIVE)
4030
+ #define SIMDE_X86_SSE3_ENABLE_NATIVE_ALIASES
4031
+ #endif
4032
+ #if !defined(SIMDE_X86_SSSE3_NATIVE)
4033
+ #define SIMDE_X86_SSSE3_ENABLE_NATIVE_ALIASES
4034
+ #endif
4035
+ #if !defined(SIMDE_X86_SSE4_1_NATIVE)
4036
+ #define SIMDE_X86_SSE4_1_ENABLE_NATIVE_ALIASES
4037
+ #endif
4038
+ #if !defined(SIMDE_X86_SSE4_2_NATIVE)
4039
+ #define SIMDE_X86_SSE4_2_ENABLE_NATIVE_ALIASES
4040
+ #endif
4041
+ #if !defined(SIMDE_X86_AVX_NATIVE)
4042
+ #define SIMDE_X86_AVX_ENABLE_NATIVE_ALIASES
4043
+ #endif
4044
+ #if !defined(SIMDE_X86_AVX2_NATIVE)
4045
+ #define SIMDE_X86_AVX2_ENABLE_NATIVE_ALIASES
4046
+ #endif
4047
+ #if !defined(SIMDE_X86_FMA_NATIVE)
4048
+ #define SIMDE_X86_FMA_ENABLE_NATIVE_ALIASES
4049
+ #endif
4050
+ #if !defined(SIMDE_X86_AVX512F_NATIVE)
4051
+ #define SIMDE_X86_AVX512F_ENABLE_NATIVE_ALIASES
4052
+ #endif
4053
+ #if !defined(SIMDE_X86_AVX512VL_NATIVE)
4054
+ #define SIMDE_X86_AVX512VL_ENABLE_NATIVE_ALIASES
4055
+ #endif
4056
+ #if !defined(SIMDE_X86_AVX512VBMI_NATIVE)
4057
+ #define SIMDE_X86_AVX512VBMI_ENABLE_NATIVE_ALIASES
4058
+ #endif
4059
+ #if !defined(SIMDE_X86_AVX512VBMI2_NATIVE)
4060
+ #define SIMDE_X86_AVX512VBMI2_ENABLE_NATIVE_ALIASES
4061
+ #endif
4062
+ #if !defined(SIMDE_X86_AVX512BW_NATIVE)
4063
+ #define SIMDE_X86_AVX512BW_ENABLE_NATIVE_ALIASES
4064
+ #endif
4065
+ #if !defined(SIMDE_X86_AVX512VNNI_NATIVE)
4066
+ #define SIMDE_X86_AVX512VNNI_ENABLE_NATIVE_ALIASES
4067
+ #endif
4068
+ #if !defined(SIMDE_X86_AVX5124VNNIW_NATIVE)
4069
+ #define SIMDE_X86_AVX5124VNNIW_ENABLE_NATIVE_ALIASES
4070
+ #endif
4071
+ #if !defined(SIMDE_X86_AVX512BF16_NATIVE)
4072
+ #define SIMDE_X86_AVX512BF16_ENABLE_NATIVE_ALIASES
4073
+ #endif
4074
+ #if !defined(SIMDE_X86_AVX512BITALG_NATIVE)
4075
+ #define SIMDE_X86_AVX512BITALG_ENABLE_NATIVE_ALIASES
4076
+ #endif
4077
+ #if !defined(SIMDE_X86_AVX512VPOPCNTDQ_NATIVE)
4078
+ #define SIMDE_X86_AVX512VPOPCNTDQ_ENABLE_NATIVE_ALIASES
4079
+ #endif
4080
+ #if !defined(SIMDE_X86_AVX512VP2INTERSECT_NATIVE)
4081
+ #define SIMDE_X86_AVX512VP2INTERSECT_ENABLE_NATIVE_ALIASES
4082
+ #endif
4083
+ #if !defined(SIMDE_X86_AVX512DQ_NATIVE)
4084
+ #define SIMDE_X86_AVX512DQ_ENABLE_NATIVE_ALIASES
4085
+ #endif
4086
+ #if !defined(SIMDE_X86_AVX512CD_NATIVE)
4087
+ #define SIMDE_X86_AVX512CD_ENABLE_NATIVE_ALIASES
4088
+ #endif
4089
+ #if !defined(SIMDE_X86_AVX512FP16_NATIVE)
4090
+ #define SIMDE_X86_AVX512FP16_ENABLE_NATIVE_ALIASES
4091
+ #endif
4092
+ #if !defined(SIMDE_X86_GFNI_NATIVE)
4093
+ #define SIMDE_X86_GFNI_ENABLE_NATIVE_ALIASES
4094
+ #endif
4095
+ #if !defined(SIMDE_X86_PCLMUL_NATIVE)
4096
+ #define SIMDE_X86_PCLMUL_ENABLE_NATIVE_ALIASES
4097
+ #endif
4098
+ #if !defined(SIMDE_X86_VPCLMULQDQ_NATIVE)
4099
+ #define SIMDE_X86_VPCLMULQDQ_ENABLE_NATIVE_ALIASES
4100
+ #endif
4101
+ #if !defined(SIMDE_X86_F16C_NATIVE)
4102
+ #define SIMDE_X86_F16C_ENABLE_NATIVE_ALIASES
4103
+ #endif
4104
+ #if !defined(SIMDE_X86_AES_NATIVE)
4105
+ #define SIMDE_X86_AES_ENABLE_NATIVE_ALIASES
4106
+ #endif
4107
+ #if !defined(SIMDE_X86_SVML_NATIVE)
4108
+ #define SIMDE_X86_SVML_ENABLE_NATIVE_ALIASES
4109
+ #endif
4110
+
4111
+ #if !defined(SIMDE_ARM_NEON_A32V7_NATIVE)
4112
+ #define SIMDE_ARM_NEON_A32V7_ENABLE_NATIVE_ALIASES
4113
+ #endif
4114
+ #if !defined(SIMDE_ARM_NEON_A32V8_NATIVE)
4115
+ #define SIMDE_ARM_NEON_A32V8_ENABLE_NATIVE_ALIASES
4116
+ #endif
4117
+ #if !defined(SIMDE_ARM_NEON_A64V8_NATIVE)
4118
+ #define SIMDE_ARM_NEON_A64V8_ENABLE_NATIVE_ALIASES
4119
+ #endif
4120
+
4121
+ #if !defined(SIMDE_ARM_SVE_NATIVE)
4122
+ #define SIMDE_ARM_SVE_ENABLE_NATIVE_ALIASES
4123
+ #endif
4124
+
4125
+ #if !defined(SIMDE_RISCV_V_NATIVE)
4126
+ #define SIMDE_RISCV_V_ENABLE_NATIVE_ALIASES
4127
+ #endif
4128
+
4129
+ #if !defined(SIMDE_MIPS_MSA_NATIVE)
4130
+ #define SIMDE_MIPS_MSA_ENABLE_NATIVE_ALIASES
4131
+ #endif
4132
+
4133
+ #if !defined(SIMDE_WASM_SIMD128_NATIVE)
4134
+ #define SIMDE_WASM_SIMD128_ENABLE_NATIVE_ALIASES
4135
+ #endif
4136
+#endif
4137
+
4138
+/* Are floating point values stored using IEEE 754? Knowing
4139
+ * this at during preprocessing is a bit tricky, mostly because what
4140
+ * we're curious about is how values are stored and not whether the
4141
+ * implementation is fully conformant in terms of rounding, NaN
4142
+ * handling, etc.
4143
+ *
4144
+ * For example, if you use -ffast-math or -Ofast on
4145
+ * GCC or clang IEEE 754 isn't strictly followed, therefore IEE 754
4146
+ * support is not advertised (by defining __STDC_IEC_559__).
4147
+ *
4148
+ * However, what we care about is whether it is safe to assume that
4149
+ * floating point values are stored in IEEE 754 format, in which case
4150
+ * we can provide faster implementations of some functions.
4151
+ *
4152
+ * Luckily every vaugely modern architecture I'm aware of uses IEEE 754-
4153
+ * so we just assume IEEE 754 for now. There is a test which verifies
4154
+ * this, if that test fails sowewhere please let us know and we'll add
4155
+ * an exception for that platform. Meanwhile, you can define
4156
+ * SIMDE_NO_IEEE754_STORAGE. */
4157
+#if !defined(SIMDE_IEEE754_STORAGE) && !defined(SIMDE_NO_IEE754_STORAGE)
4158
+ #define SIMDE_IEEE754_STORAGE
4159
+#endif
4160
+
4161
+#if defined(SIMDE_ARCH_ARM_NEON_FP16)
4162
+ #define SIMDE_ARM_NEON_FP16
4163
+#endif
4164
+
4165
+#if defined(SIMDE_ARCH_ARM_NEON_BF16)
4166
+ #define SIMDE_ARM_NEON_BF16
4167
+#endif
4168
+
4169
+#if !defined(SIMDE_LOONGARCH_LASX_NATIVE) && !defined(SIMDE_LOONGARCH_LASX_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
4170
+ #if defined(SIMDE_ARCH_LOONGARCH_LASX)
4171
+ #define SIMDE_LOONGARCH_LASX_NATIVE
4172
+ #endif
4173
+#endif
4174
+
4175
+#if !defined(SIMDE_LOONGARCH_LSX_NATIVE) && !defined(SIMDE_LOONGARCH_LSX_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
4176
+ #if defined(SIMDE_ARCH_LOONGARCH_LSX)
4177
+ #define SIMDE_LOONGARCH_LSX_NATIVE
4178
+ #endif
4179
+#endif
4180
+
4181
+#if defined(SIMDE_LOONGARCH_LASX_NATIVE)
4182
+ #include <lasxintrin.h>
4183
+#endif
4184
+#if defined(SIMDE_LOONGARCH_LSX_NATIVE)
4185
+ #include <lsxintrin.h>
4186
+#endif
4187
+
4188
+#endif /* !defined(SIMDE_FEATURES_H) */
4189
+/* :: End simde/simde-features.h :: */
4190
+/* AUTOMATICALLY GENERATED FILE, DO NOT MODIFY */
4191
+/* 71fd833d9666141edcd1d3c109a80e228303d8d7 */
4192
+/* AUTOMATICALLY GENERATED FILE, DO NOT MODIFY */
4193
+/* 71fd833d9666141edcd1d3c109a80e228303d8d7 */
4194
+/* :: Begin simde/simde-math.h :: */
4195
+/* SPDX-License-Identifier: MIT
4196
+ *
4197
+ * Permission is hereby granted, free of charge, to any person
4198
+ * obtaining a copy of this software and associated documentation
4199
+ * files (the "Software"), to deal in the Software without
4200
+ * restriction, including without limitation the rights to use, copy,
4201
+ * modify, merge, publish, distribute, sublicense, and/or sell copies
4202
+ * of the Software, and to permit persons to whom the Software is
4203
+ * furnished to do so, subject to the following conditions:
4204
+ *
4205
+ * The above copyright notice and this permission notice shall be
4206
+ * included in all copies or substantial portions of the Software.
4207
+ *
4208
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
4209
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
4210
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
4211
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
4212
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
4213
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
4214
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4215
+ * SOFTWARE.
4216
+ *
4217
+ * Copyright:
4218
+ * 2017-2020 Evan Nemerson <evan@nemerson.com>
4219
+ * 2023 Yi-Yen Chung <eric681@andestech.com> (Copyright owned by Andes Technology)
4220
+ */
4221
+
4222
+/* Attempt to find math functions. Functions may be in <cmath>,
4223
+ * <math.h>, compiler built-ins/intrinsics, or platform/architecture
4224
+ * specific headers. In some cases, especially those not built in to
4225
+ * libm, we may need to define our own implementations. */
4226
+
4227
+#if !defined(SIMDE_MATH_H)
4228
+#define SIMDE_MATH_H 1
4229
+
4230
+/* AUTOMATICALLY GENERATED FILE, DO NOT MODIFY */
4231
+/* 71fd833d9666141edcd1d3c109a80e228303d8d7 */
4232
+/* AUTOMATICALLY GENERATED FILE, DO NOT MODIFY */
4233
+/* 71fd833d9666141edcd1d3c109a80e228303d8d7 */
4234
+
4235
+#include <stdint.h>
4236
+#if defined(SIMDE_ARM_NEON_A64V8_NATIVE)
4237
+ #include <arm_neon.h>
4238
+#endif
4239
+
4240
+HEDLEY_DIAGNOSTIC_PUSH
4241
+SIMDE_DISABLE_UNWANTED_DIAGNOSTICS
4242
+
4243
+/* SLEEF support
4244
+ * https://sleef.org/
4245
+ *
4246
+ * If you include <sleef.h> prior to including SIMDe, SIMDe will use
4247
+ * SLEEF. You can also define SIMDE_MATH_SLEEF_ENABLE prior to
4248
+ * including SIMDe to force the issue.
4249
+ *
4250
+ * Note that SLEEF does requires linking to libsleef.
4251
+ *
4252
+ * By default, SIMDe will use the 1 ULP functions, but if you use
4253
+ * SIMDE_ACCURACY_PREFERENCE of 0 we will use up to 4 ULP. This is
4254
+ * only the case for the simde_math_* functions; for code in other
4255
+ * SIMDe headers which calls SLEEF directly we may use functions with
4256
+ * greater error if the API we're implementing is less precise (for
4257
+ * example, SVML guarantees 4 ULP, so we will generally use the 3.5
4258
+ * ULP functions from SLEEF). */
4259
+#if !defined(SIMDE_MATH_SLEEF_DISABLE)
4260
+ #if defined(__SLEEF_H__)
4261
+ #define SIMDE_MATH_SLEEF_ENABLE
4262
+ #endif
4263
+#endif
4264
+
4265
+#if defined(SIMDE_MATH_SLEEF_ENABLE) && !defined(__SLEEF_H__)
4266
+ HEDLEY_DIAGNOSTIC_PUSH
4267
+ SIMDE_DIAGNOSTIC_DISABLE_IGNORED_QUALIFIERS_
4268
+ #include <sleef.h>
4269
+ HEDLEY_DIAGNOSTIC_POP
4270
+#endif
4271
+
4272
+#if defined(SIMDE_MATH_SLEEF_ENABLE) && defined(__SLEEF_H__)
4273
+ #if defined(SLEEF_VERSION_MAJOR)
4274
+ #define SIMDE_MATH_SLEEF_VERSION_CHECK(major, minor, patch) (HEDLEY_VERSION_ENCODE(SLEEF_VERSION_MAJOR, SLEEF_VERSION_MINOR, SLEEF_VERSION_PATCHLEVEL) >= HEDLEY_VERSION_ENCODE(major, minor, patch))
4275
+ #else
4276
+ #define SIMDE_MATH_SLEEF_VERSION_CHECK(major, minor, patch) (HEDLEY_VERSION_ENCODE(3,0,0) >= HEDLEY_VERSION_ENCODE(major, minor, patch))
4277
+ #endif
4278
+#else
4279
+ #define SIMDE_MATH_SLEEF_VERSION_CHECK(major, minor, patch) (0)
4280
+#endif
4281
+
4282
+#if defined(__has_builtin)
4283
+ #define SIMDE_MATH_BUILTIN_LIBM(func) __has_builtin(__builtin_##func)
4284
+#elif \
4285
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
4286
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
4287
+ HEDLEY_GCC_VERSION_CHECK(4,4,0)
4288
+ #define SIMDE_MATH_BUILTIN_LIBM(func) (1)
4289
+#else
4290
+ #define SIMDE_MATH_BUILTIN_LIBM(func) (0)
4291
+#endif
4292
+
4293
+#if defined(HUGE_VAL)
4294
+ /* Looks like <math.h> or <cmath> has already been included. */
4295
+
4296
+ /* The math.h from libc++ (yes, the C header from the C++ standard
4297
+ * library) will define an isnan function, but not an isnan macro
4298
+ * like the C standard requires. So we detect the header guards
4299
+ * macro libc++ uses. */
4300
+ #if defined(isnan) || (defined(_LIBCPP_MATH_H) && !defined(_LIBCPP_CMATH))
4301
+ #define SIMDE_MATH_HAVE_MATH_H
4302
+ #elif defined(__cplusplus)
4303
+ #define SIMDE_MATH_HAVE_CMATH
4304
+ #endif
4305
+#elif defined(__has_include)
4306
+ #if defined(__cplusplus) && (__cplusplus >= 201103L) && __has_include(<cmath>)
4307
+ #define SIMDE_MATH_HAVE_CMATH
4308
+ #include <cmath>
4309
+ #elif __has_include(<math.h>)
4310
+ #define SIMDE_MATH_HAVE_MATH_H
4311
+ #include <math.h>
4312
+ #elif !defined(SIMDE_MATH_NO_LIBM)
4313
+ #define SIMDE_MATH_NO_LIBM
4314
+ #endif
4315
+#elif !defined(SIMDE_MATH_NO_LIBM)
4316
+ #if defined(__cplusplus) && (__cplusplus >= 201103L)
4317
+ #define SIMDE_MATH_HAVE_CMATH
4318
+ HEDLEY_DIAGNOSTIC_PUSH
4319
+ #if defined(HEDLEY_MSVC_VERSION)
4320
+ /* VS 14 emits this diagnostic about noexcept being used on a
4321
+ * <cmath> function, which we can't do anything about. */
4322
+ #pragma warning(disable:4996)
4323
+ #endif
4324
+ #include <cmath>
4325
+ HEDLEY_DIAGNOSTIC_POP
4326
+ #else
4327
+ #define SIMDE_MATH_HAVE_MATH_H
4328
+ #include <math.h>
4329
+ #endif
4330
+#endif
4331
+
4332
+#if !defined(SIMDE_MATH_INFINITY)
4333
+ #if \
4334
+ HEDLEY_HAS_BUILTIN(__builtin_inf) || \
4335
+ HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
4336
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
4337
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
4338
+ HEDLEY_CRAY_VERSION_CHECK(8,1,0)
4339
+ #define SIMDE_MATH_INFINITY (__builtin_inf())
4340
+ #elif defined(INFINITY)
4341
+ #define SIMDE_MATH_INFINITY INFINITY
4342
+ #endif
4343
+#endif
4344
+
4345
+#if !defined(SIMDE_INFINITYF)
4346
+ #if \
4347
+ HEDLEY_HAS_BUILTIN(__builtin_inff) || \
4348
+ HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
4349
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
4350
+ HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \
4351
+ HEDLEY_IBM_VERSION_CHECK(13,1,0)
4352
+ #define SIMDE_MATH_INFINITYF (__builtin_inff())
4353
+ #elif defined(INFINITYF)
4354
+ #define SIMDE_MATH_INFINITYF INFINITYF
4355
+ #elif defined(SIMDE_MATH_INFINITY)
4356
+ #define SIMDE_MATH_INFINITYF HEDLEY_STATIC_CAST(float, SIMDE_MATH_INFINITY)
4357
+ #endif
4358
+#endif
4359
+
4360
+#if !defined(SIMDE_MATH_NAN)
4361
+ #if \
4362
+ HEDLEY_HAS_BUILTIN(__builtin_nan) || \
4363
+ HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
4364
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
4365
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
4366
+ HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \
4367
+ HEDLEY_IBM_VERSION_CHECK(13,1,0)
4368
+ #define SIMDE_MATH_NAN (__builtin_nan(""))
4369
+ #elif defined(NAN)
4370
+ #define SIMDE_MATH_NAN NAN
4371
+ #endif
4372
+#endif
4373
+
4374
+#if !defined(SIMDE_NANF)
4375
+ #if \
4376
+ HEDLEY_HAS_BUILTIN(__builtin_nanf) || \
4377
+ HEDLEY_GCC_VERSION_CHECK(3,3,0) || \
4378
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
4379
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
4380
+ HEDLEY_CRAY_VERSION_CHECK(8,1,0)
4381
+ #define SIMDE_MATH_NANF (__builtin_nanf(""))
4382
+ #elif defined(NANF)
4383
+ #define SIMDE_MATH_NANF NANF
4384
+ #elif defined(SIMDE_MATH_NAN)
4385
+ #define SIMDE_MATH_NANF HEDLEY_STATIC_CAST(float, SIMDE_MATH_NAN)
4386
+ #endif
4387
+#endif
4388
+
4389
+#if !defined(SIMDE_MATH_PI)
4390
+ #if defined(M_PI)
4391
+ #define SIMDE_MATH_PI M_PI
4392
+ #else
4393
+ #define SIMDE_MATH_PI 3.14159265358979323846
4394
+ #endif
4395
+#endif
4396
+
4397
+#if !defined(SIMDE_MATH_PIF)
4398
+ #if defined(M_PI)
4399
+ #define SIMDE_MATH_PIF HEDLEY_STATIC_CAST(float, M_PI)
4400
+ #else
4401
+ #define SIMDE_MATH_PIF 3.14159265358979323846f
4402
+ #endif
4403
+#endif
4404
+
4405
+#if !defined(SIMDE_MATH_PI_OVER_180)
4406
+ #define SIMDE_MATH_PI_OVER_180 0.0174532925199432957692369076848861271344287188854172545609719144
4407
+#endif
4408
+
4409
+#if !defined(SIMDE_MATH_PI_OVER_180F)
4410
+ #define SIMDE_MATH_PI_OVER_180F 0.0174532925199432957692369076848861271344287188854172545609719144f
4411
+#endif
4412
+
4413
+#if !defined(SIMDE_MATH_180_OVER_PI)
4414
+ #define SIMDE_MATH_180_OVER_PI 57.295779513082320876798154814105170332405472466564321549160243861
4415
+#endif
4416
+
4417
+#if !defined(SIMDE_MATH_180_OVER_PIF)
4418
+ #define SIMDE_MATH_180_OVER_PIF 57.295779513082320876798154814105170332405472466564321549160243861f
4419
+#endif
4420
+
4421
+#if !defined(SIMDE_MATH_FLT_MIN)
4422
+ #if defined(__FLT_MIN__)
4423
+ #define SIMDE_MATH_FLT_MIN __FLT_MIN__
4424
+ #else
4425
+ #if !defined(FLT_MIN)
4426
+ #if defined(__cplusplus)
4427
+ #include <cfloat>
4428
+ #else
4429
+ #include <float.h>
4430
+ #endif
4431
+ #endif
4432
+ #define SIMDE_MATH_FLT_MIN FLT_MIN
4433
+ #endif
4434
+#endif
4435
+
4436
+#if !defined(SIMDE_MATH_FLT_MAX)
4437
+ #if defined(__FLT_MAX__)
4438
+ #define SIMDE_MATH_FLT_MAX __FLT_MAX__
4439
+ #else
4440
+ #if !defined(FLT_MAX)
4441
+ #if defined(__cplusplus)
4442
+ #include <cfloat>
4443
+ #else
4444
+ #include <float.h>
4445
+ #endif
4446
+ #endif
4447
+ #define SIMDE_MATH_FLT_MAX FLT_MAX
4448
+ #endif
4449
+#endif
4450
+
4451
+#if !defined(SIMDE_MATH_DBL_MIN)
4452
+ #if defined(__DBL_MIN__)
4453
+ #define SIMDE_MATH_DBL_MIN __DBL_MIN__
4454
+ #else
4455
+ #if !defined(DBL_MIN)
4456
+ #if defined(__cplusplus)
4457
+ #include <cfloat>
4458
+ #else
4459
+ #include <float.h>
4460
+ #endif
4461
+ #endif
4462
+ #define SIMDE_MATH_DBL_MIN DBL_MIN
4463
+ #endif
4464
+#endif
4465
+
4466
+#if !defined(SIMDE_MATH_DBL_MAX)
4467
+ #if defined(__DBL_MAX__)
4468
+ #define SIMDE_MATH_DBL_MAX __DBL_MAX__
4469
+ #else
4470
+ #if !defined(DBL_MAX)
4471
+ #if defined(__cplusplus)
4472
+ #include <cfloat>
4473
+ #else
4474
+ #include <float.h>
4475
+ #endif
4476
+ #endif
4477
+ #define SIMDE_MATH_DBL_MAX DBL_MAX
4478
+ #endif
4479
+#endif
4480
+
4481
+/*** Classification macros from C99 ***/
4482
+
4483
+#if !defined(simde_math_isinf)
4484
+ #if SIMDE_MATH_BUILTIN_LIBM(isinf)
4485
+ #define simde_math_isinf(v) __builtin_isinf(v)
4486
+ #elif defined(isinf) || defined(SIMDE_MATH_HAVE_MATH_H)
4487
+ #define simde_math_isinf(v) isinf(v)
4488
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4489
+ #define simde_math_isinf(v) std::isinf(v)
4490
+ #endif
4491
+#endif
4492
+
4493
+#if !defined(simde_math_isinff)
4494
+ #if HEDLEY_HAS_BUILTIN(__builtin_isinff) || \
4495
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
4496
+ HEDLEY_ARM_VERSION_CHECK(4,1,0)
4497
+ #define simde_math_isinff(v) __builtin_isinff(v)
4498
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4499
+ #define simde_math_isinff(v) std::isinf(v)
4500
+ #elif defined(simde_math_isinf)
4501
+ #define simde_math_isinff(v) simde_math_isinf(HEDLEY_STATIC_CAST(double, v))
4502
+ #endif
4503
+#endif
4504
+
4505
+#if !defined(simde_math_isnan)
4506
+ #if SIMDE_MATH_BUILTIN_LIBM(isnan)
4507
+ #define simde_math_isnan(v) __builtin_isnan(v)
4508
+ #elif defined(isnan) || defined(SIMDE_MATH_HAVE_MATH_H)
4509
+ #define simde_math_isnan(v) isnan(v)
4510
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4511
+ #define simde_math_isnan(v) std::isnan(v)
4512
+ #endif
4513
+#endif
4514
+
4515
+#if !defined(simde_math_isnanf)
4516
+ #if HEDLEY_HAS_BUILTIN(__builtin_isnanf) || \
4517
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \
4518
+ HEDLEY_ARM_VERSION_CHECK(4,1,0)
4519
+ /* XL C/C++ has __builtin_isnan but not __builtin_isnanf */
4520
+ #define simde_math_isnanf(v) __builtin_isnanf(v)
4521
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4522
+ #define simde_math_isnanf(v) std::isnan(v)
4523
+ #elif defined(simde_math_isnan)
4524
+ #define simde_math_isnanf(v) simde_math_isnan(HEDLEY_STATIC_CAST(double, v))
4525
+ #endif
4526
+#endif
4527
+
4528
+#if !defined(simde_math_isnormal)
4529
+ #if SIMDE_MATH_BUILTIN_LIBM(isnormal)
4530
+ #define simde_math_isnormal(v) __builtin_isnormal(v)
4531
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4532
+ #define simde_math_isnormal(v) isnormal(v)
4533
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4534
+ #define simde_math_isnormal(v) std::isnormal(v)
4535
+ #endif
4536
+#endif
4537
+
4538
+#if !defined(simde_math_isnormalf)
4539
+ #if HEDLEY_HAS_BUILTIN(__builtin_isnormalf)
4540
+ #define simde_math_isnormalf(v) __builtin_isnormalf(v)
4541
+ #elif SIMDE_MATH_BUILTIN_LIBM(isnormal)
4542
+ #define simde_math_isnormalf(v) __builtin_isnormal(v)
4543
+ #elif defined(isnormalf)
4544
+ #define simde_math_isnormalf(v) isnormalf(v)
4545
+ #elif defined(isnormal) || defined(SIMDE_MATH_HAVE_MATH_H)
4546
+ #define simde_math_isnormalf(v) isnormal(v)
4547
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4548
+ #define simde_math_isnormalf(v) std::isnormal(v)
4549
+ #elif defined(simde_math_isnormal)
4550
+ #define simde_math_isnormalf(v) simde_math_isnormal(v)
4551
+ #endif
4552
+#endif
4553
+
4554
+#if !defined(simde_math_issubnormalf)
4555
+ #if SIMDE_MATH_BUILTIN_LIBM(fpclassify)
4556
+ #define simde_math_issubnormalf(v) __builtin_fpclassify(0, 0, 0, 1, 0, v)
4557
+ #elif defined(fpclassify)
4558
+ #define simde_math_issubnormalf(v) (fpclassify(v) == FP_SUBNORMAL)
4559
+ #elif defined(SIMDE_IEEE754_STORAGE)
4560
+ #define simde_math_issubnormalf(v) (((simde_float32_as_uint32(v) & UINT32_C(0x7F800000)) == UINT32_C(0)) && ((simde_float32_as_uint32(v) & UINT32_C(0x007FFFFF)) != UINT32_C(0)))
4561
+ #endif
4562
+#endif
4563
+
4564
+#if !defined(simde_math_issubnormal)
4565
+ #if SIMDE_MATH_BUILTIN_LIBM(fpclassify)
4566
+ #define simde_math_issubnormal(v) __builtin_fpclassify(0, 0, 0, 1, 0, v)
4567
+ #elif defined(fpclassify)
4568
+ #define simde_math_issubnormal(v) (fpclassify(v) == FP_SUBNORMAL)
4569
+ #elif defined(SIMDE_IEEE754_STORAGE)
4570
+ #define simde_math_issubnormal(v) (((simde_float64_as_uint64(v) & UINT64_C(0x7FF0000000000000)) == UINT64_C(0)) && ((simde_float64_as_uint64(v) & UINT64_C(0x00FFFFFFFFFFFFF)) != UINT64_C(0)))
4571
+ #endif
4572
+#endif
4573
+
4574
+#if defined(FP_NAN)
4575
+ #define SIMDE_MATH_FP_NAN FP_NAN
4576
+#else
4577
+ #define SIMDE_MATH_FP_NAN 0
4578
+#endif
4579
+#if defined(FP_INFINITE)
4580
+ #define SIMDE_MATH_FP_INFINITE FP_INFINITE
4581
+#else
4582
+ #define SIMDE_MATH_FP_INFINITE 1
4583
+#endif
4584
+#if defined(FP_ZERO)
4585
+ #define SIMDE_MATH_FP_ZERO FP_ZERO
4586
+#else
4587
+ #define SIMDE_MATH_FP_ZERO 2
4588
+#endif
4589
+#if defined(FP_SUBNORMAL)
4590
+ #define SIMDE_MATH_FP_SUBNORMAL FP_SUBNORMAL
4591
+#else
4592
+ #define SIMDE_MATH_FP_SUBNORMAL 3
4593
+#endif
4594
+#if defined(FP_NORMAL)
4595
+ #define SIMDE_MATH_FP_NORMAL FP_NORMAL
4596
+#else
4597
+ #define SIMDE_MATH_FP_NORMAL 4
4598
+#endif
4599
+
4600
+static HEDLEY_INLINE
4601
+int
4602
+simde_math_fpclassifyf(float v) {
4603
+ #if SIMDE_MATH_BUILTIN_LIBM(fpclassify)
4604
+ return __builtin_fpclassify(SIMDE_MATH_FP_NAN, SIMDE_MATH_FP_INFINITE, SIMDE_MATH_FP_NORMAL, SIMDE_MATH_FP_SUBNORMAL, SIMDE_MATH_FP_ZERO, v);
4605
+ #elif defined(fpclassify)
4606
+ return fpclassify(v);
4607
+ #else
4608
+ return
4609
+ simde_math_isnormalf(v) ? SIMDE_MATH_FP_NORMAL :
4610
+ (v == 0.0f) ? SIMDE_MATH_FP_ZERO :
4611
+ simde_math_isnanf(v) ? SIMDE_MATH_FP_NAN :
4612
+ simde_math_isinff(v) ? SIMDE_MATH_FP_INFINITE :
4613
+ SIMDE_MATH_FP_SUBNORMAL;
4614
+ #endif
4615
+}
4616
+
4617
+static HEDLEY_INLINE
4618
+int
4619
+simde_math_fpclassify(double v) {
4620
+ #if SIMDE_MATH_BUILTIN_LIBM(fpclassify)
4621
+ return __builtin_fpclassify(SIMDE_MATH_FP_NAN, SIMDE_MATH_FP_INFINITE, SIMDE_MATH_FP_NORMAL, SIMDE_MATH_FP_SUBNORMAL, SIMDE_MATH_FP_ZERO, v);
4622
+ #elif defined(fpclassify)
4623
+ return fpclassify(v);
4624
+ #else
4625
+ return
4626
+ simde_math_isnormal(v) ? SIMDE_MATH_FP_NORMAL :
4627
+ (v == 0.0) ? SIMDE_MATH_FP_ZERO :
4628
+ simde_math_isnan(v) ? SIMDE_MATH_FP_NAN :
4629
+ simde_math_isinf(v) ? SIMDE_MATH_FP_INFINITE :
4630
+ SIMDE_MATH_FP_SUBNORMAL;
4631
+ #endif
4632
+}
4633
+
4634
+#define SIMDE_MATH_FP_QNAN 0x01
4635
+#define SIMDE_MATH_FP_PZERO 0x02
4636
+#define SIMDE_MATH_FP_NZERO 0x04
4637
+#define SIMDE_MATH_FP_PINF 0x08
4638
+#define SIMDE_MATH_FP_NINF 0x10
4639
+#define SIMDE_MATH_FP_DENORMAL 0x20
4640
+#define SIMDE_MATH_FP_NEGATIVE 0x40
4641
+#define SIMDE_MATH_FP_SNAN 0x80
4642
+
4643
+static HEDLEY_INLINE
4644
+uint8_t
4645
+simde_math_fpclassf(float v, const int imm8) {
4646
+ union {
4647
+ float f;
4648
+ uint32_t u;
4649
+ } fu;
4650
+ fu.f = v;
4651
+ uint32_t bits = fu.u;
4652
+ uint8_t NegNum = (bits >> 31) & 1;
4653
+ uint32_t const ExpMask = 0x3F800000; // [30:23]
4654
+ uint32_t const MantMask = 0x007FFFFF; // [22:0]
4655
+ uint8_t ExpAllOnes = ((bits & ExpMask) == ExpMask);
4656
+ uint8_t ExpAllZeros = ((bits & ExpMask) == 0);
4657
+ uint8_t MantAllZeros = ((bits & MantMask) == 0);
4658
+ uint8_t ZeroNumber = ExpAllZeros & MantAllZeros;
4659
+ uint8_t SignalingBit = (bits >> 22) & 1;
4660
+
4661
+ uint8_t result = 0;
4662
+ uint8_t qNaN_res = ExpAllOnes & (!MantAllZeros) & SignalingBit;
4663
+ uint8_t Pzero_res = (!NegNum) & ExpAllZeros & MantAllZeros;
4664
+ uint8_t Nzero_res = NegNum & ExpAllZeros & MantAllZeros;
4665
+ uint8_t Pinf_res = (!NegNum) & ExpAllOnes & MantAllZeros;
4666
+ uint8_t Ninf_res = NegNum & ExpAllOnes & MantAllZeros;
4667
+ uint8_t Denorm_res = ExpAllZeros & (!MantAllZeros);
4668
+ uint8_t FinNeg_res = NegNum & (!ExpAllOnes) & (!ZeroNumber);
4669
+ uint8_t sNaN_res = ExpAllOnes & (!MantAllZeros) & (!SignalingBit);
4670
+ result = (((imm8 >> 0) & qNaN_res) | \
4671
+ ((imm8 >> 1) & Pzero_res) | \
4672
+ ((imm8 >> 2) & Nzero_res) | \
4673
+ ((imm8 >> 3) & Pinf_res) | \
4674
+ ((imm8 >> 4) & Ninf_res) | \
4675
+ ((imm8 >> 5) & Denorm_res) | \
4676
+ ((imm8 >> 6) & FinNeg_res) | \
4677
+ ((imm8 >> 7) & sNaN_res));
4678
+ return result;
4679
+}
4680
+
4681
+static HEDLEY_INLINE
4682
+uint8_t
4683
+simde_math_fpclass(double v, const int imm8) {
4684
+ union {
4685
+ double d;
4686
+ uint64_t u;
4687
+ } du;
4688
+ du.d = v;
4689
+ uint64_t bits = du.u;
4690
+ uint8_t NegNum = (bits >> 63) & 1;
4691
+ uint64_t const ExpMask = 0x3FF0000000000000; // [62:52]
4692
+ uint64_t const MantMask = 0x000FFFFFFFFFFFFF; // [51:0]
4693
+ uint8_t ExpAllOnes = ((bits & ExpMask) == ExpMask);
4694
+ uint8_t ExpAllZeros = ((bits & ExpMask) == 0);
4695
+ uint8_t MantAllZeros = ((bits & MantMask) == 0);
4696
+ uint8_t ZeroNumber = ExpAllZeros & MantAllZeros;
4697
+ uint8_t SignalingBit = (bits >> 51) & 1;
4698
+
4699
+ uint8_t result = 0;
4700
+ uint8_t qNaN_res = ExpAllOnes & (!MantAllZeros) & SignalingBit;
4701
+ uint8_t Pzero_res = (!NegNum) & ExpAllZeros & MantAllZeros;
4702
+ uint8_t Nzero_res = NegNum & ExpAllZeros & MantAllZeros;
4703
+ uint8_t Pinf_res = (!NegNum) & ExpAllOnes & MantAllZeros;
4704
+ uint8_t Ninf_res = NegNum & ExpAllOnes & MantAllZeros;
4705
+ uint8_t Denorm_res = ExpAllZeros & (!MantAllZeros);
4706
+ uint8_t FinNeg_res = NegNum & (!ExpAllOnes) & (!ZeroNumber);
4707
+ uint8_t sNaN_res = ExpAllOnes & (!MantAllZeros) & (!SignalingBit);
4708
+ result = (((imm8 >> 0) & qNaN_res) | \
4709
+ ((imm8 >> 1) & Pzero_res) | \
4710
+ ((imm8 >> 2) & Nzero_res) | \
4711
+ ((imm8 >> 3) & Pinf_res) | \
4712
+ ((imm8 >> 4) & Ninf_res) | \
4713
+ ((imm8 >> 5) & Denorm_res) | \
4714
+ ((imm8 >> 6) & FinNeg_res) | \
4715
+ ((imm8 >> 7) & sNaN_res));
4716
+ return result;
4717
+}
4718
+
4719
+/*** Manipulation functions ***/
4720
+
4721
+#if !defined(simde_math_nextafter)
4722
+ #if \
4723
+ (HEDLEY_HAS_BUILTIN(__builtin_nextafter) && !defined(HEDLEY_IBM_VERSION)) || \
4724
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
4725
+ HEDLEY_GCC_VERSION_CHECK(3,4,0) || \
4726
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0)
4727
+ #define simde_math_nextafter(x, y) __builtin_nextafter(x, y)
4728
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4729
+ #define simde_math_nextafter(x, y) std::nextafter(x, y)
4730
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4731
+ #define simde_math_nextafter(x, y) nextafter(x, y)
4732
+ #endif
4733
+#endif
4734
+
4735
+#if !defined(simde_math_nextafterf)
4736
+ #if \
4737
+ (HEDLEY_HAS_BUILTIN(__builtin_nextafterf) && !defined(HEDLEY_IBM_VERSION)) || \
4738
+ HEDLEY_ARM_VERSION_CHECK(4,1,0) || \
4739
+ HEDLEY_GCC_VERSION_CHECK(3,4,0) || \
4740
+ HEDLEY_INTEL_VERSION_CHECK(13,0,0)
4741
+ #define simde_math_nextafterf(x, y) __builtin_nextafterf(x, y)
4742
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4743
+ #define simde_math_nextafterf(x, y) std::nextafter(x, y)
4744
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4745
+ #define simde_math_nextafterf(x, y) nextafterf(x, y)
4746
+ #endif
4747
+#endif
4748
+
4749
+/*** Functions from C99 ***/
4750
+
4751
+#if !defined(simde_math_abs)
4752
+ #if SIMDE_MATH_BUILTIN_LIBM(abs)
4753
+ #define simde_math_abs(v) __builtin_abs(v)
4754
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4755
+ #define simde_math_abs(v) std::abs(v)
4756
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4757
+ #define simde_math_abs(v) abs(v)
4758
+ #endif
4759
+#endif
4760
+
4761
+#if !defined(simde_math_labs)
4762
+ #if SIMDE_MATH_BUILTIN_LIBM(labs)
4763
+ #define simde_math_labs(v) __builtin_labs(v)
4764
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4765
+ #define simde_math_labs(v) std::labs(v)
4766
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4767
+ #define simde_math_labs(v) labs(v)
4768
+ #endif
4769
+#endif
4770
+
4771
+#if !defined(simde_math_llabs)
4772
+ #if SIMDE_MATH_BUILTIN_LIBM(llabs)
4773
+ #define simde_math_llabs(v) __builtin_llabs(v)
4774
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4775
+ #define simde_math_llabs(v) std::llabs(v)
4776
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4777
+ #define simde_math_llabs(v) llabs(v)
4778
+ #endif
4779
+#endif
4780
+
4781
+#if !defined(simde_math_fabsf)
4782
+ #if SIMDE_MATH_BUILTIN_LIBM(fabsf)
4783
+ #define simde_math_fabsf(v) __builtin_fabsf(v)
4784
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4785
+ #define simde_math_fabsf(v) std::abs(v)
4786
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4787
+ #define simde_math_fabsf(v) fabsf(v)
4788
+ #endif
4789
+#endif
4790
+
4791
+#if !defined(simde_math_acos)
4792
+ #if SIMDE_MATH_BUILTIN_LIBM(acos)
4793
+ #define simde_math_acos(v) __builtin_acos(v)
4794
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4795
+ #define simde_math_acos(v) std::acos(v)
4796
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4797
+ #define simde_math_acos(v) acos(v)
4798
+ #endif
4799
+#endif
4800
+
4801
+#if !defined(simde_math_acosf)
4802
+ #if SIMDE_MATH_BUILTIN_LIBM(acosf)
4803
+ #define simde_math_acosf(v) __builtin_acosf(v)
4804
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4805
+ #define simde_math_acosf(v) std::acos(v)
4806
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4807
+ #define simde_math_acosf(v) acosf(v)
4808
+ #endif
4809
+#endif
4810
+
4811
+#if !defined(simde_math_acosh)
4812
+ #if SIMDE_MATH_BUILTIN_LIBM(acosh)
4813
+ #define simde_math_acosh(v) __builtin_acosh(v)
4814
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4815
+ #define simde_math_acosh(v) std::acosh(v)
4816
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4817
+ #define simde_math_acosh(v) acosh(v)
4818
+ #endif
4819
+#endif
4820
+
4821
+#if !defined(simde_math_acoshf)
4822
+ #if SIMDE_MATH_BUILTIN_LIBM(acoshf)
4823
+ #define simde_math_acoshf(v) __builtin_acoshf(v)
4824
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4825
+ #define simde_math_acoshf(v) std::acosh(v)
4826
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4827
+ #define simde_math_acoshf(v) acoshf(v)
4828
+ #endif
4829
+#endif
4830
+
4831
+#if !defined(simde_math_asin)
4832
+ #if SIMDE_MATH_BUILTIN_LIBM(asin)
4833
+ #define simde_math_asin(v) __builtin_asin(v)
4834
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4835
+ #define simde_math_asin(v) std::asin(v)
4836
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4837
+ #define simde_math_asin(v) asin(v)
4838
+ #endif
4839
+#endif
4840
+
4841
+#if !defined(simde_math_asinf)
4842
+ #if SIMDE_MATH_BUILTIN_LIBM(asinf)
4843
+ #define simde_math_asinf(v) __builtin_asinf(v)
4844
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4845
+ #define simde_math_asinf(v) std::asin(v)
4846
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4847
+ #define simde_math_asinf(v) asinf(v)
4848
+ #endif
4849
+#endif
4850
+
4851
+#if !defined(simde_math_asinh)
4852
+ #if SIMDE_MATH_BUILTIN_LIBM(asinh)
4853
+ #define simde_math_asinh(v) __builtin_asinh(v)
4854
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4855
+ #define simde_math_asinh(v) std::asinh(v)
4856
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4857
+ #define simde_math_asinh(v) asinh(v)
4858
+ #endif
4859
+#endif
4860
+
4861
+#if !defined(simde_math_asinhf)
4862
+ #if SIMDE_MATH_BUILTIN_LIBM(asinhf)
4863
+ #define simde_math_asinhf(v) __builtin_asinhf(v)
4864
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4865
+ #define simde_math_asinhf(v) std::asinh(v)
4866
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4867
+ #define simde_math_asinhf(v) asinhf(v)
4868
+ #endif
4869
+#endif
4870
+
4871
+#if !defined(simde_math_atan)
4872
+ #if SIMDE_MATH_BUILTIN_LIBM(atan)
4873
+ #define simde_math_atan(v) __builtin_atan(v)
4874
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4875
+ #define simde_math_atan(v) std::atan(v)
4876
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4877
+ #define simde_math_atan(v) atan(v)
4878
+ #endif
4879
+#endif
4880
+
4881
+#if !defined(simde_math_atan2)
4882
+ #if SIMDE_MATH_BUILTIN_LIBM(atan2)
4883
+ #define simde_math_atan2(y, x) __builtin_atan2(y, x)
4884
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4885
+ #define simde_math_atan2(y, x) std::atan2(y, x)
4886
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4887
+ #define simde_math_atan2(y, x) atan2(y, x)
4888
+ #endif
4889
+#endif
4890
+
4891
+#if !defined(simde_math_atan2f)
4892
+ #if SIMDE_MATH_BUILTIN_LIBM(atan2f)
4893
+ #define simde_math_atan2f(y, x) __builtin_atan2f(y, x)
4894
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4895
+ #define simde_math_atan2f(y, x) std::atan2(y, x)
4896
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4897
+ #define simde_math_atan2f(y, x) atan2f(y, x)
4898
+ #endif
4899
+#endif
4900
+
4901
+#if !defined(simde_math_atanf)
4902
+ #if SIMDE_MATH_BUILTIN_LIBM(atanf)
4903
+ #define simde_math_atanf(v) __builtin_atanf(v)
4904
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4905
+ #define simde_math_atanf(v) std::atan(v)
4906
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4907
+ #define simde_math_atanf(v) atanf(v)
4908
+ #endif
4909
+#endif
4910
+
4911
+#if !defined(simde_math_atanh)
4912
+ #if SIMDE_MATH_BUILTIN_LIBM(atanh)
4913
+ #define simde_math_atanh(v) __builtin_atanh(v)
4914
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4915
+ #define simde_math_atanh(v) std::atanh(v)
4916
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4917
+ #define simde_math_atanh(v) atanh(v)
4918
+ #endif
4919
+#endif
4920
+
4921
+#if !defined(simde_math_atanhf)
4922
+ #if SIMDE_MATH_BUILTIN_LIBM(atanhf)
4923
+ #define simde_math_atanhf(v) __builtin_atanhf(v)
4924
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4925
+ #define simde_math_atanhf(v) std::atanh(v)
4926
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4927
+ #define simde_math_atanhf(v) atanhf(v)
4928
+ #endif
4929
+#endif
4930
+
4931
+#if !defined(simde_math_cbrt)
4932
+ #if SIMDE_MATH_BUILTIN_LIBM(cbrt)
4933
+ #define simde_math_cbrt(v) __builtin_cbrt(v)
4934
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4935
+ #define simde_math_cbrt(v) std::cbrt(v)
4936
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4937
+ #define simde_math_cbrt(v) cbrt(v)
4938
+ #endif
4939
+#endif
4940
+
4941
+#if !defined(simde_math_cbrtf)
4942
+ #if SIMDE_MATH_BUILTIN_LIBM(cbrtf)
4943
+ #define simde_math_cbrtf(v) __builtin_cbrtf(v)
4944
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4945
+ #define simde_math_cbrtf(v) std::cbrt(v)
4946
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4947
+ #define simde_math_cbrtf(v) cbrtf(v)
4948
+ #endif
4949
+#endif
4950
+
4951
+#if !defined(simde_math_ceil)
4952
+ #if SIMDE_MATH_BUILTIN_LIBM(ceil)
4953
+ #define simde_math_ceil(v) __builtin_ceil(v)
4954
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4955
+ #define simde_math_ceil(v) std::ceil(v)
4956
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4957
+ #define simde_math_ceil(v) ceil(v)
4958
+ #endif
4959
+#endif
4960
+
4961
+#if !defined(simde_math_ceilf)
4962
+ #if SIMDE_MATH_BUILTIN_LIBM(ceilf)
4963
+ #define simde_math_ceilf(v) __builtin_ceilf(v)
4964
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4965
+ #define simde_math_ceilf(v) std::ceil(v)
4966
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4967
+ #define simde_math_ceilf(v) ceilf(v)
4968
+ #endif
4969
+#endif
4970
+
4971
+#if !defined(simde_math_copysign)
4972
+ #if SIMDE_MATH_BUILTIN_LIBM(copysign)
4973
+ #define simde_math_copysign(x, y) __builtin_copysign(x, y)
4974
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4975
+ #define simde_math_copysign(x, y) std::copysign(x, y)
4976
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4977
+ #define simde_math_copysign(x, y) copysign(x, y)
4978
+ #endif
4979
+#endif
4980
+
4981
+#if !defined(simde_math_copysignf)
4982
+ #if SIMDE_MATH_BUILTIN_LIBM(copysignf)
4983
+ #define simde_math_copysignf(x, y) __builtin_copysignf(x, y)
4984
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4985
+ #define simde_math_copysignf(x, y) std::copysignf(x, y)
4986
+ #elif defined(SIMDE_MATH_HAVE_MATH_H)
4987
+ #define simde_math_copysignf(x, y) copysignf(x, y)
4988
+ #endif
4989
+#endif
4990
+
4991
+#if !defined(simde_math_signbit)
4992
+ #if SIMDE_MATH_BUILTIN_LIBM(signbit)
4993
+ #if (!defined(__clang__) || SIMDE_DETECT_CLANG_VERSION_CHECK(7,0,0))
4994
+ #define simde_math_signbit(x) __builtin_signbit(x)
4995
+ #else
4996
+ #define simde_math_signbit(x) __builtin_signbit(HEDLEY_STATIC_CAST(double, (x)))
4997
+ #endif
4998
+ #elif defined(SIMDE_MATH_HAVE_CMATH)
4999
+ #define simde_math_signbit(x) std::signbit(x)
This file is too large to show in full.
apps/mobile/modules/t3-highlights/Vendor/wasm2c/LICENSE
new
+202
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
apps/mobile/modules/t3-highlights/Vendor/wasm2c/wasm-rt-impl-tableops.inc
new
+90
@@ -0,0 +1,90 @@
1
+/*
2
+ * Copyright 2018 WebAssembly Community Group participants
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+// This file is used as a template to generate code for table operations for
18
+// funcref or externref. For this, the file must be included after defining
19
+// either WASM_RT_TABLE_OPS_FUNCREF or WASM_RT_TABLE_OPS_EXTERNREF
20
+
21
+#if defined(WASM_RT_TABLE_OPS_FUNCREF) + \
22
+ defined(WASM_RT_TABLE_OPS_EXTERNREF) + \
23
+ defined(WASM_RT_TABLE_OPS_EXNREF) > \
24
+ 1
25
+#error \
26
+ "Expected only one of { WASM_RT_TABLE_OPS_FUNCREF, WASM_RT_TABLE_OPS_EXTERNREF, WASM_RT_TABLE_OPS_EXNREF } to be defined"
27
+#elif defined(WASM_RT_TABLE_OPS_FUNCREF) + \
28
+ defined(WASM_RT_TABLE_OPS_EXTERNREF) + \
29
+ defined(WASM_RT_TABLE_OPS_EXNREF) < \
30
+ 1
31
+#error \
32
+ "Expected one of { WASM_RT_TABLE_OPS_FUNCREF, WASM_RT_TABLE_OPS_EXTERNREF, WASM_RT_TABLE_OPS_EXNREF } to be defined"
33
+#endif
34
+
35
+#if defined(WASM_RT_TABLE_OPS_FUNCREF)
36
+#define WASM_RT_TABLE_TYPE wasm_rt_funcref_table_t
37
+#define WASM_RT_TABLE_ELEMENT_TYPE wasm_rt_funcref_t
38
+#define WASM_RT_TABLE_APINAME(name) name##_funcref_table
39
+#elif defined(WASM_RT_TABLE_OPS_EXTERNREF)
40
+#define WASM_RT_TABLE_TYPE wasm_rt_externref_table_t
41
+#define WASM_RT_TABLE_ELEMENT_TYPE wasm_rt_externref_t
42
+#define WASM_RT_TABLE_APINAME(name) name##_externref_table
43
+#elif defined(WASM_RT_TABLE_OPS_EXNREF)
44
+#define WASM_RT_TABLE_TYPE wasm_rt_exnref_table_t
45
+#define WASM_RT_TABLE_ELEMENT_TYPE wasm_rt_exnref_t
46
+#define WASM_RT_TABLE_APINAME(name) name##_exnref_table
47
+#endif
48
+
49
+void WASM_RT_TABLE_APINAME(wasm_rt_allocate)(WASM_RT_TABLE_TYPE* table,
50
+ uint32_t elements,
51
+ uint32_t max_elements) {
52
+ table->size = elements;
53
+ table->max_size = max_elements;
54
+ table->data = calloc(table->size, sizeof(WASM_RT_TABLE_ELEMENT_TYPE));
55
+}
56
+
57
+void WASM_RT_TABLE_APINAME(wasm_rt_free)(WASM_RT_TABLE_TYPE* table) {
58
+ free(table->data);
59
+}
60
+
61
+uint32_t WASM_RT_TABLE_APINAME(wasm_rt_grow)(WASM_RT_TABLE_TYPE* table,
62
+ uint32_t delta,
63
+ WASM_RT_TABLE_ELEMENT_TYPE init) {
64
+ uint32_t old_elems = table->size;
65
+ uint64_t new_elems = (uint64_t)table->size + delta;
66
+ if (new_elems == 0) {
67
+ return 0;
68
+ }
69
+ if ((new_elems < old_elems) || (new_elems > table->max_size)) {
70
+ return (uint32_t)-1;
71
+ }
72
+ if (new_elems > SIZE_MAX / sizeof(WASM_RT_TABLE_ELEMENT_TYPE)) {
73
+ return (uint32_t)-1;
74
+ }
75
+ void* new_data =
76
+ realloc(table->data, new_elems * sizeof(WASM_RT_TABLE_ELEMENT_TYPE));
77
+ if (!new_data) {
78
+ return (uint32_t)-1;
79
+ }
80
+ table->data = new_data;
81
+ table->size = new_elems;
82
+ for (uint32_t i = old_elems; i < new_elems; i++) {
83
+ table->data[i] = init;
84
+ }
85
+ return old_elems;
86
+}
87
+
88
+#undef WASM_RT_TABLE_APINAME
89
+#undef WASM_RT_TABLE_ELEMENT_TYPE
90
+#undef WASM_RT_TABLE_TYPE
apps/mobile/modules/t3-highlights/Vendor/wasm2c/wasm-rt-impl.c
new
+401
@@ -0,0 +1,401 @@
1
+/*
2
+ * Copyright 2018 WebAssembly Community Group participants
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+#include "wasm-rt-impl.h"
18
+
19
+#include <assert.h>
20
+#include <math.h>
21
+#include <stdarg.h>
22
+#include <stdbool.h>
23
+#include <stdint.h>
24
+#include <stdio.h>
25
+#include <stdlib.h>
26
+#include <string.h>
27
+
28
+#if WASM_RT_INSTALL_SIGNAL_HANDLER && !defined(_WIN32)
29
+#include <signal.h>
30
+#include <unistd.h>
31
+#endif
32
+
33
+#ifdef _WIN32
34
+#include <windows.h>
35
+#else
36
+#include <sys/mman.h>
37
+#endif
38
+
39
+#ifndef NDEBUG
40
+#define DEBUG_PRINTF(...) fprintf(stderr, __VA_ARGS__);
41
+#else
42
+#define DEBUG_PRINTF(...)
43
+#endif
44
+
45
+#if WASM_RT_INSTALL_SIGNAL_HANDLER
46
+static bool g_signal_handler_installed = false;
47
+#ifdef _WIN32
48
+static void* g_sig_handler_handle = 0;
49
+#endif
50
+#endif
51
+
52
+#if WASM_RT_USE_SEGUE
53
+bool wasm_rt_fsgsbase_inst_supported = false;
54
+#ifdef __linux__
55
+#include <sys/auxv.h>
56
+#ifdef __GLIBC__
57
+#include <gnu/libc-version.h>
58
+#endif
59
+#include <asm/prctl.h> // For ARCH_SET_GS
60
+#include <sys/syscall.h> // For SYS_arch_prctl
61
+#include <unistd.h> // For syscall
62
+#ifndef HWCAP2_FSGSBASE
63
+#define HWCAP2_FSGSBASE (1 << 1)
64
+#endif
65
+#elif defined(__FreeBSD__)
66
+#include <machine/sysarch.h> // For amd64_set_gsbase etc.
67
+#endif
68
+#endif
69
+
70
+#if WASM_RT_SEGUE_FREE_SEGMENT
71
+WASM_RT_THREAD_LOCAL void* wasm_rt_last_segment_val = NULL;
72
+#endif
73
+
74
+#if WASM_RT_STACK_DEPTH_COUNT
75
+WASM_RT_THREAD_LOCAL uint32_t wasm_rt_call_stack_depth;
76
+WASM_RT_THREAD_LOCAL uint32_t wasm_rt_saved_call_stack_depth;
77
+#elif WASM_RT_STACK_EXHAUSTION_HANDLER
78
+static WASM_RT_THREAD_LOCAL void* g_alt_stack = NULL;
79
+#endif
80
+
81
+#ifndef WASM_RT_TRAP_HANDLER
82
+WASM_RT_THREAD_LOCAL wasm_rt_jmp_buf g_wasm_rt_jmp_buf;
83
+#endif
84
+
85
+#ifdef WASM_RT_TRAP_HANDLER
86
+extern void WASM_RT_TRAP_HANDLER(wasm_rt_trap_t code);
87
+#endif
88
+
89
+void wasm_rt_trap(wasm_rt_trap_t code) {
90
+ assert(code != WASM_RT_TRAP_NONE);
91
+#if WASM_RT_STACK_DEPTH_COUNT
92
+ wasm_rt_call_stack_depth = wasm_rt_saved_call_stack_depth;
93
+#endif
94
+
95
+#ifdef WASM_RT_TRAP_HANDLER
96
+ WASM_RT_TRAP_HANDLER(code);
97
+ wasm_rt_unreachable();
98
+#else
99
+ WASM_RT_LONGJMP(g_wasm_rt_jmp_buf, code);
100
+#endif
101
+}
102
+
103
+#ifdef _WIN32
104
+
105
+#if WASM_RT_INSTALL_SIGNAL_HANDLER
106
+
107
+static LONG os_signal_handler(PEXCEPTION_POINTERS info) {
108
+ if (info->ExceptionRecord->ExceptionCode == EXCEPTION_ACCESS_VIOLATION) {
109
+ wasm_rt_trap(WASM_RT_TRAP_OOB);
110
+ } else if (info->ExceptionRecord->ExceptionCode == EXCEPTION_STACK_OVERFLOW) {
111
+ wasm_rt_trap(WASM_RT_TRAP_EXHAUSTION);
112
+ }
113
+ return EXCEPTION_CONTINUE_SEARCH;
114
+}
115
+
116
+static void os_install_signal_handler(void) {
117
+ g_sig_handler_handle =
118
+ AddVectoredExceptionHandler(1 /* CALL_FIRST */, os_signal_handler);
119
+}
120
+
121
+static void os_cleanup_signal_handler(void) {
122
+ RemoveVectoredExceptionHandler(g_sig_handler_handle);
123
+}
124
+
125
+#endif
126
+
127
+#else
128
+
129
+#if WASM_RT_INSTALL_SIGNAL_HANDLER
130
+static void os_signal_handler(int sig, siginfo_t* si, void* unused) {
131
+ if (si->si_code == SEGV_ACCERR) {
132
+ wasm_rt_trap(WASM_RT_TRAP_OOB);
133
+ } else {
134
+ wasm_rt_trap(WASM_RT_TRAP_EXHAUSTION);
135
+ }
136
+}
137
+
138
+static void os_install_signal_handler(void) {
139
+ struct sigaction sa;
140
+ memset(&sa, '\0', sizeof(sa));
141
+ sa.sa_flags = SA_SIGINFO;
142
+#if WASM_RT_STACK_EXHAUSTION_HANDLER
143
+ sa.sa_flags |= SA_ONSTACK;
144
+#endif
145
+ sigemptyset(&sa.sa_mask);
146
+ sa.sa_sigaction = os_signal_handler;
147
+
148
+ /* Install SIGSEGV and SIGBUS handlers, since macOS seems to use SIGBUS. */
149
+ if (sigaction(SIGSEGV, &sa, NULL) != 0 || sigaction(SIGBUS, &sa, NULL) != 0) {
150
+ perror("sigaction failed");
151
+ abort();
152
+ }
153
+}
154
+
155
+static void os_cleanup_signal_handler(void) {
156
+ /* Undo what was done in os_install_signal_handler */
157
+ struct sigaction sa;
158
+ memset(&sa, '\0', sizeof(sa));
159
+ sa.sa_handler = SIG_DFL;
160
+ if (sigaction(SIGSEGV, &sa, NULL) != 0 || sigaction(SIGBUS, &sa, NULL)) {
161
+ perror("sigaction failed");
162
+ abort();
163
+ }
164
+}
165
+#endif
166
+
167
+#if WASM_RT_STACK_EXHAUSTION_HANDLER
168
+static bool os_has_altstack_installed() {
169
+ /* check for altstack already in place */
170
+ stack_t ss;
171
+ if (sigaltstack(NULL, &ss) != 0) {
172
+ perror("os_has_altstack_installed: sigaltstack failed");
173
+ abort();
174
+ }
175
+
176
+ return !(ss.ss_flags & SS_DISABLE);
177
+}
178
+
179
+/* These routines set up an altstack to handle SIGSEGV from stack overflow. */
180
+static void os_allocate_and_install_altstack(void) {
181
+ /* verify altstack not already allocated */
182
+ assert(!g_alt_stack &&
183
+ "wasm-rt error: tried to re-allocate thread-local alternate stack");
184
+
185
+ /* We could check and warn if an altstack is already installed, but some
186
+ * sanitizers install their own altstack, so this warning would fire
187
+ * spuriously and break the test outputs. */
188
+
189
+ /* allocate altstack */
190
+ g_alt_stack = malloc(SIGSTKSZ);
191
+ if (g_alt_stack == NULL) {
192
+ perror("malloc failed");
193
+ abort();
194
+ }
195
+
196
+ /* install altstack */
197
+ stack_t ss;
198
+ ss.ss_sp = g_alt_stack;
199
+ ss.ss_flags = 0;
200
+ ss.ss_size = SIGSTKSZ;
201
+ if (sigaltstack(&ss, NULL) != 0) {
202
+ perror("os_allocate_and_install_altstack: sigaltstack failed");
203
+ abort();
204
+ }
205
+}
206
+
207
+static void os_disable_and_deallocate_altstack(void) {
208
+ /* in debug build, verify altstack allocated */
209
+ assert(g_alt_stack &&
210
+ "wasm-rt error: thread-local alternate stack not allocated");
211
+
212
+ /* verify altstack was still in place */
213
+ stack_t ss;
214
+ if (sigaltstack(NULL, &ss) != 0) {
215
+ perror("os_disable_and_deallocate_altstack: sigaltstack failed");
216
+ abort();
217
+ }
218
+
219
+ if ((!g_alt_stack) || (ss.ss_flags & SS_DISABLE) ||
220
+ (ss.ss_sp != g_alt_stack) || (ss.ss_size != SIGSTKSZ)) {
221
+ DEBUG_PRINTF(
222
+ "wasm-rt warning: alternate stack was modified unexpectedly\n");
223
+ return;
224
+ }
225
+
226
+ assert(!(ss.ss_flags & SS_ONSTACK) &&
227
+ "attempt to deallocate altstack while in use");
228
+
229
+ /* disable and free */
230
+ ss.ss_flags = SS_DISABLE;
231
+ if (sigaltstack(&ss, NULL) != 0) {
232
+ perror("sigaltstack disable failed");
233
+ abort();
234
+ }
235
+ assert(!os_has_altstack_installed());
236
+ free(g_alt_stack);
237
+ g_alt_stack = NULL;
238
+}
239
+#endif
240
+
241
+#endif
242
+
243
+#if WASM_RT_USE_SEGUE && defined(__FreeBSD__)
244
+static void call_cpuid(uint64_t* rax,
245
+ uint64_t* rbx,
246
+ uint64_t* rcx,
247
+ uint64_t* rdx) {
248
+ __asm__ volatile(
249
+ "cpuid"
250
+ : "=a"(*rax), "=b"(*rbx), "=c"(*rcx), "=d"(*rdx) // output operands
251
+ : "a"(*rax), "c"(*rcx) // input operands
252
+ );
253
+}
254
+#endif
255
+
256
+void wasm_rt_init(void) {
257
+ wasm_rt_init_thread();
258
+#if WASM_RT_INSTALL_SIGNAL_HANDLER
259
+ if (!g_signal_handler_installed) {
260
+ g_signal_handler_installed = true;
261
+ os_install_signal_handler();
262
+ }
263
+#endif
264
+
265
+#if WASM_RT_USE_SEGUE
266
+#if defined(__linux__) && defined(__GLIBC__) && __GLIBC__ >= 2 && \
267
+ __GLIBC_MINOR__ >= 18
268
+ // Check for support for userspace wrgsbase instructions
269
+ unsigned long val = getauxval(AT_HWCAP2);
270
+ wasm_rt_fsgsbase_inst_supported = val & HWCAP2_FSGSBASE;
271
+#elif defined(__FreeBSD__)
272
+ // FreeBSD enables fsgsbase on the newer kernels if the hardware supports it.
273
+ // We just need to check if the hardware supports it by querying the correct
274
+ // cpuid leaf.
275
+ uint64_t rax, rbx, rcx, rdx;
276
+ rax = 0;
277
+ call_cpuid(&rax, &rbx, &rcx, &rdx);
278
+
279
+ if (rax > 7) {
280
+ rax = 7;
281
+ rcx = 0;
282
+ call_cpuid(&rax, &rbx, &rcx, &rdx);
283
+ if (rbx & 0x1) {
284
+ wasm_rt_fsgsbase_inst_supported = true;
285
+ }
286
+ }
287
+#endif
288
+#endif
289
+
290
+ assert(wasm_rt_is_initialized());
291
+}
292
+
293
+bool wasm_rt_is_initialized(void) {
294
+#if WASM_RT_STACK_EXHAUSTION_HANDLER
295
+ if (!os_has_altstack_installed()) {
296
+ return false;
297
+ }
298
+#endif
299
+#if WASM_RT_INSTALL_SIGNAL_HANDLER
300
+ return g_signal_handler_installed;
301
+#else
302
+ return true;
303
+#endif
304
+}
305
+
306
+void wasm_rt_free(void) {
307
+ assert(wasm_rt_is_initialized());
308
+#if WASM_RT_INSTALL_SIGNAL_HANDLER
309
+ os_cleanup_signal_handler();
310
+ g_signal_handler_installed = false;
311
+#endif
312
+ wasm_rt_free_thread();
313
+}
314
+
315
+void wasm_rt_init_thread(void) {
316
+#if WASM_RT_STACK_EXHAUSTION_HANDLER
317
+ os_allocate_and_install_altstack();
318
+#endif
319
+}
320
+
321
+void wasm_rt_free_thread(void) {
322
+#if WASM_RT_STACK_EXHAUSTION_HANDLER
323
+ os_disable_and_deallocate_altstack();
324
+#endif
325
+}
326
+
327
+#if WASM_RT_USE_SEGUE
328
+void wasm_rt_syscall_set_segue_base(void* base) {
329
+ int error_code = 0;
330
+#ifdef __linux__
331
+ error_code = syscall(SYS_arch_prctl, ARCH_SET_GS, base);
332
+#elif defined(__FreeBSD__)
333
+ error_code = amd64_set_gsbase(base);
334
+#else
335
+#error "Unknown platform"
336
+#endif
337
+ if (error_code != 0) {
338
+ perror("wasm_rt_syscall_set_segue_base error");
339
+ abort();
340
+ }
341
+}
342
+void* wasm_rt_syscall_get_segue_base() {
343
+ void* base;
344
+ int error_code = 0;
345
+#ifdef __linux__
346
+ error_code = syscall(SYS_arch_prctl, ARCH_GET_GS, &base);
347
+#elif defined(__FreeBSD__)
348
+ error_code = amd64_get_gsbase(&base);
349
+#else
350
+#error "Unknown platform"
351
+#endif
352
+ if (error_code != 0) {
353
+ perror("wasm_rt_syscall_get_segue_base error");
354
+ abort();
355
+ }
356
+ return base;
357
+}
358
+#endif
359
+
360
+// Include table operations for funcref
361
+#define WASM_RT_TABLE_OPS_FUNCREF
362
+#include "wasm-rt-impl-tableops.inc"
363
+#undef WASM_RT_TABLE_OPS_FUNCREF
364
+
365
+// Include table operations for externref
366
+#define WASM_RT_TABLE_OPS_EXTERNREF
367
+#include "wasm-rt-impl-tableops.inc"
368
+#undef WASM_RT_TABLE_OPS_EXTERNREF
369
+
370
+const char* wasm_rt_strerror(wasm_rt_trap_t trap) {
371
+ switch (trap) {
372
+ case WASM_RT_TRAP_NONE:
373
+ return "No error";
374
+ case WASM_RT_TRAP_OOB:
375
+#if WASM_RT_MERGED_OOB_AND_EXHAUSTION_TRAPS
376
+ return "Out-of-bounds access in linear memory or a table, or call stack "
377
+ "exhausted";
378
+#else
379
+ return "Out-of-bounds access in linear memory or a table";
380
+ case WASM_RT_TRAP_EXHAUSTION:
381
+ return "Call stack exhausted";
382
+#endif
383
+ case WASM_RT_TRAP_INT_OVERFLOW:
384
+ return "Integer overflow on divide or truncation";
385
+ case WASM_RT_TRAP_DIV_BY_ZERO:
386
+ return "Integer divide by zero";
387
+ case WASM_RT_TRAP_INVALID_CONVERSION:
388
+ return "Conversion from NaN to integer";
389
+ case WASM_RT_TRAP_UNREACHABLE:
390
+ return "Unreachable instruction executed";
391
+ case WASM_RT_TRAP_CALL_INDIRECT:
392
+ return "Invalid call_indirect or return_call_indirect";
393
+ case WASM_RT_TRAP_UNCAUGHT_EXCEPTION:
394
+ return "Uncaught exception";
395
+ case WASM_RT_TRAP_UNALIGNED:
396
+ return "Unaligned atomic memory access";
397
+ case WASM_RT_TRAP_NULL_REF:
398
+ return "Null reference";
399
+ }
400
+ return "invalid trap code";
401
+}
apps/mobile/modules/t3-highlights/Vendor/wasm2c/wasm-rt-impl.h
new
+68
@@ -0,0 +1,68 @@
1
+/*
2
+ * Copyright 2018 WebAssembly Community Group participants
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+#ifndef WASM_RT_IMPL_H_
18
+#define WASM_RT_IMPL_H_
19
+
20
+#include "wasm-rt.h"
21
+
22
+#ifdef _WIN32
23
+#include <windows.h>
24
+#endif
25
+
26
+#ifdef __cplusplus
27
+extern "C" {
28
+#endif
29
+
30
+#ifndef WASM_RT_TRAP_HANDLER
31
+/** A setjmp buffer used for handling traps. */
32
+extern WASM_RT_THREAD_LOCAL wasm_rt_jmp_buf g_wasm_rt_jmp_buf;
33
+#endif
34
+
35
+#if WASM_RT_STACK_DEPTH_COUNT
36
+/** Saved call stack depth that will be restored in case a trap occurs. */
37
+extern WASM_RT_THREAD_LOCAL uint32_t wasm_rt_saved_call_stack_depth;
38
+#define WASM_RT_SAVE_STACK_DEPTH() \
39
+ wasm_rt_saved_call_stack_depth = wasm_rt_call_stack_depth
40
+#else
41
+#define WASM_RT_SAVE_STACK_DEPTH() (void)0
42
+#endif
43
+
44
+/**
45
+ * Convenience macro to use before calling a wasm function. On first execution
46
+ * it will return `WASM_RT_TRAP_NONE` (i.e. 0). If the function traps, it will
47
+ * jump back and return the trap that occurred.
48
+ *
49
+ * ```
50
+ * wasm_rt_trap_t code = wasm_rt_impl_try();
51
+ * if (code != 0) {
52
+ * printf("A trap occurred with code: %d\n", code);
53
+ * ...
54
+ * }
55
+ *
56
+ * // Call the potentially-trapping function.
57
+ * my_wasm_func();
58
+ * ```
59
+ */
60
+#define wasm_rt_impl_try() \
61
+ (WASM_RT_SAVE_STACK_DEPTH(), wasm_rt_set_unwind_target(&g_wasm_rt_jmp_buf), \
62
+ WASM_RT_SETJMP(g_wasm_rt_jmp_buf))
63
+
64
+#ifdef __cplusplus
65
+}
66
+#endif
67
+
68
+#endif /* WASM_RT_IMPL_H_ */
apps/mobile/modules/t3-highlights/Vendor/wasm2c/wasm-rt-mem-impl-helper.inc
new
+207
@@ -0,0 +1,207 @@
1
+/*
2
+ * Copyright 2018 WebAssembly Community Group participants
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+// This file is used as a template to generate code for regular memories or for
18
+// shared memories. For this, the file must be included after defining either
19
+// WASM_RT_MEM_OPS or WASM_RT_MEM_OPS_SHARED.
20
+
21
+#if defined(WASM_RT_MEM_OPS) && defined(WASM_RT_MEM_OPS_SHARED)
22
+#error \
23
+ "Expected only one of { WASM_RT_MEM_OPS, WASM_RT_MEM_OPS_SHARED } to be defined"
24
+#elif !defined(WASM_RT_MEM_OPS) && !defined(WASM_RT_MEM_OPS_SHARED)
25
+#error \
26
+ "Expected one of { WASM_RT_MEM_OPS, WASM_RT_MEM_OPS_SHARED } to be defined"
27
+#endif
28
+
29
+// Shared memory operations are defined only if we have C11
30
+#if defined(WASM_RT_MEM_OPS) || \
31
+ (defined(WASM_RT_MEM_OPS_SHARED) && defined(WASM_RT_C11_AVAILABLE))
32
+
33
+#ifdef WASM_RT_MEM_OPS
34
+
35
+// Memory operations on wasm_rt_memory_t
36
+#define MEMORY_TYPE wasm_rt_memory_t
37
+#define MEMORY_API_NAME(name) name
38
+#define MEMORY_CELL_TYPE uint8_t*
39
+#define MEMORY_LOCK_VAR_INIT(name)
40
+#define MEMORY_LOCK_AQUIRE(name)
41
+#define MEMORY_LOCK_RELEASE(name)
42
+
43
+#else
44
+
45
+// Memory operations on wasm_rt_shared_memory_t
46
+#define MEMORY_TYPE wasm_rt_shared_memory_t
47
+#define MEMORY_API_NAME(name) name##_shared
48
+#define MEMORY_CELL_TYPE _Atomic volatile uint8_t*
49
+
50
+#if WASM_RT_USE_CRITICALSECTION
51
+#define MEMORY_LOCK_VAR_INIT(name) WIN_MEMORY_LOCK_VAR_INIT(name)
52
+#define MEMORY_LOCK_AQUIRE(name) WIN_MEMORY_LOCK_AQUIRE(name)
53
+#define MEMORY_LOCK_RELEASE(name) WIN_MEMORY_LOCK_RELEASE(name)
54
+#elif WASM_RT_USE_PTHREADS
55
+#define MEMORY_LOCK_VAR_INIT(name) PTHREAD_MEMORY_LOCK_VAR_INIT(name)
56
+#define MEMORY_LOCK_AQUIRE(name) PTHREAD_MEMORY_LOCK_AQUIRE(name)
57
+#define MEMORY_LOCK_RELEASE(name) PTHREAD_MEMORY_LOCK_RELEASE(name)
58
+#endif
59
+
60
+#endif
61
+
62
+bool MEMORY_API_NAME(wasm_rt_memory_is_default32)(const MEMORY_TYPE* memory) {
63
+ return memory->page_size == WASM_DEFAULT_PAGE_SIZE && !memory->is64;
64
+}
65
+
66
+void MEMORY_API_NAME(wasm_rt_allocate_memory)(MEMORY_TYPE* memory,
67
+ uint64_t initial_pages,
68
+ uint64_t max_pages,
69
+ bool is64,
70
+ uint32_t page_size) {
71
+ uint64_t byte_length;
72
+ if (u64_mult_overflow(initial_pages, page_size, &byte_length)) {
73
+ abort();
74
+ }
75
+ memory->size = byte_length;
76
+ memory->pages = initial_pages;
77
+ memory->max_pages = max_pages;
78
+ memory->is64 = is64;
79
+ memory->page_size = page_size;
80
+ MEMORY_LOCK_VAR_INIT(memory->mem_lock);
81
+
82
+#if WASM_RT_USE_MMAP
83
+ if (MEMORY_API_NAME(wasm_rt_memory_is_default32)(memory)) {
84
+ const uint64_t mmap_size =
85
+ get_alloc_size_for_mmap_default32(memory->max_pages);
86
+ uint8_t* addr = os_mmap(mmap_size);
87
+ if (!addr) {
88
+ os_print_last_error("os_mmap failed.");
89
+ abort();
90
+ }
91
+ uint8_t* data_end = addr + mmap_size;
92
+#if !WABT_BIG_ENDIAN
93
+ int ret = os_mprotect(addr, byte_length);
94
+#else
95
+ int ret = os_mprotect(data_end - byte_length, byte_length);
96
+#endif
97
+ if (ret != 0) {
98
+ os_print_last_error("os_mprotect failed.");
99
+ abort();
100
+ }
101
+ memory->data = (MEMORY_CELL_TYPE)addr;
102
+ memory->data_end = (MEMORY_CELL_TYPE)data_end;
103
+ return;
104
+ }
105
+#endif
106
+
107
+ memory->data = (MEMORY_CELL_TYPE)calloc(byte_length, 1);
108
+ if (byte_length != 0 && !memory->data) {
109
+ abort();
110
+ }
111
+ memory->data_end = memory->data + byte_length;
112
+}
113
+
114
+// Returns 0 on success
115
+static int MEMORY_API_NAME(expand_data_allocation)(MEMORY_TYPE* memory,
116
+ uint64_t old_size,
117
+ uint64_t new_size,
118
+ uint64_t delta_size) {
119
+#if WASM_RT_USE_MMAP
120
+ if (MEMORY_API_NAME(wasm_rt_memory_is_default32)(memory)) {
121
+#if !WABT_BIG_ENDIAN
122
+ return os_mprotect((void*)(memory->data + old_size), delta_size);
123
+#else
124
+ return os_mprotect((void*)(memory->data_end - old_size - delta_size),
125
+ delta_size);
126
+#endif
127
+ }
128
+#endif
129
+
130
+ uint8_t* new_data = realloc((void*)memory->data, new_size);
131
+ if (new_data == NULL) {
132
+ return -1;
133
+ }
134
+#if !WABT_BIG_ENDIAN
135
+ memset((void*)(new_data + old_size), 0, delta_size);
136
+#else
137
+ memmove((void*)(new_data + new_size - old_size), (void*)new_data, old_size);
138
+ memset((void*)new_data, 0, delta_size);
139
+#endif
140
+
141
+ memory->data = (MEMORY_CELL_TYPE)new_data;
142
+ memory->data_end = memory->data + new_size;
143
+ return 0;
144
+}
145
+
146
+static uint64_t MEMORY_API_NAME(grow_memory_impl)(MEMORY_TYPE* memory,
147
+ uint64_t delta) {
148
+ uint64_t old_pages = memory->pages;
149
+ uint64_t new_pages = memory->pages + delta;
150
+ if (delta == 0) {
151
+ return old_pages;
152
+ }
153
+ if (new_pages < old_pages || new_pages > memory->max_pages) {
154
+ return (uint64_t)-1;
155
+ }
156
+
157
+ uint64_t old_size, new_size, delta_size;
158
+ if (u64_mult_overflow(old_pages, memory->page_size, &old_size) ||
159
+ u64_mult_overflow(new_pages, memory->page_size, &new_size) ||
160
+ u64_mult_overflow(delta, memory->page_size, &delta_size)) {
161
+ return (uint64_t)-1;
162
+ }
163
+
164
+ int err = MEMORY_API_NAME(expand_data_allocation)(memory, old_size, new_size,
165
+ delta_size);
166
+ if (err != 0) {
167
+ return (uint64_t)-1;
168
+ }
169
+
170
+ memory->pages = new_pages;
171
+ memory->size = new_size;
172
+ return old_pages;
173
+}
174
+
175
+uint64_t MEMORY_API_NAME(wasm_rt_grow_memory)(MEMORY_TYPE* memory,
176
+ uint64_t delta) {
177
+ MEMORY_LOCK_AQUIRE(memory->mem_lock);
178
+ uint64_t ret = MEMORY_API_NAME(grow_memory_impl)(memory, delta);
179
+ MEMORY_LOCK_RELEASE(memory->mem_lock);
180
+#ifdef WASM_RT_GROW_FAILED_HANDLER
181
+ if (ret == (uint64_t)-1) {
182
+ WASM_RT_GROW_FAILED_HANDLER();
183
+ }
184
+#endif
185
+ return ret;
186
+}
187
+
188
+void MEMORY_API_NAME(wasm_rt_free_memory)(MEMORY_TYPE* memory) {
189
+#if WASM_RT_USE_MMAP
190
+ if (MEMORY_API_NAME(wasm_rt_memory_is_default32)(memory)) {
191
+ const uint64_t mmap_size =
192
+ get_alloc_size_for_mmap_default32(memory->max_pages);
193
+ os_munmap((void*)memory->data, mmap_size); // ignore error
194
+ return;
195
+ }
196
+#endif
197
+ free((void*)memory->data);
198
+}
199
+
200
+#undef MEMORY_LOCK_RELEASE
201
+#undef MEMORY_LOCK_AQUIRE
202
+#undef MEMORY_LOCK_VAR_INIT
203
+#undef MEMORY_CELL_TYPE
204
+#undef MEMORY_API_NAME
205
+#undef MEMORY_TYPE
206
+
207
+#endif
apps/mobile/modules/t3-highlights/Vendor/wasm2c/wasm-rt-mem-impl.c
new
+171
@@ -0,0 +1,171 @@
1
+/*
2
+ * Copyright 2018 WebAssembly Community Group participants
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+#include "wasm-rt-impl.h"
18
+
19
+#include <assert.h>
20
+#include <stdio.h>
21
+
22
+#ifdef _WIN32
23
+#include <windows.h>
24
+#else
25
+#include <sys/mman.h>
26
+#endif
27
+
28
+#ifdef WASM_RT_GROW_FAILED_HANDLER
29
+extern void WASM_RT_GROW_FAILED_HANDLER();
30
+#endif
31
+
32
+#define PTHREAD_MEMORY_LOCK_VAR_INIT(name) \
33
+ if (pthread_mutex_init(&(name), NULL) != 0) { \
34
+ fprintf(stderr, "Lock init failed\n"); \
35
+ abort(); \
36
+ }
37
+#define PTHREAD_MEMORY_LOCK_AQUIRE(name) \
38
+ if (pthread_mutex_lock(&(name)) != 0) { \
39
+ fprintf(stderr, "Lock acquire failed\n"); \
40
+ abort(); \
41
+ }
42
+#define PTHREAD_MEMORY_LOCK_RELEASE(name) \
43
+ if (pthread_mutex_unlock(&(name)) != 0) { \
44
+ fprintf(stderr, "Lock release failed\n"); \
45
+ abort(); \
46
+ }
47
+
48
+#define WIN_MEMORY_LOCK_VAR_INIT(name) InitializeCriticalSection(&(name))
49
+#define WIN_MEMORY_LOCK_AQUIRE(name) EnterCriticalSection(&(name))
50
+#define WIN_MEMORY_LOCK_RELEASE(name) LeaveCriticalSection(&(name))
51
+
52
+#if WASM_RT_USE_MMAP
53
+
54
+#ifdef _WIN32
55
+static void* os_mmap(size_t size) {
56
+ void* ret = VirtualAlloc(NULL, size, MEM_RESERVE, PAGE_NOACCESS);
57
+ return ret;
58
+}
59
+
60
+static int os_munmap(void* addr, size_t size) {
61
+ // Windows can only unmap the whole mapping
62
+ (void)size; /* unused */
63
+ BOOL succeeded = VirtualFree(addr, 0, MEM_RELEASE);
64
+ return succeeded ? 0 : -1;
65
+}
66
+
67
+static int os_mprotect(void* addr, size_t size) {
68
+ if (size == 0) {
69
+ return 0;
70
+ }
71
+ void* ret = VirtualAlloc(addr, size, MEM_COMMIT, PAGE_READWRITE);
72
+ if (ret == addr) {
73
+ return 0;
74
+ }
75
+ VirtualFree(addr, 0, MEM_RELEASE);
76
+ return -1;
77
+}
78
+
79
+static void os_print_last_error(const char* msg) {
80
+ DWORD errorMessageID = GetLastError();
81
+ if (errorMessageID != 0) {
82
+ LPSTR messageBuffer = 0;
83
+ // The api creates the buffer that holds the message
84
+ size_t size = FormatMessageA(
85
+ FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM |
86
+ FORMAT_MESSAGE_IGNORE_INSERTS,
87
+ NULL, errorMessageID, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
88
+ (LPSTR)&messageBuffer, 0, NULL);
89
+ (void)size;
90
+ printf("%s. %s\n", msg, messageBuffer);
91
+ LocalFree(messageBuffer);
92
+ } else {
93
+ printf("%s. No error code.\n", msg);
94
+ }
95
+}
96
+
97
+#else /* !_WIN32 */
98
+static void* os_mmap(size_t size) {
99
+ int map_prot = PROT_NONE;
100
+ int map_flags = MAP_ANONYMOUS | MAP_PRIVATE;
101
+ uint8_t* addr = mmap(NULL, size, map_prot, map_flags, -1, 0);
102
+ if (addr == MAP_FAILED)
103
+ return NULL;
104
+ return addr;
105
+}
106
+
107
+static int os_munmap(void* addr, size_t size) {
108
+ return munmap(addr, size);
109
+}
110
+
111
+static int os_mprotect(void* addr, size_t size) {
112
+ if (size == 0) {
113
+ return 0;
114
+ }
115
+ return mprotect(addr, size, PROT_READ | PROT_WRITE);
116
+}
117
+
118
+static void os_print_last_error(const char* msg) {
119
+ perror(msg);
120
+}
121
+
122
+#endif /* _WIN32 */
123
+
124
+static uint64_t get_alloc_size_for_mmap_default32(uint64_t max_pages) {
125
+#if WASM_RT_MEMCHECK_GUARD_PAGES
126
+ /* Reserve 8GiB. */
127
+ const uint64_t max_size = 0x200000000ul;
128
+ return max_size;
129
+#else
130
+ if (max_pages != 0) {
131
+ const uint64_t max_size = max_pages * WASM_DEFAULT_PAGE_SIZE;
132
+ return max_size;
133
+ }
134
+
135
+ /* Reserve 4GiB. */
136
+ const uint64_t max_size = 0x100000000ul;
137
+ return max_size;
138
+#endif
139
+}
140
+
141
+#endif /* WASM_RT_USE_MMAP */
142
+
143
+static bool u64_mult_overflow(uint64_t a, uint64_t b, uint64_t* result) {
144
+ uint64_t x = a * b;
145
+ *result = x;
146
+ if (a != 0 && x / a != b) {
147
+ // overflow
148
+ return true;
149
+ }
150
+ return false;
151
+}
152
+
153
+// Include operations for memory
154
+#define WASM_RT_MEM_OPS
155
+#include "wasm-rt-mem-impl-helper.inc"
156
+#undef WASM_RT_MEM_OPS
157
+
158
+// Include operations for shared memory
159
+#define WASM_RT_MEM_OPS_SHARED
160
+#include "wasm-rt-mem-impl-helper.inc"
161
+#undef WASM_RT_MEM_OPS_SHARED
162
+
163
+#undef C11_MEMORY_LOCK_VAR_INIT
164
+#undef C11_MEMORY_LOCK_AQUIRE
165
+#undef C11_MEMORY_LOCK_RELEASE
166
+#undef PTHREAD_MEMORY_LOCK_VAR_INIT
167
+#undef PTHREAD_MEMORY_LOCK_AQUIRE
168
+#undef PTHREAD_MEMORY_LOCK_RELEASE
169
+#undef WIN_MEMORY_LOCK_VAR_INIT
170
+#undef WIN_MEMORY_LOCK_AQUIRE
171
+#undef WIN_MEMORY_LOCK_RELEASE
apps/mobile/modules/t3-highlights/Vendor/wasm2c/wasm-rt.h
new
+739
@@ -0,0 +1,739 @@
1
+/*
2
+ * Copyright 2018 WebAssembly Community Group participants
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+#ifndef WASM_RT_H_
18
+#define WASM_RT_H_
19
+
20
+#include <setjmp.h>
21
+#include <stdbool.h>
22
+#include <stdint.h>
23
+#include <stdlib.h>
24
+#include <string.h>
25
+
26
+#ifdef __cplusplus
27
+extern "C" {
28
+#endif
29
+
30
+#ifndef __has_builtin
31
+#define __has_builtin(x) 0 /** Compatibility with non-clang compilers. */
32
+#endif
33
+
34
+#if __has_builtin(__builtin_expect)
35
+#define UNLIKELY(x) __builtin_expect(!!(x), 0)
36
+#define LIKELY(x) __builtin_expect(!!(x), 1)
37
+#else
38
+#define UNLIKELY(x) (x)
39
+#define LIKELY(x) (x)
40
+#endif
41
+
42
+#if __has_builtin(__builtin_memcpy)
43
+#define wasm_rt_memcpy __builtin_memcpy
44
+#else
45
+#define wasm_rt_memcpy memcpy
46
+#endif
47
+
48
+#if __has_builtin(__builtin_unreachable)
49
+#define wasm_rt_unreachable __builtin_unreachable
50
+#else
51
+#define wasm_rt_unreachable abort
52
+#endif
53
+
54
+#ifdef __STDC_VERSION__
55
+#if __STDC_VERSION__ >= 201112L
56
+#define WASM_RT_C11_AVAILABLE
57
+#endif
58
+#endif
59
+
60
+/**
61
+ * Many devices don't implement the C11 threads.h. We use CriticalSection APIs
62
+ * for Windows and pthreads on other platforms where threads are not available.
63
+ */
64
+#ifdef WASM_RT_C11_AVAILABLE
65
+
66
+#if defined(_WIN32)
67
+#include <windows.h>
68
+#define WASM_RT_MUTEX CRITICAL_SECTION
69
+#define WASM_RT_USE_CRITICALSECTION 1
70
+#else
71
+#include <pthread.h>
72
+#define WASM_RT_MUTEX pthread_mutex_t
73
+#define WASM_RT_USE_PTHREADS 1
74
+#endif
75
+
76
+#endif
77
+
78
+#ifdef WASM_RT_C11_AVAILABLE
79
+#define WASM_RT_THREAD_LOCAL _Thread_local
80
+#elif defined(_MSC_VER)
81
+#define WASM_RT_THREAD_LOCAL __declspec(thread)
82
+#elif (defined(__GNUC__) || defined(__clang__)) && !defined(__APPLE__)
83
+// Disabled on Apple systems due to sporadic test failures.
84
+#define WASM_RT_THREAD_LOCAL __thread
85
+#else
86
+#define WASM_RT_THREAD_LOCAL
87
+#endif
88
+
89
+/**
90
+ * If enabled, perform additional sanity checks in the generated wasm2c code and
91
+ * wasm2c runtime. This is useful to enable on debug builds.
92
+ */
93
+#ifndef WASM_RT_SANITY_CHECKS
94
+#define WASM_RT_SANITY_CHECKS 0
95
+#endif
96
+
97
+/**
98
+ * Backward compatibility: Convert the previously exposed
99
+ * WASM_RT_MEMCHECK_SIGNAL_HANDLER macro to the ALLOCATION and CHECK macros that
100
+ * are now used.
101
+ */
102
+#if defined(WASM_RT_MEMCHECK_SIGNAL_HANDLER)
103
+
104
+#if WASM_RT_MEMCHECK_SIGNAL_HANDLER
105
+#define WASM_RT_USE_MMAP 1
106
+#define WASM_RT_MEMCHECK_GUARD_PAGES 1
107
+#else
108
+#define WASM_RT_USE_MMAP 0
109
+#define WASM_RT_MEMCHECK_BOUNDS_CHECK 1
110
+#endif
111
+
112
+#warning \
113
+ "WASM_RT_MEMCHECK_SIGNAL_HANDLER has been deprecated in favor of WASM_RT_USE_MMAP and WASM_RT_MEMORY_CHECK_* macros"
114
+#endif
115
+
116
+/**
117
+ * Specify if we use OR mmap/mprotect (+ Windows equivalents) OR malloc/realloc
118
+ * for the Wasm memory allocation and growth. mmap/mprotect guarantees memory
119
+ * will grow without being moved, while malloc ensures the virtual memory is
120
+ * consumed only as needed, but may relocate the memory to handle memory
121
+ * fragmentation.
122
+ *
123
+ * This defaults to malloc on 32-bit platforms or if memory64 support is needed.
124
+ * It defaults to mmap on 64-bit platforms assuming memory64 support is not
125
+ * needed (so we can use the guard based range checks below).
126
+ */
127
+#ifndef WASM_RT_USE_MMAP
128
+#if UINTPTR_MAX > 0xffffffff
129
+#define WASM_RT_USE_MMAP 1
130
+#else
131
+#define WASM_RT_USE_MMAP 0
132
+#endif
133
+#endif
134
+
135
+/**
136
+ * This macro, if defined, allows the embedder to permit elimination of unused
137
+ * memory loads. Note, this a non conformant configuration, i.e., this does not
138
+ * respect Wasm's specification, as Wasm requires all loads (even the eliminated
139
+ * loads to trap), whereas this configuration could eliminate an out-of-bound
140
+ * load, and thus allow the Wasm module to not trap. Use with caution.
141
+ */
142
+#ifndef WASM_RT_NONCONFORMING_ALLOW_OOB_READ_ELIMINATION
143
+#define WASM_RT_NONCONFORMING_ALLOW_OOB_READ_ELIMINATION 0
144
+#endif
145
+
146
+/**
147
+ * Set the range checking strategy for Wasm memories.
148
+ *
149
+ * GUARD_PAGES: memory accesses rely on unmapped pages/guard pages to trap
150
+ * out-of-bound accesses.
151
+ *
152
+ * BOUNDS_CHECK: memory accesses are checked with explicit bounds checks.
153
+ *
154
+ * This defaults to GUARD_PAGES as this is the fastest option, iff the
155
+ * requirements of GUARD_PAGES --- 64-bit platforms, MMAP allocation strategy,
156
+ * no 64-bit memories, and platforms with a supported FORCE_READ_STRATEGY
157
+ * described below --- are met. This falls back to BOUNDS otherwise.
158
+ *
159
+ * FORCE_READ_STRATEGY --- either the compiler should be a gcc/clang-like
160
+ * compiler or the embedder must permit a non-conforming setting (allow dead
161
+ * read elimination from linear memory)
162
+ */
163
+#if UINTPTR_MAX > 0xffffffff && WASM_RT_USE_MMAP && \
164
+ (WASM_RT_NONCONFORMING_ALLOW_OOB_READ_ELIMINATION || defined(__GNUC__))
165
+#define WASM_RT_GUARD_PAGES_SUPPORTED 1
166
+#else
167
+#define WASM_RT_GUARD_PAGES_SUPPORTED 0
168
+#endif
169
+
170
+/** Specify defaults for memory checks if unspecified */
171
+#if !defined(WASM_RT_MEMCHECK_GUARD_PAGES) && \
172
+ !defined(WASM_RT_MEMCHECK_BOUNDS_CHECK)
173
+#if WASM_RT_GUARD_PAGES_SUPPORTED
174
+#define WASM_RT_MEMCHECK_GUARD_PAGES 1
175
+#else
176
+#define WASM_RT_MEMCHECK_BOUNDS_CHECK 1
177
+#endif
178
+#endif
179
+
180
+/** Ensure the macros are defined */
181
+#ifndef WASM_RT_MEMCHECK_GUARD_PAGES
182
+#define WASM_RT_MEMCHECK_GUARD_PAGES 0
183
+#endif
184
+#ifndef WASM_RT_MEMCHECK_BOUNDS_CHECK
185
+#define WASM_RT_MEMCHECK_BOUNDS_CHECK 0
186
+#endif
187
+
188
+/** Sanity check the use of guard pages */
189
+#if WASM_RT_MEMCHECK_GUARD_PAGES && !WASM_RT_GUARD_PAGES_SUPPORTED
190
+#error \
191
+ "WASM_RT_MEMCHECK_GUARD_PAGES not supported on this platform/configuration"
192
+#endif
193
+
194
+#if WASM_RT_MEMCHECK_GUARD_PAGES && WASM_RT_MEMCHECK_BOUNDS_CHECK
195
+#error \
196
+ "Cannot use both WASM_RT_MEMCHECK_GUARD_PAGES and WASM_RT_MEMCHECK_BOUNDS_CHECK"
197
+
198
+#elif !WASM_RT_MEMCHECK_GUARD_PAGES && !WASM_RT_MEMCHECK_BOUNDS_CHECK
199
+#error \
200
+ "Must choose at least one from WASM_RT_MEMCHECK_GUARD_PAGES and WASM_RT_MEMCHECK_BOUNDS_CHECK"
201
+#endif
202
+
203
+/**
204
+ * Some configurations above require the Wasm runtime to install a signal
205
+ * handler. However, this can be explicitly disallowed by the host using
206
+ * WASM_RT_SKIP_SIGNAL_RECOVERY. In this case, when the wasm code encounters an
207
+ * OOB access, it may either trap or abort.
208
+ */
209
+#ifndef WASM_RT_SKIP_SIGNAL_RECOVERY
210
+#define WASM_RT_SKIP_SIGNAL_RECOVERY 0
211
+#endif
212
+
213
+#if WASM_RT_MEMCHECK_GUARD_PAGES && !WASM_RT_SKIP_SIGNAL_RECOVERY
214
+#define WASM_RT_INSTALL_SIGNAL_HANDLER 1
215
+#else
216
+#define WASM_RT_INSTALL_SIGNAL_HANDLER 0
217
+#endif
218
+
219
+/**
220
+ * This macro, if defined to 1 (i.e., allows the "segue" optimization), allows
221
+ * Wasm2c to use segment registers to speedup access to the linear heap. Note
222
+ * that even if allowed in this way, the segment registers would only be used if
223
+ * Wasm2c output is compiled for a suitable architecture and OS and the produces
224
+ * C file is compiled by supported compilers. The extact restrictions are listed
225
+ * in detail in src/template/wasm2c.declarations.c
226
+ */
227
+#ifndef WASM_RT_ALLOW_SEGUE
228
+#define WASM_RT_ALLOW_SEGUE 0
229
+#endif
230
+
231
+/**
232
+ * The segue optimization restores x86 segments to their old values when exiting
233
+ * wasm2c code. If WASM_RT_SEGUE_FREE_SEGMENT is defined, wasm2c assumes it has
234
+ * exclusive use of the segment and optimizes performance in two ways. First, it
235
+ * does not restore the "old" value of the segment during exits. Second, wasm2c
236
+ * only sets the segment register if the value has changed since the last time
237
+ * it was set.
238
+ */
239
+#ifndef WASM_RT_SEGUE_FREE_SEGMENT
240
+#define WASM_RT_SEGUE_FREE_SEGMENT 0
241
+#endif
242
+
243
+#ifndef WASM_RT_USE_SEGUE
244
+// Memory functions can use the segue optimization if allowed. The segue
245
+// optimization uses x86 segments to point to a linear memory. We use this
246
+// optimization when:
247
+//
248
+// (1) Segue is allowed using WASM_RT_ALLOW_SEGUE
249
+// (2) on x86_64 without WABT_BIG_ENDIAN enabled
250
+// (3) the compiler supports: intrinsics for (rd|wr)gsbase, "address namespaces"
251
+// for accessing pointers, and supports memcpy on pointers with custom
252
+// "address namespaces". GCC does not support the memcpy requirement, so
253
+// this leaves only clang (version 9 or later) for now.
254
+// (4) The OS provides a way to query if (rd|wr)gsbase is allowed by the kernel
255
+// or the implementation has to use a syscall for this.
256
+// (5) The OS doesn't replace the segment register on context switch which
257
+// eliminates windows for now
258
+//
259
+// While more OS can be supported in the future, we only support linux for now
260
+#if WASM_RT_ALLOW_SEGUE && !WABT_BIG_ENDIAN && \
261
+ (defined(__x86_64__) || defined(_M_X64)) && __clang__ && \
262
+ (__clang_major__ >= 9) && __has_builtin(__builtin_ia32_wrgsbase64) && \
263
+ !defined(_WIN32) && !defined(__ANDROID__) && \
264
+ (defined(__linux__) || defined(__FreeBSD__))
265
+#define WASM_RT_USE_SEGUE 1
266
+#else
267
+#define WASM_RT_USE_SEGUE 0
268
+#endif
269
+#endif
270
+
271
+/**
272
+ * This macro, if defined, allows the embedder to disable all stack exhaustion
273
+ * checks. This a non conformant configuration, i.e., this does not respect
274
+ * Wasm's specification, and may compromise security. Use with caution.
275
+ */
276
+#ifndef WASM_RT_NONCONFORMING_UNCHECKED_STACK_EXHAUSTION
277
+#define WASM_RT_NONCONFORMING_UNCHECKED_STACK_EXHAUSTION 0
278
+#endif
279
+
280
+/**
281
+ * We need to detect and trap stack overflows. If we use a signal handler on
282
+ * POSIX systems, this can detect call stack overflows. On windows, or platforms
283
+ * without a signal handler, we use stack depth counting. The s390x big endian
284
+ * platform additionally seems to have issues with stack guard pages, so we play
285
+ * it safe and use stack counting on big endian platforms.
286
+ */
287
+#if !defined(WASM_RT_STACK_DEPTH_COUNT) && \
288
+ !defined(WASM_RT_STACK_EXHAUSTION_HANDLER) && \
289
+ !WASM_RT_NONCONFORMING_UNCHECKED_STACK_EXHAUSTION
290
+
291
+#if WASM_RT_INSTALL_SIGNAL_HANDLER && !defined(_WIN32) && !WABT_BIG_ENDIAN
292
+#define WASM_RT_STACK_EXHAUSTION_HANDLER 1
293
+#else
294
+#define WASM_RT_STACK_DEPTH_COUNT 1
295
+#endif
296
+
297
+#endif
298
+
299
+/** Ensure the stack macros are defined */
300
+#ifndef WASM_RT_STACK_DEPTH_COUNT
301
+#define WASM_RT_STACK_DEPTH_COUNT 0
302
+#endif
303
+#ifndef WASM_RT_STACK_EXHAUSTION_HANDLER
304
+#define WASM_RT_STACK_EXHAUSTION_HANDLER 0
305
+#endif
306
+
307
+#if WASM_RT_NONCONFORMING_UNCHECKED_STACK_EXHAUSTION
308
+
309
+#if (WASM_RT_STACK_EXHAUSTION_HANDLER + WASM_RT_STACK_DEPTH_COUNT) != 0
310
+#error \
311
+ "Cannot specify WASM_RT_NONCONFORMING_UNCHECKED_STACK_EXHAUSTION along with WASM_RT_STACK_EXHAUSTION_HANDLER or WASM_RT_STACK_DEPTH_COUNT"
312
+#endif
313
+
314
+#else
315
+
316
+#if (WASM_RT_STACK_EXHAUSTION_HANDLER + WASM_RT_STACK_DEPTH_COUNT) > 1
317
+#error \
318
+ "Cannot specify multiple options from WASM_RT_STACK_EXHAUSTION_HANDLER , WASM_RT_STACK_DEPTH_COUNT"
319
+#elif (WASM_RT_STACK_EXHAUSTION_HANDLER + WASM_RT_STACK_DEPTH_COUNT) == 0
320
+#error \
321
+ "Must specify one of WASM_RT_STACK_EXHAUSTION_HANDLER , WASM_RT_STACK_DEPTH_COUNT"
322
+#endif
323
+
324
+#endif
325
+
326
+#if WASM_RT_STACK_EXHAUSTION_HANDLER && !WASM_RT_INSTALL_SIGNAL_HANDLER
327
+#error \
328
+ "WASM_RT_STACK_EXHAUSTION_HANDLER can only be used if WASM_RT_INSTALL_SIGNAL_HANDLER is enabled"
329
+#endif
330
+
331
+#if WASM_RT_STACK_DEPTH_COUNT
332
+/**
333
+ * When the signal handler cannot be used to detect stack overflows, stack depth
334
+ * is limited explicitly. The maximum stack depth before trapping can be
335
+ * configured by defining this symbol before including wasm-rt when building the
336
+ * generated c files, for example:
337
+ *
338
+ * ```
339
+ * cc -c -DWASM_RT_MAX_CALL_STACK_DEPTH=100 my_module.c -o my_module.o
340
+ * ```
341
+ */
342
+#ifndef WASM_RT_MAX_CALL_STACK_DEPTH
343
+#define WASM_RT_MAX_CALL_STACK_DEPTH 500
344
+#endif
345
+
346
+/** Current call stack depth. */
347
+extern WASM_RT_THREAD_LOCAL uint32_t wasm_rt_call_stack_depth;
348
+
349
+#endif
350
+
351
+#if WASM_RT_USE_SEGUE
352
+/**
353
+ * The segue optimization uses x86 segments to point to a linear memory. If
354
+ * used, the runtime must query whether it can use the fast userspace wrgsbase
355
+ * instructions or whether it must invoke syscalls to set the segment base,
356
+ * depending on the supported CPU features. The result of this query is saved in
357
+ * this variable.
358
+ */
359
+extern bool wasm_rt_fsgsbase_inst_supported;
360
+/**
361
+ * If fast userspace wrgsbase instructions don't exist, the runtime most provide
362
+ * a function that invokes the OS' underlying syscall to set the segment base.
363
+ */
364
+void wasm_rt_syscall_set_segue_base(void* base);
365
+/**
366
+ * If fast userspace rdgsbase instructions don't exist, the runtime most provide
367
+ * a function that invokes the OS' underlying syscall to get the segment base.
368
+ */
369
+void* wasm_rt_syscall_get_segue_base();
370
+/**
371
+ * If WASM_RT_SEGUE_FREE_SEGMENT is defined, we must only set the segment
372
+ * register if it was changed since the last time it was set. The last value set
373
+ * on the segment register is stored in this variable.
374
+ */
375
+#if WASM_RT_SEGUE_FREE_SEGMENT
376
+extern WASM_RT_THREAD_LOCAL void* wasm_rt_last_segment_val;
377
+#endif
378
+#endif
379
+
380
+#if defined(_MSC_VER)
381
+#define WASM_RT_NO_RETURN __declspec(noreturn)
382
+#else
383
+#define WASM_RT_NO_RETURN __attribute__((noreturn))
384
+#endif
385
+
386
+#if defined(__APPLE__) && WASM_RT_STACK_EXHAUSTION_HANDLER
387
+#define WASM_RT_MERGED_OOB_AND_EXHAUSTION_TRAPS 1
388
+#else
389
+#define WASM_RT_MERGED_OOB_AND_EXHAUSTION_TRAPS 0
390
+#endif
391
+
392
+/** Reason a trap occurred. Provide this to `wasm_rt_trap`. */
393
+typedef enum {
394
+ WASM_RT_TRAP_NONE, /** No error. */
395
+ WASM_RT_TRAP_OOB, /** Out-of-bounds access in linear memory or a table. */
396
+ WASM_RT_TRAP_INT_OVERFLOW, /** Integer overflow on divide or truncation. */
397
+ WASM_RT_TRAP_DIV_BY_ZERO, /** Integer divide by zero. */
398
+ WASM_RT_TRAP_INVALID_CONVERSION, /** Conversion from NaN to integer. */
399
+ WASM_RT_TRAP_UNREACHABLE, /** Unreachable instruction executed. */
400
+ WASM_RT_TRAP_CALL_INDIRECT, /** Invalid call_indirect, for any reason. */
401
+ WASM_RT_TRAP_NULL_REF, /** Null reference. */
402
+ WASM_RT_TRAP_UNCAUGHT_EXCEPTION, /** Exception thrown and not caught. */
403
+ WASM_RT_TRAP_UNALIGNED, /** Unaligned atomic instruction executed. */
404
+#if WASM_RT_MERGED_OOB_AND_EXHAUSTION_TRAPS
405
+ WASM_RT_TRAP_EXHAUSTION = WASM_RT_TRAP_OOB,
406
+#else
407
+ WASM_RT_TRAP_EXHAUSTION, /** Call stack exhausted. */
408
+#endif
409
+} wasm_rt_trap_t;
410
+
411
+/** Value types. Used to define function signatures. */
412
+typedef enum {
413
+ WASM_RT_I32,
414
+ WASM_RT_I64,
415
+ WASM_RT_F32,
416
+ WASM_RT_F64,
417
+ WASM_RT_V128,
418
+ WASM_RT_FUNCREF,
419
+ WASM_RT_EXTERNREF,
420
+ WASM_RT_EXNREF,
421
+} wasm_rt_type_t;
422
+
423
+/**
424
+ * A generic function pointer type, both for Wasm functions (`code`)
425
+ * and host functions (`hostcode`). All function pointers are stored
426
+ * in this canonical form, but must be cast to their proper signature
427
+ * to call.
428
+ */
429
+typedef void (*wasm_rt_function_ptr_t)(void);
430
+
431
+/**
432
+ * A pointer to a "tail-callee" function, called by a tail-call
433
+ * trampoline or by another tail-callee function. (The definition uses a
434
+ * single-member struct to allow a recursive definition.)
435
+ */
436
+typedef struct wasm_rt_tailcallee_t {
437
+ void (*fn)(void** instance_ptr,
438
+ void* tail_call_stack,
439
+ struct wasm_rt_tailcallee_t* next);
440
+} wasm_rt_tailcallee_t;
441
+
442
+/**
443
+ * The type of a function (an arbitrary number of param and result types).
444
+ * This is represented as an opaque 256-bit ID.
445
+ */
446
+typedef const char* wasm_rt_func_type_t;
447
+
448
+/**
449
+ * A function instance (the runtime representation of a function).
450
+ * These can be stored in tables of type funcref, or used as values.
451
+ */
452
+typedef struct {
453
+ /** The function's type. */
454
+ wasm_rt_func_type_t func_type;
455
+ /**
456
+ * The function. The embedder must know the actual C signature of the function
457
+ * and cast to it before calling.
458
+ */
459
+ wasm_rt_function_ptr_t func;
460
+ /** An alternate version of the function to be used when tail-called. */
461
+ wasm_rt_tailcallee_t func_tailcallee;
462
+ /**
463
+ * A function instance is a closure of the function over an instance
464
+ * of the originating module. The module_instance element will be passed into
465
+ * the function at runtime.
466
+ */
467
+ void* module_instance;
468
+} wasm_rt_funcref_t;
469
+
470
+/** Default (null) value of a funcref */
471
+#define wasm_rt_funcref_null_value \
472
+ ((wasm_rt_funcref_t){NULL, NULL, {NULL}, NULL})
473
+
474
+/** The type of an external reference (opaque to WebAssembly). */
475
+typedef void* wasm_rt_externref_t;
476
+
477
+/** Default (null) value of an externref */
478
+#define wasm_rt_externref_null_value ((wasm_rt_externref_t){NULL})
479
+
480
+/** A Memory object. */
481
+typedef struct {
482
+ /** The linear memory data, with a byte length of `size`. */
483
+ uint8_t* data;
484
+ /** The location after the the reserved space for the linear memory data. */
485
+ uint8_t* data_end;
486
+ /** The page size for this Memory object
487
+ (always 64 KiB without the custom-page-sizes feature) */
488
+ uint32_t page_size;
489
+ /** The current page count for this Memory object. */
490
+ uint64_t pages;
491
+ /** The maximum page count for this Memory object. */
492
+ uint64_t max_pages;
493
+ /** The current size of the linear memory, in bytes. */
494
+ uint64_t size;
495
+ /** Is this memory indexed by u64 (as opposed to default u32) */
496
+ bool is64;
497
+} wasm_rt_memory_t;
498
+
499
+#ifdef WASM_RT_C11_AVAILABLE
500
+/** A shared Memory object. */
501
+typedef struct {
502
+ /**
503
+ * The linear memory data, with a byte length of `size`. The memory is marked
504
+ * atomic as it is shared and may have to be accessed with different memory
505
+ * orders --- sequential when being accessed atomically, relaxed otherwise.
506
+ * Unfortunately, the C standard does not state what happens if there are
507
+ * overlaps in two memory accesses which have a memory order, e.g., an
508
+ * atomic32 being read from the same location an atomic64 is read. One way to
509
+ * prevent optimizations from assuming non-overlapping behavior as typically
510
+ * done in C is to mark the memory as volatile. Thus the memory is atomic and
511
+ * volatile.
512
+ */
513
+ _Atomic volatile uint8_t* data;
514
+ /** The location one byte after the reserved space for the linear memory data.
515
+ * This includes any reserved pages that are not yet allocated. */
516
+ _Atomic volatile uint8_t* data_end;
517
+ /** The page size for this Memory object
518
+ (always 64 KiB without the custom-page-sizes feature) */
519
+ uint32_t page_size;
520
+ /** The current page count for this Memory object. */
521
+ uint64_t pages;
522
+ /* The maximum page count for this Memory object. */
523
+ uint64_t max_pages;
524
+ /** The current size of the linear memory, in bytes. */
525
+ uint64_t size;
526
+ /** Is this memory indexed by u64 (as opposed to default u32) */
527
+ bool is64;
528
+ /** Lock used to ensure operations such as memory grow are threadsafe */
529
+ WASM_RT_MUTEX mem_lock;
530
+} wasm_rt_shared_memory_t;
531
+#endif
532
+
533
+/** A Table of type funcref. */
534
+typedef struct {
535
+ /** The table element data, with an element count of `size`. */
536
+ wasm_rt_funcref_t* data;
537
+ /**
538
+ * The maximum element count of this Table object. If there is no maximum,
539
+ * `max_size` is 0xffffffffu (i.e. UINT32_MAX).
540
+ */
541
+ uint32_t max_size;
542
+ /** The current element count of the table. */
543
+ uint32_t size;
544
+} wasm_rt_funcref_table_t;
545
+
546
+/** A Table of type externref. */
547
+typedef struct {
548
+ /** The table element data, with an element count of `size`. */
549
+ wasm_rt_externref_t* data;
550
+ /**
551
+ * The maximum element count of this Table object. If there is no maximum,
552
+ * `max_size` is 0xffffffffu (i.e. UINT32_MAX).
553
+ */
554
+ uint32_t max_size;
555
+ /** The current element count of the table. */
556
+ uint32_t size;
557
+} wasm_rt_externref_table_t;
558
+
559
+/** Initialize the runtime. */
560
+void wasm_rt_init(void);
561
+
562
+/** Is the runtime initialized? */
563
+bool wasm_rt_is_initialized(void);
564
+
565
+/** Free the runtime's state. */
566
+void wasm_rt_free(void);
567
+
568
+/*
569
+ * Initialize the multithreaded runtime for a given thread. Must be
570
+ * called by each thread (other than the one that called wasm_rt_init)
571
+ * before initializing a Wasm module or calling an exported
572
+ * function.
573
+ */
574
+void wasm_rt_init_thread(void);
575
+
576
+/*
577
+ * Free the individual thread's state.
578
+ */
579
+void wasm_rt_free_thread(void);
580
+
581
+/** A hardened jmp_buf that allows checking for initialization before use */
582
+typedef struct {
583
+ /** Is the jmp buf intialized? */
584
+ bool initialized;
585
+ /** jmp_buf contents */
586
+ jmp_buf buffer;
587
+} wasm_rt_jmp_buf;
588
+
589
+#ifndef _WIN32
590
+#define WASM_RT_SETJMP_TRAP_SETBUF(buf) sigsetjmp(buf, 1)
591
+
592
+/**
593
+ * On macOS XNU, there is a bug where nested `sigsetjmp` and `siglongjmp`
594
+ * across threads that have an allocated alternate signal stack (`SS_ONSTACK`)
595
+ * will erroneously cause the kernel to preserve the `SS_ONSTACK` flag in the
596
+ * thread state
597
+ *
598
+ * See: https://github.com/WebAssembly/wabt/issues/2654
599
+ * See: https://github.com/golang/go/issues/44501
600
+ */
601
+#define WASM_RT_SETJMP_EXN_SETBUF(buf) sigsetjmp(buf, 0)
602
+#else
603
+#define WASM_RT_SETJMP_TRAP_SETBUF(buf) setjmp(buf)
604
+#define WASM_RT_SETJMP_EXN_SETBUF(buf) setjmp(buf)
605
+#endif
606
+
607
+#define WASM_RT_SETJMP(buf) \
608
+ ((buf).initialized = true, WASM_RT_SETJMP_TRAP_SETBUF((buf).buffer))
609
+#define WASM_RT_SETJMP_EXN(buf) \
610
+ ((buf).initialized = true, WASM_RT_SETJMP_EXN_SETBUF((buf).buffer))
611
+
612
+#ifndef _WIN32
613
+#define WASM_RT_LONGJMP_UNCHECKED(buf, val) siglongjmp(buf, val)
614
+#else
615
+#define WASM_RT_LONGJMP_UNCHECKED(buf, val) longjmp(buf, val)
616
+#endif
617
+
618
+#define WASM_RT_LONGJMP(buf, val) \
619
+ /** Abort on failure as this may be called in the trap handler */ \
620
+ if (!((buf).initialized)) \
621
+ abort(); \
622
+ (buf).initialized = false; \
623
+ WASM_RT_LONGJMP_UNCHECKED((buf).buffer, val)
624
+
625
+/**
626
+ * Stop execution immediately and jump back to the call to `wasm_rt_impl_try`.
627
+ * The result of `wasm_rt_impl_try` will be the provided trap reason.
628
+ *
629
+ * This is typically called by the generated code, and not the embedder.
630
+ */
631
+WASM_RT_NO_RETURN void wasm_rt_trap(wasm_rt_trap_t);
632
+
633
+/** Return a human readable error string based on a trap type. */
634
+const char* wasm_rt_strerror(wasm_rt_trap_t trap);
635
+
636
+#define wasm_rt_try(target) WASM_RT_SETJMP_EXN(target)
637
+
638
+/** WebAssembly's default page size (64 KiB) */
639
+#define WASM_DEFAULT_PAGE_SIZE 65536
640
+
641
+/**
642
+ * Initialize a Memory object with an initial page size of `initial_pages` and
643
+ * a maximum page size of `max_pages`, indexed with an i32 or i64.
644
+ *
645
+ * ```
646
+ * wasm_rt_memory_t my_memory;
647
+ * // 1 initial page (65536 bytes), and a maximum of 2 pages,
648
+ * // indexed with an i32
649
+ * wasm_rt_allocate_memory(&my_memory, 1, 2, false, WASM_DEFAULT_PAGE_SIZE);
650
+ * ```
651
+ */
652
+void wasm_rt_allocate_memory(wasm_rt_memory_t*,
653
+ uint64_t initial_pages,
654
+ uint64_t max_pages,
655
+ bool is64,
656
+ uint32_t page_size);
657
+
658
+/**
659
+ * Grow a Memory object by `pages`, and return the previous page count. If
660
+ * this new page count is greater than the maximum page count, the grow fails
661
+ * and 0xffffffffu (UINT32_MAX) is returned instead.
662
+ *
663
+ * ```
664
+ * wasm_rt_memory_t my_memory;
665
+ * ...
666
+ * // Grow memory by 10 pages.
667
+ * uint32_t old_page_size = wasm_rt_grow_memory(&my_memory, 10);
668
+ * if (old_page_size == UINT32_MAX) {
669
+ * // Failed to grow memory.
670
+ * }
671
+ * ```
672
+ */
673
+uint64_t wasm_rt_grow_memory(wasm_rt_memory_t*, uint64_t pages);
674
+
675
+/** Free a Memory object. */
676
+void wasm_rt_free_memory(wasm_rt_memory_t*);
677
+
678
+#ifdef WASM_RT_C11_AVAILABLE
679
+/** Shared memory version of wasm_rt_allocate_memory */
680
+void wasm_rt_allocate_memory_shared(wasm_rt_shared_memory_t*,
681
+ uint64_t initial_pages,
682
+ uint64_t max_pages,
683
+ bool is64,
684
+ uint32_t page_size);
685
+
686
+/** Shared memory version of wasm_rt_grow_memory */
687
+uint64_t wasm_rt_grow_memory_shared(wasm_rt_shared_memory_t*, uint64_t pages);
688
+
689
+/** Shared memory version of wasm_rt_free_memory */
690
+void wasm_rt_free_memory_shared(wasm_rt_shared_memory_t*);
691
+#endif
692
+
693
+/**
694
+ * Initialize a funcref Table object with an element count of `elements` and a
695
+ * maximum size of `max_elements`.
696
+ *
697
+ * ```
698
+ * wasm_rt_funcref_table_t my_table;
699
+ * // 5 elements and a maximum of 10 elements.
700
+ * wasm_rt_allocate_funcref_table(&my_table, 5, 10);
701
+ * ```
702
+ */
703
+void wasm_rt_allocate_funcref_table(wasm_rt_funcref_table_t*,
704
+ uint32_t elements,
705
+ uint32_t max_elements);
706
+
707
+/** Free a funcref Table object. */
708
+void wasm_rt_free_funcref_table(wasm_rt_funcref_table_t*);
709
+
710
+/**
711
+ * Initialize an externref Table object with an element count
712
+ * of `elements` and a maximum size of `max_elements`.
713
+ * Usage as per wasm_rt_allocate_funcref_table.
714
+ */
715
+void wasm_rt_allocate_externref_table(wasm_rt_externref_table_t*,
716
+ uint32_t elements,
717
+ uint32_t max_elements);
718
+
719
+/** Free an externref Table object. */
720
+void wasm_rt_free_externref_table(wasm_rt_externref_table_t*);
721
+
722
+/**
723
+ * Grow a Table object by `delta` elements (giving the new elements the value
724
+ * `init`), and return the previous element count. If this new element count is
725
+ * greater than the maximum element count, the grow fails and 0xffffffffu
726
+ * (UINT32_MAX) is returned instead.
727
+ */
728
+uint32_t wasm_rt_grow_funcref_table(wasm_rt_funcref_table_t*,
729
+ uint32_t delta,
730
+ wasm_rt_funcref_t init);
731
+uint32_t wasm_rt_grow_externref_table(wasm_rt_externref_table_t*,
732
+ uint32_t delta,
733
+ wasm_rt_externref_t init);
734
+
735
+#ifdef __cplusplus
736
+}
737
+#endif
738
+
739
+#endif /* WASM_RT_H_ */
apps/mobile/modules/t3-highlights/android/.gitignore
new
+1
@@ -0,0 +1 @@
1
+.cxx/
apps/mobile/modules/t3-highlights/android/build.gradle
new
+34
@@ -0,0 +1,34 @@
1
+apply plugin: 'com.android.library'
2
+apply plugin: 'org.jetbrains.kotlin.android'
3
+
4
+group = 'com.t3tools.highlights'
5
+version = '0.0.0'
6
+
7
+android {
8
+ namespace 'expo.modules.t3highlights'
9
+ ndkVersion rootProject.ext.ndkVersion
10
+ compileSdk rootProject.ext.compileSdkVersion
11
+
12
+ defaultConfig {
13
+ minSdkVersion rootProject.ext.minSdkVersion
14
+ targetSdkVersion rootProject.ext.targetSdkVersion
15
+
16
+ def requestedArchitectures = project.findProperty('reactNativeArchitectures')
17
+ if (requestedArchitectures) {
18
+ ndk {
19
+ abiFilters(*requestedArchitectures.split(','))
20
+ }
21
+ }
22
+ }
23
+
24
+ externalNativeBuild {
25
+ cmake {
26
+ path 'src/main/cpp/CMakeLists.txt'
27
+ version '3.22.1'
28
+ }
29
+ }
30
+}
31
+
32
+dependencies {
33
+ implementation project(':expo-modules-core')
34
+}
apps/mobile/modules/t3-highlights/android/src/main/AndroidManifest.xml
new
+1
@@ -0,0 +1 @@
1
+<manifest xmlns:android="http://schemas.android.com/apk/res/android" />
apps/mobile/modules/t3-highlights/android/src/main/cpp/CMakeLists.txt
new
+34
@@ -0,0 +1,34 @@
1
+cmake_minimum_required(VERSION 3.22.1)
2
+
3
+project(t3highlights LANGUAGES C)
4
+
5
+set(T3_HIGHLIGHTS_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/../../../..")
6
+
7
+add_library(
8
+ t3highlights SHARED
9
+ t3_highlights_jni.c
10
+ "${T3_HIGHLIGHTS_ROOT}/cpp/t3_highlights.c"
11
+ "${T3_HIGHLIGHTS_ROOT}/Vendor/highlights/highlights.c"
12
+ "${T3_HIGHLIGHTS_ROOT}/Vendor/wasm2c/wasm-rt-impl.c"
13
+ "${T3_HIGHLIGHTS_ROOT}/Vendor/wasm2c/wasm-rt-mem-impl.c"
14
+)
15
+
16
+target_include_directories(
17
+ t3highlights
18
+ PRIVATE "${T3_HIGHLIGHTS_ROOT}/cpp" "${T3_HIGHLIGHTS_ROOT}/Vendor"
19
+ "${T3_HIGHLIGHTS_ROOT}/Vendor/highlights" "${T3_HIGHLIGHTS_ROOT}/Vendor/wasm2c"
20
+)
21
+
22
+# Plain malloc memory with explicit bounds checks: no guard-page signal
23
+# handlers competing with ART's.
24
+target_compile_definitions(
25
+ t3highlights PRIVATE WASM_RT_USE_MMAP=0 WASM_RT_MEMCHECK_BOUNDS_CHECK=1
26
+ WASM_RT_SKIP_SIGNAL_RECOVERY=1
27
+)
28
+
29
+# The lexers are generated code; keep them fast in debug builds too.
30
+target_compile_options(t3highlights PRIVATE -O2)
31
+
32
+target_link_options(
33
+ t3highlights PRIVATE "-Wl,-z,common-page-size=16384" "-Wl,-z,max-page-size=16384"
34
+)
apps/mobile/modules/t3-highlights/android/src/main/cpp/t3_highlights_jni.c
new
+41
@@ -0,0 +1,41 @@
1
+#include <jni.h>
2
+#include <string.h>
3
+
4
+#include "t3_highlights.h"
5
+
6
+// HighlightsNative serializes both calls, so the copy reads the records the
7
+// tokenize call just produced.
8
+static const uint32_t* last_records = NULL;
9
+static int64_t last_count = 0;
10
+
11
+JNIEXPORT jint JNICALL Java_expo_modules_t3highlights_HighlightsNative_nativeTokenize(
12
+ JNIEnv* env, jclass clazz, jbyteArray source, jint language) {
13
+ (void)clazz;
14
+ last_records = NULL;
15
+ last_count = 0;
16
+ if (language < 0 || language > UINT8_MAX) return -1;
17
+
18
+ jsize length = (*env)->GetArrayLength(env, source);
19
+ jbyte* bytes = (*env)->GetByteArrayElements(env, source, NULL);
20
+ if (bytes == NULL) return -1;
21
+ int64_t count = t3_highlights_tokenize((const uint8_t*)bytes, (size_t)length,
22
+ (uint8_t)language, &last_records);
23
+ (*env)->ReleaseByteArrayElements(env, source, bytes, JNI_ABORT);
24
+
25
+ if (count < 0 || count > INT32_MAX / 4) {
26
+ last_records = NULL;
27
+ return -1;
28
+ }
29
+ last_count = count;
30
+ return (jint)count;
31
+}
32
+
33
+JNIEXPORT void JNICALL Java_expo_modules_t3highlights_HighlightsNative_nativeCopyRecords(
34
+ JNIEnv* env, jclass clazz, jobject destination) {
35
+ (void)clazz;
36
+ void* address = (*env)->GetDirectBufferAddress(env, destination);
37
+ jlong capacity = (*env)->GetDirectBufferCapacity(env, destination);
38
+ size_t byte_count = (size_t)last_count * sizeof(uint32_t);
39
+ if (address == NULL || last_records == NULL || capacity < (jlong)byte_count) return;
40
+ memcpy(address, last_records, byte_count);
41
+}
apps/mobile/modules/t3-highlights/android/src/main/java/expo/modules/t3highlights/T3HighlightsModule.kt
new
+37
@@ -0,0 +1,37 @@
1
+package expo.modules.t3highlights
2
+
3
+import expo.modules.kotlin.jni.ArrayBuffer
4
+import expo.modules.kotlin.modules.Module
5
+import expo.modules.kotlin.modules.ModuleDefinition
6
+import java.nio.ByteBuffer
7
+import java.nio.ByteOrder
8
+
9
+class T3HighlightsModule : Module() {
10
+ override fun definition() = ModuleDefinition {
11
+ Name("T3Highlights")
12
+
13
+ Function("tokenize") { source: String, language: Int ->
14
+ HighlightsNative.tokenize(source, language)
15
+ }
16
+ }
17
+}
18
+
19
+internal object HighlightsNative {
20
+ init {
21
+ System.loadLibrary("t3highlights")
22
+ }
23
+
24
+ // The records live in the lexer's memory until its next run.
25
+ @Synchronized
26
+ fun tokenize(source: String, language: Int): ArrayBuffer? {
27
+ val count = nativeTokenize(source.toByteArray(Charsets.UTF_8), language)
28
+ if (count < 0) return null
29
+ val records = ByteBuffer.allocateDirect(count * Int.SIZE_BYTES).order(ByteOrder.nativeOrder())
30
+ nativeCopyRecords(records)
31
+ return ArrayBuffer(records)
32
+ }
33
+
34
+ @JvmStatic private external fun nativeTokenize(source: ByteArray, language: Int): Int
35
+
36
+ @JvmStatic private external fun nativeCopyRecords(destination: ByteBuffer)
37
+}
apps/mobile/modules/t3-highlights/cpp/generated/id_ranges.inc
new
+376
@@ -0,0 +1,376 @@
1
+/* Unicode 17.0 identifier classes. */
2
+static const uint32_t id_start_ranges[][2] = {
3
+ {0x41, 0x5a}, {0x61, 0x7a}, {0xaa, 0xaa}, {0xb5, 0xb5},
4
+ {0xba, 0xba}, {0xc0, 0xd6}, {0xd8, 0xf6}, {0xf8, 0x2c1},
5
+ {0x2c6, 0x2d1}, {0x2e0, 0x2e4}, {0x2ec, 0x2ec}, {0x2ee, 0x2ee},
6
+ {0x370, 0x374}, {0x376, 0x377}, {0x37a, 0x37d}, {0x37f, 0x37f},
7
+ {0x386, 0x386}, {0x388, 0x38a}, {0x38c, 0x38c}, {0x38e, 0x3a1},
8
+ {0x3a3, 0x3f5}, {0x3f7, 0x481}, {0x48a, 0x52f}, {0x531, 0x556},
9
+ {0x559, 0x559}, {0x560, 0x588}, {0x5d0, 0x5ea}, {0x5ef, 0x5f2},
10
+ {0x620, 0x64a}, {0x66e, 0x66f}, {0x671, 0x6d3}, {0x6d5, 0x6d5},
11
+ {0x6e5, 0x6e6}, {0x6ee, 0x6ef}, {0x6fa, 0x6fc}, {0x6ff, 0x6ff},
12
+ {0x710, 0x710}, {0x712, 0x72f}, {0x74d, 0x7a5}, {0x7b1, 0x7b1},
13
+ {0x7ca, 0x7ea}, {0x7f4, 0x7f5}, {0x7fa, 0x7fa}, {0x800, 0x815},
14
+ {0x81a, 0x81a}, {0x824, 0x824}, {0x828, 0x828}, {0x840, 0x858},
15
+ {0x860, 0x86a}, {0x870, 0x887}, {0x889, 0x88f}, {0x8a0, 0x8c9},
16
+ {0x904, 0x939}, {0x93d, 0x93d}, {0x950, 0x950}, {0x958, 0x961},
17
+ {0x971, 0x980}, {0x985, 0x98c}, {0x98f, 0x990}, {0x993, 0x9a8},
18
+ {0x9aa, 0x9b0}, {0x9b2, 0x9b2}, {0x9b6, 0x9b9}, {0x9bd, 0x9bd},
19
+ {0x9ce, 0x9ce}, {0x9dc, 0x9dd}, {0x9df, 0x9e1}, {0x9f0, 0x9f1},
20
+ {0x9fc, 0x9fc}, {0xa05, 0xa0a}, {0xa0f, 0xa10}, {0xa13, 0xa28},
21
+ {0xa2a, 0xa30}, {0xa32, 0xa33}, {0xa35, 0xa36}, {0xa38, 0xa39},
22
+ {0xa59, 0xa5c}, {0xa5e, 0xa5e}, {0xa72, 0xa74}, {0xa85, 0xa8d},
23
+ {0xa8f, 0xa91}, {0xa93, 0xaa8}, {0xaaa, 0xab0}, {0xab2, 0xab3},
24
+ {0xab5, 0xab9}, {0xabd, 0xabd}, {0xad0, 0xad0}, {0xae0, 0xae1},
25
+ {0xaf9, 0xaf9}, {0xb05, 0xb0c}, {0xb0f, 0xb10}, {0xb13, 0xb28},
26
+ {0xb2a, 0xb30}, {0xb32, 0xb33}, {0xb35, 0xb39}, {0xb3d, 0xb3d},
27
+ {0xb5c, 0xb5d}, {0xb5f, 0xb61}, {0xb71, 0xb71}, {0xb83, 0xb83},
28
+ {0xb85, 0xb8a}, {0xb8e, 0xb90}, {0xb92, 0xb95}, {0xb99, 0xb9a},
29
+ {0xb9c, 0xb9c}, {0xb9e, 0xb9f}, {0xba3, 0xba4}, {0xba8, 0xbaa},
30
+ {0xbae, 0xbb9}, {0xbd0, 0xbd0}, {0xc05, 0xc0c}, {0xc0e, 0xc10},
31
+ {0xc12, 0xc28}, {0xc2a, 0xc39}, {0xc3d, 0xc3d}, {0xc58, 0xc5a},
32
+ {0xc5c, 0xc5d}, {0xc60, 0xc61}, {0xc80, 0xc80}, {0xc85, 0xc8c},
33
+ {0xc8e, 0xc90}, {0xc92, 0xca8}, {0xcaa, 0xcb3}, {0xcb5, 0xcb9},
34
+ {0xcbd, 0xcbd}, {0xcdc, 0xcde}, {0xce0, 0xce1}, {0xcf1, 0xcf2},
35
+ {0xd04, 0xd0c}, {0xd0e, 0xd10}, {0xd12, 0xd3a}, {0xd3d, 0xd3d},
36
+ {0xd4e, 0xd4e}, {0xd54, 0xd56}, {0xd5f, 0xd61}, {0xd7a, 0xd7f},
37
+ {0xd85, 0xd96}, {0xd9a, 0xdb1}, {0xdb3, 0xdbb}, {0xdbd, 0xdbd},
38
+ {0xdc0, 0xdc6}, {0xe01, 0xe30}, {0xe32, 0xe33}, {0xe40, 0xe46},
39
+ {0xe81, 0xe82}, {0xe84, 0xe84}, {0xe86, 0xe8a}, {0xe8c, 0xea3},
40
+ {0xea5, 0xea5}, {0xea7, 0xeb0}, {0xeb2, 0xeb3}, {0xebd, 0xebd},
41
+ {0xec0, 0xec4}, {0xec6, 0xec6}, {0xedc, 0xedf}, {0xf00, 0xf00},
42
+ {0xf40, 0xf47}, {0xf49, 0xf6c}, {0xf88, 0xf8c}, {0x1000, 0x102a},
43
+ {0x103f, 0x103f}, {0x1050, 0x1055}, {0x105a, 0x105d}, {0x1061, 0x1061},
44
+ {0x1065, 0x1066}, {0x106e, 0x1070}, {0x1075, 0x1081}, {0x108e, 0x108e},
45
+ {0x10a0, 0x10c5}, {0x10c7, 0x10c7}, {0x10cd, 0x10cd}, {0x10d0, 0x10fa},
46
+ {0x10fc, 0x1248}, {0x124a, 0x124d}, {0x1250, 0x1256}, {0x1258, 0x1258},
47
+ {0x125a, 0x125d}, {0x1260, 0x1288}, {0x128a, 0x128d}, {0x1290, 0x12b0},
48
+ {0x12b2, 0x12b5}, {0x12b8, 0x12be}, {0x12c0, 0x12c0}, {0x12c2, 0x12c5},
49
+ {0x12c8, 0x12d6}, {0x12d8, 0x1310}, {0x1312, 0x1315}, {0x1318, 0x135a},
50
+ {0x1380, 0x138f}, {0x13a0, 0x13f5}, {0x13f8, 0x13fd}, {0x1401, 0x166c},
51
+ {0x166f, 0x167f}, {0x1681, 0x169a}, {0x16a0, 0x16ea}, {0x16ee, 0x16f8},
52
+ {0x1700, 0x1711}, {0x171f, 0x1731}, {0x1740, 0x1751}, {0x1760, 0x176c},
53
+ {0x176e, 0x1770}, {0x1780, 0x17b3}, {0x17d7, 0x17d7}, {0x17dc, 0x17dc},
54
+ {0x1820, 0x1878}, {0x1880, 0x18a8}, {0x18aa, 0x18aa}, {0x18b0, 0x18f5},
55
+ {0x1900, 0x191e}, {0x1950, 0x196d}, {0x1970, 0x1974}, {0x1980, 0x19ab},
56
+ {0x19b0, 0x19c9}, {0x1a00, 0x1a16}, {0x1a20, 0x1a54}, {0x1aa7, 0x1aa7},
57
+ {0x1b05, 0x1b33}, {0x1b45, 0x1b4c}, {0x1b83, 0x1ba0}, {0x1bae, 0x1baf},
58
+ {0x1bba, 0x1be5}, {0x1c00, 0x1c23}, {0x1c4d, 0x1c4f}, {0x1c5a, 0x1c7d},
59
+ {0x1c80, 0x1c8a}, {0x1c90, 0x1cba}, {0x1cbd, 0x1cbf}, {0x1ce9, 0x1cec},
60
+ {0x1cee, 0x1cf3}, {0x1cf5, 0x1cf6}, {0x1cfa, 0x1cfa}, {0x1d00, 0x1dbf},
61
+ {0x1e00, 0x1f15}, {0x1f18, 0x1f1d}, {0x1f20, 0x1f45}, {0x1f48, 0x1f4d},
62
+ {0x1f50, 0x1f57}, {0x1f59, 0x1f59}, {0x1f5b, 0x1f5b}, {0x1f5d, 0x1f5d},
63
+ {0x1f5f, 0x1f7d}, {0x1f80, 0x1fb4}, {0x1fb6, 0x1fbc}, {0x1fbe, 0x1fbe},
64
+ {0x1fc2, 0x1fc4}, {0x1fc6, 0x1fcc}, {0x1fd0, 0x1fd3}, {0x1fd6, 0x1fdb},
65
+ {0x1fe0, 0x1fec}, {0x1ff2, 0x1ff4}, {0x1ff6, 0x1ffc}, {0x2071, 0x2071},
66
+ {0x207f, 0x207f}, {0x2090, 0x209c}, {0x2102, 0x2102}, {0x2107, 0x2107},
67
+ {0x210a, 0x2113}, {0x2115, 0x2115}, {0x2118, 0x211d}, {0x2124, 0x2124},
68
+ {0x2126, 0x2126}, {0x2128, 0x2128}, {0x212a, 0x2139}, {0x213c, 0x213f},
69
+ {0x2145, 0x2149}, {0x214e, 0x214e}, {0x2160, 0x2188}, {0x2c00, 0x2ce4},
70
+ {0x2ceb, 0x2cee}, {0x2cf2, 0x2cf3}, {0x2d00, 0x2d25}, {0x2d27, 0x2d27},
71
+ {0x2d2d, 0x2d2d}, {0x2d30, 0x2d67}, {0x2d6f, 0x2d6f}, {0x2d80, 0x2d96},
72
+ {0x2da0, 0x2da6}, {0x2da8, 0x2dae}, {0x2db0, 0x2db6}, {0x2db8, 0x2dbe},
73
+ {0x2dc0, 0x2dc6}, {0x2dc8, 0x2dce}, {0x2dd0, 0x2dd6}, {0x2dd8, 0x2dde},
74
+ {0x3005, 0x3007}, {0x3021, 0x3029}, {0x3031, 0x3035}, {0x3038, 0x303c},
75
+ {0x3041, 0x3096}, {0x309b, 0x309f}, {0x30a1, 0x30fa}, {0x30fc, 0x30ff},
76
+ {0x3105, 0x312f}, {0x3131, 0x318e}, {0x31a0, 0x31bf}, {0x31f0, 0x31ff},
77
+ {0x3400, 0x4dbf}, {0x4e00, 0xa48c}, {0xa4d0, 0xa4fd}, {0xa500, 0xa60c},
78
+ {0xa610, 0xa61f}, {0xa62a, 0xa62b}, {0xa640, 0xa66e}, {0xa67f, 0xa69d},
79
+ {0xa6a0, 0xa6ef}, {0xa717, 0xa71f}, {0xa722, 0xa788}, {0xa78b, 0xa7dc},
80
+ {0xa7f1, 0xa801}, {0xa803, 0xa805}, {0xa807, 0xa80a}, {0xa80c, 0xa822},
81
+ {0xa840, 0xa873}, {0xa882, 0xa8b3}, {0xa8f2, 0xa8f7}, {0xa8fb, 0xa8fb},
82
+ {0xa8fd, 0xa8fe}, {0xa90a, 0xa925}, {0xa930, 0xa946}, {0xa960, 0xa97c},
83
+ {0xa984, 0xa9b2}, {0xa9cf, 0xa9cf}, {0xa9e0, 0xa9e4}, {0xa9e6, 0xa9ef},
84
+ {0xa9fa, 0xa9fe}, {0xaa00, 0xaa28}, {0xaa40, 0xaa42}, {0xaa44, 0xaa4b},
85
+ {0xaa60, 0xaa76}, {0xaa7a, 0xaa7a}, {0xaa7e, 0xaaaf}, {0xaab1, 0xaab1},
86
+ {0xaab5, 0xaab6}, {0xaab9, 0xaabd}, {0xaac0, 0xaac0}, {0xaac2, 0xaac2},
87
+ {0xaadb, 0xaadd}, {0xaae0, 0xaaea}, {0xaaf2, 0xaaf4}, {0xab01, 0xab06},
88
+ {0xab09, 0xab0e}, {0xab11, 0xab16}, {0xab20, 0xab26}, {0xab28, 0xab2e},
89
+ {0xab30, 0xab5a}, {0xab5c, 0xab69}, {0xab70, 0xabe2}, {0xac00, 0xd7a3},
90
+ {0xd7b0, 0xd7c6}, {0xd7cb, 0xd7fb}, {0xf900, 0xfa6d}, {0xfa70, 0xfad9},
91
+ {0xfb00, 0xfb06}, {0xfb13, 0xfb17}, {0xfb1d, 0xfb1d}, {0xfb1f, 0xfb28},
92
+ {0xfb2a, 0xfb36}, {0xfb38, 0xfb3c}, {0xfb3e, 0xfb3e}, {0xfb40, 0xfb41},
93
+ {0xfb43, 0xfb44}, {0xfb46, 0xfbb1}, {0xfbd3, 0xfd3d}, {0xfd50, 0xfd8f},
94
+ {0xfd92, 0xfdc7}, {0xfdf0, 0xfdfb}, {0xfe70, 0xfe74}, {0xfe76, 0xfefc},
95
+ {0xff21, 0xff3a}, {0xff41, 0xff5a}, {0xff66, 0xffbe}, {0xffc2, 0xffc7},
96
+ {0xffca, 0xffcf}, {0xffd2, 0xffd7}, {0xffda, 0xffdc}, {0x10000, 0x1000b},
97
+ {0x1000d, 0x10026}, {0x10028, 0x1003a}, {0x1003c, 0x1003d}, {0x1003f, 0x1004d},
98
+ {0x10050, 0x1005d}, {0x10080, 0x100fa}, {0x10140, 0x10174}, {0x10280, 0x1029c},
99
+ {0x102a0, 0x102d0}, {0x10300, 0x1031f}, {0x1032d, 0x1034a}, {0x10350, 0x10375},
100
+ {0x10380, 0x1039d}, {0x103a0, 0x103c3}, {0x103c8, 0x103cf}, {0x103d1, 0x103d5},
101
+ {0x10400, 0x1049d}, {0x104b0, 0x104d3}, {0x104d8, 0x104fb}, {0x10500, 0x10527},
102
+ {0x10530, 0x10563}, {0x10570, 0x1057a}, {0x1057c, 0x1058a}, {0x1058c, 0x10592},
103
+ {0x10594, 0x10595}, {0x10597, 0x105a1}, {0x105a3, 0x105b1}, {0x105b3, 0x105b9},
104
+ {0x105bb, 0x105bc}, {0x105c0, 0x105f3}, {0x10600, 0x10736}, {0x10740, 0x10755},
105
+ {0x10760, 0x10767}, {0x10780, 0x10785}, {0x10787, 0x107b0}, {0x107b2, 0x107ba},
106
+ {0x10800, 0x10805}, {0x10808, 0x10808}, {0x1080a, 0x10835}, {0x10837, 0x10838},
107
+ {0x1083c, 0x1083c}, {0x1083f, 0x10855}, {0x10860, 0x10876}, {0x10880, 0x1089e},
108
+ {0x108e0, 0x108f2}, {0x108f4, 0x108f5}, {0x10900, 0x10915}, {0x10920, 0x10939},
109
+ {0x10940, 0x10959}, {0x10980, 0x109b7}, {0x109be, 0x109bf}, {0x10a00, 0x10a00},
110
+ {0x10a10, 0x10a13}, {0x10a15, 0x10a17}, {0x10a19, 0x10a35}, {0x10a60, 0x10a7c},
111
+ {0x10a80, 0x10a9c}, {0x10ac0, 0x10ac7}, {0x10ac9, 0x10ae4}, {0x10b00, 0x10b35},
112
+ {0x10b40, 0x10b55}, {0x10b60, 0x10b72}, {0x10b80, 0x10b91}, {0x10c00, 0x10c48},
113
+ {0x10c80, 0x10cb2}, {0x10cc0, 0x10cf2}, {0x10d00, 0x10d23}, {0x10d4a, 0x10d65},
114
+ {0x10d6f, 0x10d85}, {0x10e80, 0x10ea9}, {0x10eb0, 0x10eb1}, {0x10ec2, 0x10ec7},
115
+ {0x10f00, 0x10f1c}, {0x10f27, 0x10f27}, {0x10f30, 0x10f45}, {0x10f70, 0x10f81},
116
+ {0x10fb0, 0x10fc4}, {0x10fe0, 0x10ff6}, {0x11003, 0x11037}, {0x11071, 0x11072},
117
+ {0x11075, 0x11075}, {0x11083, 0x110af}, {0x110d0, 0x110e8}, {0x11103, 0x11126},
118
+ {0x11144, 0x11144}, {0x11147, 0x11147}, {0x11150, 0x11172}, {0x11176, 0x11176},
119
+ {0x11183, 0x111b2}, {0x111c1, 0x111c4}, {0x111da, 0x111da}, {0x111dc, 0x111dc},
120
+ {0x11200, 0x11211}, {0x11213, 0x1122b}, {0x1123f, 0x11240}, {0x11280, 0x11286},
121
+ {0x11288, 0x11288}, {0x1128a, 0x1128d}, {0x1128f, 0x1129d}, {0x1129f, 0x112a8},
122
+ {0x112b0, 0x112de}, {0x11305, 0x1130c}, {0x1130f, 0x11310}, {0x11313, 0x11328},
123
+ {0x1132a, 0x11330}, {0x11332, 0x11333}, {0x11335, 0x11339}, {0x1133d, 0x1133d},
124
+ {0x11350, 0x11350}, {0x1135d, 0x11361}, {0x11380, 0x11389}, {0x1138b, 0x1138b},
125
+ {0x1138e, 0x1138e}, {0x11390, 0x113b5}, {0x113b7, 0x113b7}, {0x113d1, 0x113d1},
126
+ {0x113d3, 0x113d3}, {0x11400, 0x11434}, {0x11447, 0x1144a}, {0x1145f, 0x11461},
127
+ {0x11480, 0x114af}, {0x114c4, 0x114c5}, {0x114c7, 0x114c7}, {0x11580, 0x115ae},
128
+ {0x115d8, 0x115db}, {0x11600, 0x1162f}, {0x11644, 0x11644}, {0x11680, 0x116aa},
129
+ {0x116b8, 0x116b8}, {0x11700, 0x1171a}, {0x11740, 0x11746}, {0x11800, 0x1182b},
130
+ {0x118a0, 0x118df}, {0x118ff, 0x11906}, {0x11909, 0x11909}, {0x1190c, 0x11913},
131
+ {0x11915, 0x11916}, {0x11918, 0x1192f}, {0x1193f, 0x1193f}, {0x11941, 0x11941},
132
+ {0x119a0, 0x119a7}, {0x119aa, 0x119d0}, {0x119e1, 0x119e1}, {0x119e3, 0x119e3},
133
+ {0x11a00, 0x11a00}, {0x11a0b, 0x11a32}, {0x11a3a, 0x11a3a}, {0x11a50, 0x11a50},
134
+ {0x11a5c, 0x11a89}, {0x11a9d, 0x11a9d}, {0x11ab0, 0x11af8}, {0x11bc0, 0x11be0},
135
+ {0x11c00, 0x11c08}, {0x11c0a, 0x11c2e}, {0x11c40, 0x11c40}, {0x11c72, 0x11c8f},
136
+ {0x11d00, 0x11d06}, {0x11d08, 0x11d09}, {0x11d0b, 0x11d30}, {0x11d46, 0x11d46},
137
+ {0x11d60, 0x11d65}, {0x11d67, 0x11d68}, {0x11d6a, 0x11d89}, {0x11d98, 0x11d98},
138
+ {0x11db0, 0x11ddb}, {0x11ee0, 0x11ef2}, {0x11f02, 0x11f02}, {0x11f04, 0x11f10},
139
+ {0x11f12, 0x11f33}, {0x11fb0, 0x11fb0}, {0x12000, 0x12399}, {0x12400, 0x1246e},
140
+ {0x12480, 0x12543}, {0x12f90, 0x12ff0}, {0x13000, 0x1342f}, {0x13441, 0x13446},
141
+ {0x13460, 0x143fa}, {0x14400, 0x14646}, {0x16100, 0x1611d}, {0x16800, 0x16a38},
142
+ {0x16a40, 0x16a5e}, {0x16a70, 0x16abe}, {0x16ad0, 0x16aed}, {0x16b00, 0x16b2f},
143
+ {0x16b40, 0x16b43}, {0x16b63, 0x16b77}, {0x16b7d, 0x16b8f}, {0x16d40, 0x16d6c},
144
+ {0x16e40, 0x16e7f}, {0x16ea0, 0x16eb8}, {0x16ebb, 0x16ed3}, {0x16f00, 0x16f4a},
145
+ {0x16f50, 0x16f50}, {0x16f93, 0x16f9f}, {0x16fe0, 0x16fe1}, {0x16fe3, 0x16fe3},
146
+ {0x16ff2, 0x16ff6}, {0x17000, 0x18cd5}, {0x18cff, 0x18d1e}, {0x18d80, 0x18df2},
147
+ {0x1aff0, 0x1aff3}, {0x1aff5, 0x1affb}, {0x1affd, 0x1affe}, {0x1b000, 0x1b122},
148
+ {0x1b132, 0x1b132}, {0x1b150, 0x1b152}, {0x1b155, 0x1b155}, {0x1b164, 0x1b167},
149
+ {0x1b170, 0x1b2fb}, {0x1bc00, 0x1bc6a}, {0x1bc70, 0x1bc7c}, {0x1bc80, 0x1bc88},
150
+ {0x1bc90, 0x1bc99}, {0x1d400, 0x1d454}, {0x1d456, 0x1d49c}, {0x1d49e, 0x1d49f},
151
+ {0x1d4a2, 0x1d4a2}, {0x1d4a5, 0x1d4a6}, {0x1d4a9, 0x1d4ac}, {0x1d4ae, 0x1d4b9},
152
+ {0x1d4bb, 0x1d4bb}, {0x1d4bd, 0x1d4c3}, {0x1d4c5, 0x1d505}, {0x1d507, 0x1d50a},
153
+ {0x1d50d, 0x1d514}, {0x1d516, 0x1d51c}, {0x1d51e, 0x1d539}, {0x1d53b, 0x1d53e},
154
+ {0x1d540, 0x1d544}, {0x1d546, 0x1d546}, {0x1d54a, 0x1d550}, {0x1d552, 0x1d6a5},
155
+ {0x1d6a8, 0x1d6c0}, {0x1d6c2, 0x1d6da}, {0x1d6dc, 0x1d6fa}, {0x1d6fc, 0x1d714},
156
+ {0x1d716, 0x1d734}, {0x1d736, 0x1d74e}, {0x1d750, 0x1d76e}, {0x1d770, 0x1d788},
157
+ {0x1d78a, 0x1d7a8}, {0x1d7aa, 0x1d7c2}, {0x1d7c4, 0x1d7cb}, {0x1df00, 0x1df1e},
158
+ {0x1df25, 0x1df2a}, {0x1e030, 0x1e06d}, {0x1e100, 0x1e12c}, {0x1e137, 0x1e13d},
159
+ {0x1e14e, 0x1e14e}, {0x1e290, 0x1e2ad}, {0x1e2c0, 0x1e2eb}, {0x1e4d0, 0x1e4eb},
160
+ {0x1e5d0, 0x1e5ed}, {0x1e5f0, 0x1e5f0}, {0x1e6c0, 0x1e6de}, {0x1e6e0, 0x1e6e2},
161
+ {0x1e6e4, 0x1e6e5}, {0x1e6e7, 0x1e6ed}, {0x1e6f0, 0x1e6f4}, {0x1e6fe, 0x1e6ff},
162
+ {0x1e7e0, 0x1e7e6}, {0x1e7e8, 0x1e7eb}, {0x1e7ed, 0x1e7ee}, {0x1e7f0, 0x1e7fe},
163
+ {0x1e800, 0x1e8c4}, {0x1e900, 0x1e943}, {0x1e94b, 0x1e94b}, {0x1ee00, 0x1ee03},
164
+ {0x1ee05, 0x1ee1f}, {0x1ee21, 0x1ee22}, {0x1ee24, 0x1ee24}, {0x1ee27, 0x1ee27},
165
+ {0x1ee29, 0x1ee32}, {0x1ee34, 0x1ee37}, {0x1ee39, 0x1ee39}, {0x1ee3b, 0x1ee3b},
166
+ {0x1ee42, 0x1ee42}, {0x1ee47, 0x1ee47}, {0x1ee49, 0x1ee49}, {0x1ee4b, 0x1ee4b},
167
+ {0x1ee4d, 0x1ee4f}, {0x1ee51, 0x1ee52}, {0x1ee54, 0x1ee54}, {0x1ee57, 0x1ee57},
168
+ {0x1ee59, 0x1ee59}, {0x1ee5b, 0x1ee5b}, {0x1ee5d, 0x1ee5d}, {0x1ee5f, 0x1ee5f},
169
+ {0x1ee61, 0x1ee62}, {0x1ee64, 0x1ee64}, {0x1ee67, 0x1ee6a}, {0x1ee6c, 0x1ee72},
170
+ {0x1ee74, 0x1ee77}, {0x1ee79, 0x1ee7c}, {0x1ee7e, 0x1ee7e}, {0x1ee80, 0x1ee89},
171
+ {0x1ee8b, 0x1ee9b}, {0x1eea1, 0x1eea3}, {0x1eea5, 0x1eea9}, {0x1eeab, 0x1eebb},
172
+ {0x20000, 0x2a6df}, {0x2a700, 0x2b81d}, {0x2b820, 0x2cead}, {0x2ceb0, 0x2ebe0},
173
+ {0x2ebf0, 0x2ee5d}, {0x2f800, 0x2fa1d}, {0x30000, 0x3134a}, {0x31350, 0x33479},
174
+};
175
+static const uint32_t id_continue_ranges[][2] = {
176
+ {0x30, 0x39}, {0x41, 0x5a}, {0x5f, 0x5f}, {0x61, 0x7a},
177
+ {0xaa, 0xaa}, {0xb5, 0xb5}, {0xb7, 0xb7}, {0xba, 0xba},
178
+ {0xc0, 0xd6}, {0xd8, 0xf6}, {0xf8, 0x2c1}, {0x2c6, 0x2d1},
179
+ {0x2e0, 0x2e4}, {0x2ec, 0x2ec}, {0x2ee, 0x2ee}, {0x300, 0x374},
180
+ {0x376, 0x377}, {0x37a, 0x37d}, {0x37f, 0x37f}, {0x386, 0x38a},
181
+ {0x38c, 0x38c}, {0x38e, 0x3a1}, {0x3a3, 0x3f5}, {0x3f7, 0x481},
182
+ {0x483, 0x487}, {0x48a, 0x52f}, {0x531, 0x556}, {0x559, 0x559},
183
+ {0x560, 0x588}, {0x591, 0x5bd}, {0x5bf, 0x5bf}, {0x5c1, 0x5c2},
184
+ {0x5c4, 0x5c5}, {0x5c7, 0x5c7}, {0x5d0, 0x5ea}, {0x5ef, 0x5f2},
185
+ {0x610, 0x61a}, {0x620, 0x669}, {0x66e, 0x6d3}, {0x6d5, 0x6dc},
186
+ {0x6df, 0x6e8}, {0x6ea, 0x6fc}, {0x6ff, 0x6ff}, {0x710, 0x74a},
187
+ {0x74d, 0x7b1}, {0x7c0, 0x7f5}, {0x7fa, 0x7fa}, {0x7fd, 0x7fd},
188
+ {0x800, 0x82d}, {0x840, 0x85b}, {0x860, 0x86a}, {0x870, 0x887},
189
+ {0x889, 0x88f}, {0x897, 0x8e1}, {0x8e3, 0x963}, {0x966, 0x96f},
190
+ {0x971, 0x983}, {0x985, 0x98c}, {0x98f, 0x990}, {0x993, 0x9a8},
191
+ {0x9aa, 0x9b0}, {0x9b2, 0x9b2}, {0x9b6, 0x9b9}, {0x9bc, 0x9c4},
192
+ {0x9c7, 0x9c8}, {0x9cb, 0x9ce}, {0x9d7, 0x9d7}, {0x9dc, 0x9dd},
193
+ {0x9df, 0x9e3}, {0x9e6, 0x9f1}, {0x9fc, 0x9fc}, {0x9fe, 0x9fe},
194
+ {0xa01, 0xa03}, {0xa05, 0xa0a}, {0xa0f, 0xa10}, {0xa13, 0xa28},
195
+ {0xa2a, 0xa30}, {0xa32, 0xa33}, {0xa35, 0xa36}, {0xa38, 0xa39},
196
+ {0xa3c, 0xa3c}, {0xa3e, 0xa42}, {0xa47, 0xa48}, {0xa4b, 0xa4d},
197
+ {0xa51, 0xa51}, {0xa59, 0xa5c}, {0xa5e, 0xa5e}, {0xa66, 0xa75},
198
+ {0xa81, 0xa83}, {0xa85, 0xa8d}, {0xa8f, 0xa91}, {0xa93, 0xaa8},
199
+ {0xaaa, 0xab0}, {0xab2, 0xab3}, {0xab5, 0xab9}, {0xabc, 0xac5},
200
+ {0xac7, 0xac9}, {0xacb, 0xacd}, {0xad0, 0xad0}, {0xae0, 0xae3},
201
+ {0xae6, 0xaef}, {0xaf9, 0xaff}, {0xb01, 0xb03}, {0xb05, 0xb0c},
202
+ {0xb0f, 0xb10}, {0xb13, 0xb28}, {0xb2a, 0xb30}, {0xb32, 0xb33},
203
+ {0xb35, 0xb39}, {0xb3c, 0xb44}, {0xb47, 0xb48}, {0xb4b, 0xb4d},
204
+ {0xb55, 0xb57}, {0xb5c, 0xb5d}, {0xb5f, 0xb63}, {0xb66, 0xb6f},
205
+ {0xb71, 0xb71}, {0xb82, 0xb83}, {0xb85, 0xb8a}, {0xb8e, 0xb90},
206
+ {0xb92, 0xb95}, {0xb99, 0xb9a}, {0xb9c, 0xb9c}, {0xb9e, 0xb9f},
207
+ {0xba3, 0xba4}, {0xba8, 0xbaa}, {0xbae, 0xbb9}, {0xbbe, 0xbc2},
208
+ {0xbc6, 0xbc8}, {0xbca, 0xbcd}, {0xbd0, 0xbd0}, {0xbd7, 0xbd7},
209
+ {0xbe6, 0xbef}, {0xc00, 0xc0c}, {0xc0e, 0xc10}, {0xc12, 0xc28},
210
+ {0xc2a, 0xc39}, {0xc3c, 0xc44}, {0xc46, 0xc48}, {0xc4a, 0xc4d},
211
+ {0xc55, 0xc56}, {0xc58, 0xc5a}, {0xc5c, 0xc5d}, {0xc60, 0xc63},
212
+ {0xc66, 0xc6f}, {0xc80, 0xc83}, {0xc85, 0xc8c}, {0xc8e, 0xc90},
213
+ {0xc92, 0xca8}, {0xcaa, 0xcb3}, {0xcb5, 0xcb9}, {0xcbc, 0xcc4},
214
+ {0xcc6, 0xcc8}, {0xcca, 0xccd}, {0xcd5, 0xcd6}, {0xcdc, 0xcde},
215
+ {0xce0, 0xce3}, {0xce6, 0xcef}, {0xcf1, 0xcf3}, {0xd00, 0xd0c},
216
+ {0xd0e, 0xd10}, {0xd12, 0xd44}, {0xd46, 0xd48}, {0xd4a, 0xd4e},
217
+ {0xd54, 0xd57}, {0xd5f, 0xd63}, {0xd66, 0xd6f}, {0xd7a, 0xd7f},
218
+ {0xd81, 0xd83}, {0xd85, 0xd96}, {0xd9a, 0xdb1}, {0xdb3, 0xdbb},
219
+ {0xdbd, 0xdbd}, {0xdc0, 0xdc6}, {0xdca, 0xdca}, {0xdcf, 0xdd4},
220
+ {0xdd6, 0xdd6}, {0xdd8, 0xddf}, {0xde6, 0xdef}, {0xdf2, 0xdf3},
221
+ {0xe01, 0xe3a}, {0xe40, 0xe4e}, {0xe50, 0xe59}, {0xe81, 0xe82},
222
+ {0xe84, 0xe84}, {0xe86, 0xe8a}, {0xe8c, 0xea3}, {0xea5, 0xea5},
223
+ {0xea7, 0xebd}, {0xec0, 0xec4}, {0xec6, 0xec6}, {0xec8, 0xece},
224
+ {0xed0, 0xed9}, {0xedc, 0xedf}, {0xf00, 0xf00}, {0xf18, 0xf19},
225
+ {0xf20, 0xf29}, {0xf35, 0xf35}, {0xf37, 0xf37}, {0xf39, 0xf39},
226
+ {0xf3e, 0xf47}, {0xf49, 0xf6c}, {0xf71, 0xf84}, {0xf86, 0xf97},
227
+ {0xf99, 0xfbc}, {0xfc6, 0xfc6}, {0x1000, 0x1049}, {0x1050, 0x109d},
228
+ {0x10a0, 0x10c5}, {0x10c7, 0x10c7}, {0x10cd, 0x10cd}, {0x10d0, 0x10fa},
229
+ {0x10fc, 0x1248}, {0x124a, 0x124d}, {0x1250, 0x1256}, {0x1258, 0x1258},
230
+ {0x125a, 0x125d}, {0x1260, 0x1288}, {0x128a, 0x128d}, {0x1290, 0x12b0},
231
+ {0x12b2, 0x12b5}, {0x12b8, 0x12be}, {0x12c0, 0x12c0}, {0x12c2, 0x12c5},
232
+ {0x12c8, 0x12d6}, {0x12d8, 0x1310}, {0x1312, 0x1315}, {0x1318, 0x135a},
233
+ {0x135d, 0x135f}, {0x1369, 0x1371}, {0x1380, 0x138f}, {0x13a0, 0x13f5},
234
+ {0x13f8, 0x13fd}, {0x1401, 0x166c}, {0x166f, 0x167f}, {0x1681, 0x169a},
235
+ {0x16a0, 0x16ea}, {0x16ee, 0x16f8}, {0x1700, 0x1715}, {0x171f, 0x1734},
236
+ {0x1740, 0x1753}, {0x1760, 0x176c}, {0x176e, 0x1770}, {0x1772, 0x1773},
237
+ {0x1780, 0x17d3}, {0x17d7, 0x17d7}, {0x17dc, 0x17dd}, {0x17e0, 0x17e9},
238
+ {0x180b, 0x180d}, {0x180f, 0x1819}, {0x1820, 0x1878}, {0x1880, 0x18aa},
239
+ {0x18b0, 0x18f5}, {0x1900, 0x191e}, {0x1920, 0x192b}, {0x1930, 0x193b},
240
+ {0x1946, 0x196d}, {0x1970, 0x1974}, {0x1980, 0x19ab}, {0x19b0, 0x19c9},
241
+ {0x19d0, 0x19da}, {0x1a00, 0x1a1b}, {0x1a20, 0x1a5e}, {0x1a60, 0x1a7c},
242
+ {0x1a7f, 0x1a89}, {0x1a90, 0x1a99}, {0x1aa7, 0x1aa7}, {0x1ab0, 0x1abd},
243
+ {0x1abf, 0x1add}, {0x1ae0, 0x1aeb}, {0x1b00, 0x1b4c}, {0x1b50, 0x1b59},
244
+ {0x1b6b, 0x1b73}, {0x1b80, 0x1bf3}, {0x1c00, 0x1c37}, {0x1c40, 0x1c49},
245
+ {0x1c4d, 0x1c7d}, {0x1c80, 0x1c8a}, {0x1c90, 0x1cba}, {0x1cbd, 0x1cbf},
246
+ {0x1cd0, 0x1cd2}, {0x1cd4, 0x1cfa}, {0x1d00, 0x1f15}, {0x1f18, 0x1f1d},
247
+ {0x1f20, 0x1f45}, {0x1f48, 0x1f4d}, {0x1f50, 0x1f57}, {0x1f59, 0x1f59},
248
+ {0x1f5b, 0x1f5b}, {0x1f5d, 0x1f5d}, {0x1f5f, 0x1f7d}, {0x1f80, 0x1fb4},
249
+ {0x1fb6, 0x1fbc}, {0x1fbe, 0x1fbe}, {0x1fc2, 0x1fc4}, {0x1fc6, 0x1fcc},
250
+ {0x1fd0, 0x1fd3}, {0x1fd6, 0x1fdb}, {0x1fe0, 0x1fec}, {0x1ff2, 0x1ff4},
251
+ {0x1ff6, 0x1ffc}, {0x200c, 0x200d}, {0x203f, 0x2040}, {0x2054, 0x2054},
252
+ {0x2071, 0x2071}, {0x207f, 0x207f}, {0x2090, 0x209c}, {0x20d0, 0x20dc},
253
+ {0x20e1, 0x20e1}, {0x20e5, 0x20f0}, {0x2102, 0x2102}, {0x2107, 0x2107},
254
+ {0x210a, 0x2113}, {0x2115, 0x2115}, {0x2118, 0x211d}, {0x2124, 0x2124},
255
+ {0x2126, 0x2126}, {0x2128, 0x2128}, {0x212a, 0x2139}, {0x213c, 0x213f},
256
+ {0x2145, 0x2149}, {0x214e, 0x214e}, {0x2160, 0x2188}, {0x2c00, 0x2ce4},
257
+ {0x2ceb, 0x2cf3}, {0x2d00, 0x2d25}, {0x2d27, 0x2d27}, {0x2d2d, 0x2d2d},
258
+ {0x2d30, 0x2d67}, {0x2d6f, 0x2d6f}, {0x2d7f, 0x2d96}, {0x2da0, 0x2da6},
259
+ {0x2da8, 0x2dae}, {0x2db0, 0x2db6}, {0x2db8, 0x2dbe}, {0x2dc0, 0x2dc6},
260
+ {0x2dc8, 0x2dce}, {0x2dd0, 0x2dd6}, {0x2dd8, 0x2dde}, {0x2de0, 0x2dff},
261
+ {0x3005, 0x3007}, {0x3021, 0x302f}, {0x3031, 0x3035}, {0x3038, 0x303c},
262
+ {0x3041, 0x3096}, {0x3099, 0x309f}, {0x30a1, 0x30ff}, {0x3105, 0x312f},
263
+ {0x3131, 0x318e}, {0x31a0, 0x31bf}, {0x31f0, 0x31ff}, {0x3400, 0x4dbf},
264
+ {0x4e00, 0xa48c}, {0xa4d0, 0xa4fd}, {0xa500, 0xa60c}, {0xa610, 0xa62b},
265
+ {0xa640, 0xa66f}, {0xa674, 0xa67d}, {0xa67f, 0xa6f1}, {0xa717, 0xa71f},
266
+ {0xa722, 0xa788}, {0xa78b, 0xa7dc}, {0xa7f1, 0xa827}, {0xa82c, 0xa82c},
267
+ {0xa840, 0xa873}, {0xa880, 0xa8c5}, {0xa8d0, 0xa8d9}, {0xa8e0, 0xa8f7},
268
+ {0xa8fb, 0xa8fb}, {0xa8fd, 0xa92d}, {0xa930, 0xa953}, {0xa960, 0xa97c},
269
+ {0xa980, 0xa9c0}, {0xa9cf, 0xa9d9}, {0xa9e0, 0xa9fe}, {0xaa00, 0xaa36},
270
+ {0xaa40, 0xaa4d}, {0xaa50, 0xaa59}, {0xaa60, 0xaa76}, {0xaa7a, 0xaac2},
271
+ {0xaadb, 0xaadd}, {0xaae0, 0xaaef}, {0xaaf2, 0xaaf6}, {0xab01, 0xab06},
272
+ {0xab09, 0xab0e}, {0xab11, 0xab16}, {0xab20, 0xab26}, {0xab28, 0xab2e},
273
+ {0xab30, 0xab5a}, {0xab5c, 0xab69}, {0xab70, 0xabea}, {0xabec, 0xabed},
274
+ {0xabf0, 0xabf9}, {0xac00, 0xd7a3}, {0xd7b0, 0xd7c6}, {0xd7cb, 0xd7fb},
275
+ {0xf900, 0xfa6d}, {0xfa70, 0xfad9}, {0xfb00, 0xfb06}, {0xfb13, 0xfb17},
276
+ {0xfb1d, 0xfb28}, {0xfb2a, 0xfb36}, {0xfb38, 0xfb3c}, {0xfb3e, 0xfb3e},
277
+ {0xfb40, 0xfb41}, {0xfb43, 0xfb44}, {0xfb46, 0xfbb1}, {0xfbd3, 0xfd3d},
278
+ {0xfd50, 0xfd8f}, {0xfd92, 0xfdc7}, {0xfdf0, 0xfdfb}, {0xfe00, 0xfe0f},
279
+ {0xfe20, 0xfe2f}, {0xfe33, 0xfe34}, {0xfe4d, 0xfe4f}, {0xfe70, 0xfe74},
280
+ {0xfe76, 0xfefc}, {0xff10, 0xff19}, {0xff21, 0xff3a}, {0xff3f, 0xff3f},
281
+ {0xff41, 0xff5a}, {0xff65, 0xffbe}, {0xffc2, 0xffc7}, {0xffca, 0xffcf},
282
+ {0xffd2, 0xffd7}, {0xffda, 0xffdc}, {0x10000, 0x1000b}, {0x1000d, 0x10026},
283
+ {0x10028, 0x1003a}, {0x1003c, 0x1003d}, {0x1003f, 0x1004d}, {0x10050, 0x1005d},
284
+ {0x10080, 0x100fa}, {0x10140, 0x10174}, {0x101fd, 0x101fd}, {0x10280, 0x1029c},
285
+ {0x102a0, 0x102d0}, {0x102e0, 0x102e0}, {0x10300, 0x1031f}, {0x1032d, 0x1034a},
286
+ {0x10350, 0x1037a}, {0x10380, 0x1039d}, {0x103a0, 0x103c3}, {0x103c8, 0x103cf},
287
+ {0x103d1, 0x103d5}, {0x10400, 0x1049d}, {0x104a0, 0x104a9}, {0x104b0, 0x104d3},
288
+ {0x104d8, 0x104fb}, {0x10500, 0x10527}, {0x10530, 0x10563}, {0x10570, 0x1057a},
289
+ {0x1057c, 0x1058a}, {0x1058c, 0x10592}, {0x10594, 0x10595}, {0x10597, 0x105a1},
290
+ {0x105a3, 0x105b1}, {0x105b3, 0x105b9}, {0x105bb, 0x105bc}, {0x105c0, 0x105f3},
291
+ {0x10600, 0x10736}, {0x10740, 0x10755}, {0x10760, 0x10767}, {0x10780, 0x10785},
292
+ {0x10787, 0x107b0}, {0x107b2, 0x107ba}, {0x10800, 0x10805}, {0x10808, 0x10808},
293
+ {0x1080a, 0x10835}, {0x10837, 0x10838}, {0x1083c, 0x1083c}, {0x1083f, 0x10855},
294
+ {0x10860, 0x10876}, {0x10880, 0x1089e}, {0x108e0, 0x108f2}, {0x108f4, 0x108f5},
295
+ {0x10900, 0x10915}, {0x10920, 0x10939}, {0x10940, 0x10959}, {0x10980, 0x109b7},
296
+ {0x109be, 0x109bf}, {0x10a00, 0x10a03}, {0x10a05, 0x10a06}, {0x10a0c, 0x10a13},
297
+ {0x10a15, 0x10a17}, {0x10a19, 0x10a35}, {0x10a38, 0x10a3a}, {0x10a3f, 0x10a3f},
298
+ {0x10a60, 0x10a7c}, {0x10a80, 0x10a9c}, {0x10ac0, 0x10ac7}, {0x10ac9, 0x10ae6},
299
+ {0x10b00, 0x10b35}, {0x10b40, 0x10b55}, {0x10b60, 0x10b72}, {0x10b80, 0x10b91},
300
+ {0x10c00, 0x10c48}, {0x10c80, 0x10cb2}, {0x10cc0, 0x10cf2}, {0x10d00, 0x10d27},
301
+ {0x10d30, 0x10d39}, {0x10d40, 0x10d65}, {0x10d69, 0x10d6d}, {0x10d6f, 0x10d85},
302
+ {0x10e80, 0x10ea9}, {0x10eab, 0x10eac}, {0x10eb0, 0x10eb1}, {0x10ec2, 0x10ec7},
303
+ {0x10efa, 0x10f1c}, {0x10f27, 0x10f27}, {0x10f30, 0x10f50}, {0x10f70, 0x10f85},
304
+ {0x10fb0, 0x10fc4}, {0x10fe0, 0x10ff6}, {0x11000, 0x11046}, {0x11066, 0x11075},
305
+ {0x1107f, 0x110ba}, {0x110c2, 0x110c2}, {0x110d0, 0x110e8}, {0x110f0, 0x110f9},
306
+ {0x11100, 0x11134}, {0x11136, 0x1113f}, {0x11144, 0x11147}, {0x11150, 0x11173},
307
+ {0x11176, 0x11176}, {0x11180, 0x111c4}, {0x111c9, 0x111cc}, {0x111ce, 0x111da},
308
+ {0x111dc, 0x111dc}, {0x11200, 0x11211}, {0x11213, 0x11237}, {0x1123e, 0x11241},
309
+ {0x11280, 0x11286}, {0x11288, 0x11288}, {0x1128a, 0x1128d}, {0x1128f, 0x1129d},
310
+ {0x1129f, 0x112a8}, {0x112b0, 0x112ea}, {0x112f0, 0x112f9}, {0x11300, 0x11303},
311
+ {0x11305, 0x1130c}, {0x1130f, 0x11310}, {0x11313, 0x11328}, {0x1132a, 0x11330},
312
+ {0x11332, 0x11333}, {0x11335, 0x11339}, {0x1133b, 0x11344}, {0x11347, 0x11348},
313
+ {0x1134b, 0x1134d}, {0x11350, 0x11350}, {0x11357, 0x11357}, {0x1135d, 0x11363},
314
+ {0x11366, 0x1136c}, {0x11370, 0x11374}, {0x11380, 0x11389}, {0x1138b, 0x1138b},
315
+ {0x1138e, 0x1138e}, {0x11390, 0x113b5}, {0x113b7, 0x113c0}, {0x113c2, 0x113c2},
316
+ {0x113c5, 0x113c5}, {0x113c7, 0x113ca}, {0x113cc, 0x113d3}, {0x113e1, 0x113e2},
317
+ {0x11400, 0x1144a}, {0x11450, 0x11459}, {0x1145e, 0x11461}, {0x11480, 0x114c5},
318
+ {0x114c7, 0x114c7}, {0x114d0, 0x114d9}, {0x11580, 0x115b5}, {0x115b8, 0x115c0},
319
+ {0x115d8, 0x115dd}, {0x11600, 0x11640}, {0x11644, 0x11644}, {0x11650, 0x11659},
320
+ {0x11680, 0x116b8}, {0x116c0, 0x116c9}, {0x116d0, 0x116e3}, {0x11700, 0x1171a},
321
+ {0x1171d, 0x1172b}, {0x11730, 0x11739}, {0x11740, 0x11746}, {0x11800, 0x1183a},
322
+ {0x118a0, 0x118e9}, {0x118ff, 0x11906}, {0x11909, 0x11909}, {0x1190c, 0x11913},
323
+ {0x11915, 0x11916}, {0x11918, 0x11935}, {0x11937, 0x11938}, {0x1193b, 0x11943},
324
+ {0x11950, 0x11959}, {0x119a0, 0x119a7}, {0x119aa, 0x119d7}, {0x119da, 0x119e1},
325
+ {0x119e3, 0x119e4}, {0x11a00, 0x11a3e}, {0x11a47, 0x11a47}, {0x11a50, 0x11a99},
326
+ {0x11a9d, 0x11a9d}, {0x11ab0, 0x11af8}, {0x11b60, 0x11b67}, {0x11bc0, 0x11be0},
327
+ {0x11bf0, 0x11bf9}, {0x11c00, 0x11c08}, {0x11c0a, 0x11c36}, {0x11c38, 0x11c40},
328
+ {0x11c50, 0x11c59}, {0x11c72, 0x11c8f}, {0x11c92, 0x11ca7}, {0x11ca9, 0x11cb6},
329
+ {0x11d00, 0x11d06}, {0x11d08, 0x11d09}, {0x11d0b, 0x11d36}, {0x11d3a, 0x11d3a},
330
+ {0x11d3c, 0x11d3d}, {0x11d3f, 0x11d47}, {0x11d50, 0x11d59}, {0x11d60, 0x11d65},
331
+ {0x11d67, 0x11d68}, {0x11d6a, 0x11d8e}, {0x11d90, 0x11d91}, {0x11d93, 0x11d98},
332
+ {0x11da0, 0x11da9}, {0x11db0, 0x11ddb}, {0x11de0, 0x11de9}, {0x11ee0, 0x11ef6},
333
+ {0x11f00, 0x11f10}, {0x11f12, 0x11f3a}, {0x11f3e, 0x11f42}, {0x11f50, 0x11f5a},
334
+ {0x11fb0, 0x11fb0}, {0x12000, 0x12399}, {0x12400, 0x1246e}, {0x12480, 0x12543},
335
+ {0x12f90, 0x12ff0}, {0x13000, 0x1342f}, {0x13440, 0x13455}, {0x13460, 0x143fa},
336
+ {0x14400, 0x14646}, {0x16100, 0x16139}, {0x16800, 0x16a38}, {0x16a40, 0x16a5e},
337
+ {0x16a60, 0x16a69}, {0x16a70, 0x16abe}, {0x16ac0, 0x16ac9}, {0x16ad0, 0x16aed},
338
+ {0x16af0, 0x16af4}, {0x16b00, 0x16b36}, {0x16b40, 0x16b43}, {0x16b50, 0x16b59},
339
+ {0x16b63, 0x16b77}, {0x16b7d, 0x16b8f}, {0x16d40, 0x16d6c}, {0x16d70, 0x16d79},
340
+ {0x16e40, 0x16e7f}, {0x16ea0, 0x16eb8}, {0x16ebb, 0x16ed3}, {0x16f00, 0x16f4a},
341
+ {0x16f4f, 0x16f87}, {0x16f8f, 0x16f9f}, {0x16fe0, 0x16fe1}, {0x16fe3, 0x16fe4},
342
+ {0x16ff0, 0x16ff6}, {0x17000, 0x18cd5}, {0x18cff, 0x18d1e}, {0x18d80, 0x18df2},
343
+ {0x1aff0, 0x1aff3}, {0x1aff5, 0x1affb}, {0x1affd, 0x1affe}, {0x1b000, 0x1b122},
344
+ {0x1b132, 0x1b132}, {0x1b150, 0x1b152}, {0x1b155, 0x1b155}, {0x1b164, 0x1b167},
345
+ {0x1b170, 0x1b2fb}, {0x1bc00, 0x1bc6a}, {0x1bc70, 0x1bc7c}, {0x1bc80, 0x1bc88},
346
+ {0x1bc90, 0x1bc99}, {0x1bc9d, 0x1bc9e}, {0x1ccf0, 0x1ccf9}, {0x1cf00, 0x1cf2d},
347
+ {0x1cf30, 0x1cf46}, {0x1d165, 0x1d169}, {0x1d16d, 0x1d172}, {0x1d17b, 0x1d182},
348
+ {0x1d185, 0x1d18b}, {0x1d1aa, 0x1d1ad}, {0x1d242, 0x1d244}, {0x1d400, 0x1d454},
349
+ {0x1d456, 0x1d49c}, {0x1d49e, 0x1d49f}, {0x1d4a2, 0x1d4a2}, {0x1d4a5, 0x1d4a6},
350
+ {0x1d4a9, 0x1d4ac}, {0x1d4ae, 0x1d4b9}, {0x1d4bb, 0x1d4bb}, {0x1d4bd, 0x1d4c3},
351
+ {0x1d4c5, 0x1d505}, {0x1d507, 0x1d50a}, {0x1d50d, 0x1d514}, {0x1d516, 0x1d51c},
352
+ {0x1d51e, 0x1d539}, {0x1d53b, 0x1d53e}, {0x1d540, 0x1d544}, {0x1d546, 0x1d546},
353
+ {0x1d54a, 0x1d550}, {0x1d552, 0x1d6a5}, {0x1d6a8, 0x1d6c0}, {0x1d6c2, 0x1d6da},
354
+ {0x1d6dc, 0x1d6fa}, {0x1d6fc, 0x1d714}, {0x1d716, 0x1d734}, {0x1d736, 0x1d74e},
355
+ {0x1d750, 0x1d76e}, {0x1d770, 0x1d788}, {0x1d78a, 0x1d7a8}, {0x1d7aa, 0x1d7c2},
356
+ {0x1d7c4, 0x1d7cb}, {0x1d7ce, 0x1d7ff}, {0x1da00, 0x1da36}, {0x1da3b, 0x1da6c},
357
+ {0x1da75, 0x1da75}, {0x1da84, 0x1da84}, {0x1da9b, 0x1da9f}, {0x1daa1, 0x1daaf},
358
+ {0x1df00, 0x1df1e}, {0x1df25, 0x1df2a}, {0x1e000, 0x1e006}, {0x1e008, 0x1e018},
359
+ {0x1e01b, 0x1e021}, {0x1e023, 0x1e024}, {0x1e026, 0x1e02a}, {0x1e030, 0x1e06d},
360
+ {0x1e08f, 0x1e08f}, {0x1e100, 0x1e12c}, {0x1e130, 0x1e13d}, {0x1e140, 0x1e149},
361
+ {0x1e14e, 0x1e14e}, {0x1e290, 0x1e2ae}, {0x1e2c0, 0x1e2f9}, {0x1e4d0, 0x1e4f9},
362
+ {0x1e5d0, 0x1e5fa}, {0x1e6c0, 0x1e6de}, {0x1e6e0, 0x1e6f5}, {0x1e6fe, 0x1e6ff},
363
+ {0x1e7e0, 0x1e7e6}, {0x1e7e8, 0x1e7eb}, {0x1e7ed, 0x1e7ee}, {0x1e7f0, 0x1e7fe},
364
+ {0x1e800, 0x1e8c4}, {0x1e8d0, 0x1e8d6}, {0x1e900, 0x1e94b}, {0x1e950, 0x1e959},
365
+ {0x1ee00, 0x1ee03}, {0x1ee05, 0x1ee1f}, {0x1ee21, 0x1ee22}, {0x1ee24, 0x1ee24},
366
+ {0x1ee27, 0x1ee27}, {0x1ee29, 0x1ee32}, {0x1ee34, 0x1ee37}, {0x1ee39, 0x1ee39},
367
+ {0x1ee3b, 0x1ee3b}, {0x1ee42, 0x1ee42}, {0x1ee47, 0x1ee47}, {0x1ee49, 0x1ee49},
368
+ {0x1ee4b, 0x1ee4b}, {0x1ee4d, 0x1ee4f}, {0x1ee51, 0x1ee52}, {0x1ee54, 0x1ee54},
369
+ {0x1ee57, 0x1ee57}, {0x1ee59, 0x1ee59}, {0x1ee5b, 0x1ee5b}, {0x1ee5d, 0x1ee5d},
370
+ {0x1ee5f, 0x1ee5f}, {0x1ee61, 0x1ee62}, {0x1ee64, 0x1ee64}, {0x1ee67, 0x1ee6a},
371
+ {0x1ee6c, 0x1ee72}, {0x1ee74, 0x1ee77}, {0x1ee79, 0x1ee7c}, {0x1ee7e, 0x1ee7e},
372
+ {0x1ee80, 0x1ee89}, {0x1ee8b, 0x1ee9b}, {0x1eea1, 0x1eea3}, {0x1eea5, 0x1eea9},
373
+ {0x1eeab, 0x1eebb}, {0x1fbf0, 0x1fbf9}, {0x20000, 0x2a6df}, {0x2a700, 0x2b81d},
374
+ {0x2b820, 0x2cead}, {0x2ceb0, 0x2ebe0}, {0x2ebf0, 0x2ee5d}, {0x2f800, 0x2fa1d},
375
+ {0x30000, 0x3134a}, {0x31350, 0x33479}, {0xe0100, 0xe01ef},
376
+};
apps/mobile/modules/t3-highlights/cpp/t3_highlights.c
new
+139
@@ -0,0 +1,139 @@
1
+#include "t3_highlights.h"
2
+
3
+#include <stdbool.h>
4
+#include <string.h>
5
+
6
+#include "highlights.h"
7
+#include "wasm-rt-impl.h"
8
+
9
+// The control block and buffer layout mirror the JavaScript glue in
10
+// @pierre/highlights (`HighlightsHighlighter` in dist/highlighter.js).
11
+#define INPUT_OFFSET WASM_DEFAULT_PAGE_SIZE
12
+#define INPUT_PADDING 96u
13
+#define MODE_UTF16_LINE_RECORDS 3u
14
+// Like the JavaScript glue, a small input after a large one gets a fresh
15
+// instance so the grown memory is released.
16
+#define RESET_AFTER_PAGES 128u
17
+
18
+struct w2c_env {
19
+ w2c_highlights* instance;
20
+};
21
+
22
+static w2c_highlights instance;
23
+static struct w2c_env env = {&instance};
24
+static bool instantiated = false;
25
+
26
+#include "generated/id_ranges.inc"
27
+
28
+static bool in_ranges(const uint32_t ranges[][2], size_t count, uint32_t code_point) {
29
+ size_t low = 0;
30
+ size_t high = count;
31
+ while (low < high) {
32
+ size_t mid = low + (high - low) / 2;
33
+ if (code_point < ranges[mid][0]) {
34
+ high = mid;
35
+ } else if (code_point > ranges[mid][1]) {
36
+ low = mid + 1;
37
+ } else {
38
+ return true;
39
+ }
40
+ }
41
+ return false;
42
+}
43
+
44
+// Decodes like the JavaScript glue, including its leniency for malformed
45
+// sequences, so both builds classify the same bytes the same way.
46
+static u32 id_class(struct w2c_env* host, u32 ptr, u32 len, bool start) {
47
+ wasm_rt_memory_t* memory = w2c_highlights_memory(host->instance);
48
+ if ((uint64_t)ptr + 4 > memory->size) return 0;
49
+ const uint8_t* b = memory->data + ptr;
50
+ uint32_t code_point;
51
+ if (len == 2) {
52
+ code_point = (uint32_t)(b[0] & 31) << 6 | (b[1] & 63);
53
+ } else if (len == 3) {
54
+ code_point = (uint32_t)(b[0] & 15) << 12 | (uint32_t)(b[1] & 63) << 6 | (b[2] & 63);
55
+ } else {
56
+ code_point = (uint32_t)(b[0] & 7) << 18 | (uint32_t)(b[1] & 63) << 12 |
57
+ (uint32_t)(b[2] & 63) << 6 | (b[3] & 63);
58
+ }
59
+ if (code_point > 0x10ffff) return 0;
60
+ return start ? in_ranges(id_start_ranges, sizeof(id_start_ranges) / sizeof(id_start_ranges[0]),
61
+ code_point)
62
+ : in_ranges(id_continue_ranges,
63
+ sizeof(id_continue_ranges) / sizeof(id_continue_ranges[0]), code_point);
64
+}
65
+
66
+u32 w2c_env_is_id_start(struct w2c_env* host, u32 ptr, u32 len) {
67
+ return id_class(host, ptr, len, true);
68
+}
69
+
70
+u32 w2c_env_is_id_continue(struct w2c_env* host, u32 ptr, u32 len) {
71
+ return id_class(host, ptr, len, false);
72
+}
73
+
74
+static void reset_instance(void) {
75
+ if (!instantiated) return;
76
+ wasm2c_highlights_free(&instance);
77
+ instantiated = false;
78
+}
79
+
80
+static void ensure_instance(void) {
81
+ if (instantiated) return;
82
+ wasm_rt_init();
83
+ wasm2c_highlights_instantiate(&instance, &env);
84
+ instantiated = true;
85
+}
86
+
87
+static void write_u32(uint8_t* at, uint32_t value) {
88
+ at[0] = value & 0xff;
89
+ at[1] = (value >> 8) & 0xff;
90
+ at[2] = (value >> 16) & 0xff;
91
+ at[3] = value >> 24;
92
+}
93
+
94
+static uint32_t read_u32(const uint8_t* at) {
95
+ return (uint32_t)at[0] | (uint32_t)at[1] << 8 | (uint32_t)at[2] << 16 | (uint32_t)at[3] << 24;
96
+}
97
+
98
+int64_t t3_highlights_tokenize(const uint8_t* source, size_t length, uint8_t language,
99
+ const uint32_t** records) {
100
+ *records = NULL;
101
+ if (length > UINT32_MAX - WASM_DEFAULT_PAGE_SIZE * 2) return -1;
102
+
103
+ if (instantiated && w2c_highlights_memory(&instance)->pages > RESET_AFTER_PAGES &&
104
+ length <= WASM_DEFAULT_PAGE_SIZE) {
105
+ reset_instance();
106
+ }
107
+ ensure_instance();
108
+
109
+ wasm_rt_memory_t* memory = w2c_highlights_memory(&instance);
110
+ uint64_t needed_pages = 1 + (length + INPUT_PADDING + WASM_DEFAULT_PAGE_SIZE - 1) / WASM_DEFAULT_PAGE_SIZE;
111
+ if (needed_pages > memory->pages &&
112
+ wasm_rt_grow_memory(memory, needed_pages - memory->pages) == (uint64_t)-1) {
113
+ return -1;
114
+ }
115
+
116
+ uint8_t* data = memory->data;
117
+ if (length > 0) memcpy(data + INPUT_OFFSET, source, length);
118
+ data[INPUT_OFFSET + length] = 0;
119
+ data[0] = language;
120
+ data[1] = MODE_UTF16_LINE_RECORDS;
121
+ write_u32(data + 2, (uint32_t)length);
122
+
123
+ // `wasm_rt_impl_try` without the exception-handling runtime this module does
124
+ // not use. A trap longjmps back here.
125
+ WASM_RT_SAVE_STACK_DEPTH();
126
+ if (WASM_RT_SETJMP(g_wasm_rt_jmp_buf) != WASM_RT_TRAP_NONE) {
127
+ reset_instance();
128
+ return -1;
129
+ }
130
+ w2c_highlights_highlight(&instance);
131
+
132
+ // The lexer can grow memory, which moves it.
133
+ data = memory->data;
134
+ uint32_t start = read_u32(data + 6);
135
+ uint32_t byte_length = read_u32(data + 10);
136
+ if ((uint64_t)start + byte_length > memory->size || start % 4 != 0) return -1;
137
+ *records = (const uint32_t*)(data + start);
138
+ return byte_length / 4;
139
+}
apps/mobile/modules/t3-highlights/cpp/t3_highlights.h
new
+27
@@ -0,0 +1,27 @@
1
+#ifndef T3_HIGHLIGHTS_H
2
+#define T3_HIGHLIGHTS_H
3
+
4
+#include <stddef.h>
5
+#include <stdint.h>
6
+
7
+#ifdef __cplusplus
8
+extern "C" {
9
+#endif
10
+
11
+/**
12
+ * Lexes UTF-8 `source` with @pierre/highlights language `language` and points
13
+ * `records` at `(endUtf16, tokenId)` pairs. A token ID of UINT32_MAX ends a
14
+ * line, and its end value is where the next line starts. The records stay
15
+ * valid until the next call. Returns the number of uint32 values, or -1 when
16
+ * the lexer could not run.
17
+ *
18
+ * Not thread-safe: callers serialize access.
19
+ */
20
+int64_t t3_highlights_tokenize(const uint8_t* source, size_t length, uint8_t language,
21
+ const uint32_t** records);
22
+
23
+#ifdef __cplusplus
24
+}
25
+#endif
26
+
27
+#endif
apps/mobile/modules/t3-highlights/expo-module.config.json
new
+10
@@ -0,0 +1,10 @@
1
+{
2
+ "platforms": ["apple", "android"],
3
+ "apple": {
4
+ "modules": ["T3HighlightsModule"],
5
+ "podspecPath": "T3HighlightsNative.podspec"
6
+ },
7
+ "android": {
8
+ "modules": ["expo.modules.t3highlights.T3HighlightsModule"]
9
+ }
10
+}
apps/mobile/modules/t3-highlights/ios/T3HighlightsModule.swift
new
+29
@@ -0,0 +1,29 @@
1
+import ExpoModulesCore
2
+
3
+public final class T3HighlightsModule: Module {
4
+ private let lock = NSLock()
5
+
6
+ public func definition() -> ModuleDefinition {
7
+ Name("T3Highlights")
8
+
9
+ Function("tokenize") { (source: String, language: Int) -> ArrayBuffer? in
10
+ var source = source
11
+ return source.withUTF8 { utf8 in
12
+ self.lock.withLock { Self.tokenize(utf8, language: language) }
13
+ }
14
+ }
15
+ }
16
+
17
+ private static func tokenize(_ utf8: UnsafeBufferPointer<UInt8>, language: Int) -> ArrayBuffer? {
18
+ guard let languageId = UInt8(exactly: language) else { return nil }
19
+ var records: UnsafePointer<UInt32>?
20
+ let count = t3_highlights_tokenize(utf8.baseAddress, utf8.count, languageId, &records)
21
+ guard count >= 0 else { return nil }
22
+ let byteCount = Int(count) * MemoryLayout<UInt32>.size
23
+ let buffer = ArrayBuffer(size: byteCount, initializeToZero: false)
24
+ if let records, byteCount > 0 {
25
+ buffer.withUnsafeMutableBytes { $0.copyMemory(from: UnsafeRawBufferPointer(start: records, count: byteCount)) }
26
+ }
27
+ return buffer
28
+ }
29
+}
apps/mobile/modules/t3-highlights/package.json
new
+17
@@ -0,0 +1,17 @@
1
+{
2
+ "name": "@t3tools/mobile-highlights-native",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "expo-module": {
6
+ "ios": {
7
+ "modules": [
8
+ "T3HighlightsModule"
9
+ ]
10
+ },
11
+ "android": {
12
+ "modules": [
13
+ "expo.modules.t3highlights.T3HighlightsModule"
14
+ ]
15
+ }
16
+ }
17
+}
apps/mobile/package.json
+3
-6
@@ -45,6 +45,7 @@
45
"sync:pierre-icons": "node scripts/sync-pierre-file-icons.mjs",
46
"measure-renders": "node scripts/measure-renders.mts",
47
"generate": "node --disable-warning=MODULE_TYPELESS_PACKAGE_JSON scripts/generate-uniwind-themes.mts",
48
+ "generate:highlights": "node scripts/generate-highlights.mts",
49
"test": "vp test run --project unit --project react",
50
"typecheck": "tsc --noEmit"
51
},
@@ -59,18 +60,16 @@
60
"@material/material-color-utilities": "0.3.0",
61
"@noble/curves": "catalog:",
62
"@pierre/diffs": "catalog:",
63
+ "@pierre/highlights": "catalog:",
64
"@react-native-ai/apple": "0.12.0",
65
"@react-native-async-storage/async-storage": "3.1.1",
66
"@react-native-menu/menu": "^2.0.0",
67
"@react-navigation/elements": "2.9.45",
68
"@react-navigation/native": "7.5.1",
69
"@react-navigation/native-stack": "7.21.0",
68
- "@shikijs/core": "4.2.0",
69
- "@shikijs/engine-javascript": "4.2.0",
70
- "@shikijs/langs": "4.2.0",
71
- "@shikijs/themes": "4.2.0",
70
"@t3tools/client-runtime": "workspace:*",
71
"@t3tools/contracts": "workspace:*",
72
+ "@t3tools/mobile-highlights-native": "file:./modules/t3-highlights",
73
"@t3tools/mobile-review-diff-native": "file:./modules/t3-review-diff",
74
"@t3tools/mobile-source-text": "file:./modules/t3-source-text",
75
"@t3tools/mobile-terminal-native": "file:./modules/t3-terminal",
@@ -136,13 +135,11 @@
135
"react-native-reanimated": "4.7.1",
136
"react-native-safe-area-context": "~5.10.1",
137
"react-native-screens": "file:deps/react-native-screens-5.0.0-t3.43.tgz",
139
- "react-native-shiki-engine": "^0.3.12",
138
"react-native-svg": "15.16.0",
139
"react-native-webview": "14.0.1",
140
"react-native-worklets": "0.13.0",
141
"remark-gfm": "catalog:",
142
"remark-parse": "catalog:",
145
- "shiki": "4.2.0",
143
"tailwind-merge": "^3.5.0",
144
"unified": "catalog:",
145
"uniwind": "1.13.0"
apps/mobile/plugins/withAndroidFbjniVersion.cjs
deleted
-46
@@ -1,46 +0,0 @@
1
-const { withProjectBuildGradle } = require("expo/config-plugins");
2
-
3
-// react-native-shiki-engine 0.3.12 asks for `com.facebook.fbjni:fbjni:+`, which Gradle
4
-// resolves to the newest release on Maven Central. That is now 0.8.x, built
5
-// with NDK 28, while React Native links the NDK 27.1 C++ runtime and requires
6
-// 0.7.0. The two disagree on libc++, so the app dies in
7
-// ReactNativeFeatureFlagsCxxInterop's static initializer before any JavaScript
8
-// runs ("cannot locate symbol __cxa_init_primary_exception").
9
-//
10
-// Keep this equal to `fbjni` in react-native/gradle/libs.versions.toml, and move
11
-// it with React Native. withAndroidFbjniVersion.test.mjs fails when they differ.
12
-const FBJNI_VERSION = "0.7.0";
13
-const MARKER = "withAndroidFbjniVersion";
14
-
15
-const BLOCKS = {
16
- groovy: `
17
-// Added by ${MARKER}: keep fbjni on the version React Native ships against.
18
-allprojects {
19
- configurations.all {
20
- resolutionStrategy.force 'com.facebook.fbjni:fbjni:${FBJNI_VERSION}'
21
- }
22
-}
23
-`,
24
- kt: `
25
-// Added by ${MARKER}: keep fbjni on the version React Native ships against.
26
-allprojects {
27
- configurations.all {
28
- resolutionStrategy.force("com.facebook.fbjni:fbjni:${FBJNI_VERSION}")
29
- }
30
-}
31
-`,
32
-};
33
-
34
-module.exports = function withAndroidFbjniVersion(config) {
35
- return withProjectBuildGradle(config, (nextConfig) => {
36
- const { contents, language } = nextConfig.modResults;
37
- const block = BLOCKS[language];
38
- if (block === undefined) {
39
- throw new Error(`${MARKER}: unsupported root build.gradle language "${language}".`);
40
- }
41
- if (!contents.includes(MARKER)) {
42
- nextConfig.modResults.contents = `${contents.trimEnd()}\n${block}`;
43
- }
44
- return nextConfig;
45
- });
46
-};
apps/mobile/plugins/withAndroidFbjniVersion.test.mjs
deleted
-109
@@ -1,109 +0,0 @@
1
-import * as NodeFS from "node:fs";
2
-import * as NodeModule from "node:module";
3
-import * as NodeOS from "node:os";
4
-import * as NodePath from "node:path";
5
-import { afterEach, describe, expect, it } from "vite-plus/test";
6
-
7
-const require = NodeModule.createRequire(import.meta.url);
8
-const { compileModsAsync } = require("expo/config-plugins");
9
-const { getConfig } = require("expo/config");
10
-const withAndroidFbjniVersion = require("./withAndroidFbjniVersion.cjs");
11
-
12
-const catalog = NodeFS.readFileSync(
13
- NodePath.join(require.resolve("react-native/package.json"), "..", "gradle", "libs.versions.toml"),
14
- "utf8",
15
-);
16
-const shippedFbjniVersion = /^fbjni\s*=\s*"([^"]+)"/m.exec(catalog)?.[1];
17
-
18
-// The root build.gradle generated by Expo SDK 58.
19
-const ROOT_BUILD_GRADLE = `// Top-level build file where you can add configuration options common to all sub-projects/modules.
20
-
21
-buildscript {
22
- repositories {
23
- google()
24
- mavenCentral()
25
- }
26
- dependencies {
27
- classpath('com.android.tools.build:gradle')
28
- classpath('com.facebook.react:react-native-gradle-plugin')
29
- def kotlinVersion = findProperty('android.kotlinVersion')
30
- classpath(kotlinVersion ? "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" : 'org.jetbrains.kotlin:kotlin-gradle-plugin')
31
- }
32
-}
33
-
34
-allprojects {
35
- repositories {
36
- google()
37
- mavenCentral()
38
- maven { url 'https://www.jitpack.io' }
39
- }
40
-}
41
-
42
-apply plugin: "expo-root-project"
43
-apply plugin: "com.facebook.react.rootproject"
44
-`;
45
-
46
-const projectRoots = [];
47
-
48
-afterEach(() => {
49
- for (const root of projectRoots.splice(0)) NodeFS.rmSync(root, { recursive: true, force: true });
50
-});
51
-
52
-/** Runs the plugin through Expo's own prebuild mod pipeline against a real file. */
53
-async function prebuildRootGradle(fileName, contents, plugin = withAndroidFbjniVersion) {
54
- const projectRoot = NodeFS.mkdtempSync(NodePath.join(NodeOS.tmpdir(), "fbjni-plugin-"));
55
- projectRoots.push(projectRoot);
56
- NodeFS.mkdirSync(NodePath.join(projectRoot, "android"));
57
- NodeFS.writeFileSync(NodePath.join(projectRoot, "android", fileName), contents);
58
- await compileModsAsync(plugin({ name: "t3", slug: "t3" }), {
59
- projectRoot,
60
- platforms: ["android"],
61
- });
62
- return NodeFS.readFileSync(NodePath.join(projectRoot, "android", fileName), "utf8");
63
-}
64
-
65
-function expectProjectWideForce(result, language = "groovy") {
66
- expect(shippedFbjniVersion).toBeDefined();
67
- const coordinate = `com.facebook.fbjni:fbjni:${shippedFbjniVersion}`;
68
- const force = language === "groovy" ? ` '${coordinate}'` : `("${coordinate}")`;
69
- // Anchor the complete top-level block, including scope, at the end of the file.
70
- const expected = `\nallprojects {\n configurations.all {\n resolutionStrategy.force${force}\n }\n}\n`;
71
- expect(result.slice(-expected.length)).toBe(expected);
72
-}
73
-
74
-describe("withAndroidFbjniVersion", () => {
75
- it("forces the React Native fbjni version for every Gradle project", async () => {
76
- const result = await prebuildRootGradle("build.gradle", ROOT_BUILD_GRADLE);
77
-
78
- expect(result.startsWith(ROOT_BUILD_GRADLE.trimEnd())).toBe(true);
79
- expectProjectWideForce(result);
80
- });
81
-
82
- it("adds the force once when prebuild runs again", async () => {
83
- const once = await prebuildRootGradle("build.gradle", ROOT_BUILD_GRADLE);
84
- const twice = await prebuildRootGradle("build.gradle", once);
85
-
86
- expect(twice).toBe(once);
87
- });
88
-
89
- // regression: #20118 fresh Android builds no longer crash on launch
90
- it("writes Kotlin syntax into a Kotlin build script", async () => {
91
- const result = await prebuildRootGradle("build.gradle.kts", "plugins {}\n");
92
-
93
- expectProjectWideForce(result, "kt");
94
- });
95
-
96
- it("applies the force through the registered app config", async () => {
97
- const { exp } = getConfig(NodePath.resolve(import.meta.dirname, ".."), {
98
- isModdedConfig: true,
99
- });
100
- const projectBuildGradle = exp.mods?.android?.projectBuildGradle;
101
- // Run the app's registered root-Gradle mods without its unrelated native-file mods.
102
- const result = await prebuildRootGradle("build.gradle", ROOT_BUILD_GRADLE, (config) => ({
103
- ...config,
104
- mods: { android: projectBuildGradle ? { projectBuildGradle } : {} },
105
- }));
106
-
107
- expectProjectWideForce(result);
108
- });
109
-});
apps/mobile/scripts/generate-highlights.mts
new
+193
@@ -0,0 +1,193 @@
1
+#!/usr/bin/env node
2
+
3
+// Regenerates the native @pierre/highlights build and its JavaScript tables.
4
+//
5
+// Hermes has no WebAssembly, so wasm2c turns the package's highlights.wasm into
6
+// C that the T3Highlights native module compiles. Token IDs and language IDs are
7
+// that build's ABI, so the language and theme tables come from the same package
8
+// version. Run after bumping @pierre/highlights:
9
+//
10
+// WASM2C=/path/to/wabt-1.0.42/bin/wasm2c vp run --filter @t3tools/mobile generate:highlights
11
+
12
+import * as NodeChildProcess from "node:child_process";
13
+import * as NodeCrypto from "node:crypto";
14
+import * as NodeFS from "node:fs";
15
+import * as NodeModule from "node:module";
16
+import * as NodeOS from "node:os";
17
+import * as NodePath from "node:path";
18
+import * as NodeURL from "node:url";
19
+
20
+const WASM2C_VERSION = "1.0.42";
21
+const THEMES = { light: "pierre-light", dark: "pierre-dark" } as const;
22
+
23
+const mobileRoot = NodePath.resolve(import.meta.dirname, "..");
24
+const moduleRoot = NodePath.join(mobileRoot, "modules/t3-highlights");
25
+const generatedDataPath = NodePath.join(mobileRoot, "src/lib/highlights.generated.ts");
26
+
27
+interface ThemeStyle {
28
+ readonly color?: string;
29
+ readonly italic?: boolean;
30
+ readonly weight?: number;
31
+}
32
+
33
+interface PreparedTheme {
34
+ readonly fg: string;
35
+ readonly styles: ReadonlyArray<ThemeStyle | null>;
36
+}
37
+
38
+function resolveHighlightsPackage() {
39
+ const require = NodeModule.createRequire(NodePath.join(mobileRoot, "package.json"));
40
+ const root = NodePath.dirname(require.resolve("@pierre/highlights/package.json"));
41
+ const { version } = JSON.parse(NodeFS.readFileSync(NodePath.join(root, "package.json"), "utf8"));
42
+ const wasm = NodeFS.readFileSync(NodePath.join(root, "dist/highlights.wasm"));
43
+ return {
44
+ root,
45
+ version: version as string,
46
+ wasmSha256: NodeCrypto.createHash("sha256").update(wasm).digest("hex"),
47
+ };
48
+}
49
+
50
+function importDist<T>(root: string, file: string): Promise<T> {
51
+ // The package exports neither its language table nor its theme resolver.
52
+ return import(NodeURL.pathToFileURL(NodePath.join(root, "dist", file)).href);
53
+}
54
+
55
+function generatedBanner(source: ReturnType<typeof resolveHighlightsPackage>): string {
56
+ return `Generated by apps/mobile/scripts/generate-highlights.mts from @pierre/highlights ${source.version} (highlights.wasm sha256 ${source.wasmSha256}). Do not edit.`;
57
+}
58
+
59
+export async function computeHighlightsData() {
60
+ const source = resolveHighlightsPackage();
61
+ const { default: languageIds } = await importDist<{ default: Record<string, number> }>(
62
+ source.root,
63
+ "languages.js",
64
+ );
65
+ const { prepareTheme } = await importDist<{ prepareTheme: (theme: unknown) => PreparedTheme }>(
66
+ source.root,
67
+ "theme.js",
68
+ );
69
+
70
+ const themeStyles: Record<string, Array<readonly [string, number]>> = {};
71
+ for (const [scheme, name] of Object.entries(THEMES)) {
72
+ const { default: theme } = await importDist<{ default: unknown }>(
73
+ source.root,
74
+ `themes/${name}.js`,
75
+ );
76
+ const { fg, styles } = prepareTheme(theme);
77
+ // Mirrors `lineRecordsToTokens`: unstyled tokens take the theme foreground.
78
+ themeStyles[scheme] = styles.map((style, tokenId) => {
79
+ const color = style?.color ?? fg;
80
+ if (!/^#[0-9a-f]{6}([0-9a-f]{2})?$/iu.test(color)) {
81
+ throw new Error(`${name} token ${tokenId} has a color React Native cannot draw: ${color}`);
82
+ }
83
+ const fontStyle = (style?.italic === true ? 1 : 0) | ((style?.weight ?? 0) >= 600 ? 2 : 0);
84
+ return [color, fontStyle] as const;
85
+ });
86
+ }
87
+
88
+ return { source, languageIds, themeStyles };
89
+}
90
+
91
+function renderHighlightsData(data: Awaited<ReturnType<typeof computeHighlightsData>>): string {
92
+ return [
93
+ `// ${generatedBanner(data.source)}`,
94
+ "",
95
+ `export const HIGHLIGHTS_LANGUAGE_IDS: Readonly<Record<string, number>> = ${JSON.stringify(data.languageIds)};`,
96
+ "",
97
+ "/** `[color, fontStyle]` by token ID. fontStyle bits: italic 1, bold 2. */",
98
+ `export const HIGHLIGHTS_THEME_STYLES: Readonly<Record<"light" | "dark", ReadonlyArray<readonly [string, number]>>> = ${JSON.stringify(data.themeStyles)};`,
99
+ "",
100
+ ].join("\n");
101
+}
102
+
103
+// The lexers ask the host whether a non-ASCII code point can start or continue
104
+// an identifier. These are the classes the JavaScript glue tests with regexes.
105
+function renderIdRanges(): string {
106
+ const classes = [
107
+ ["id_start", /^\p{ID_Start}$/u],
108
+ ["id_continue", /^[\p{ID_Continue}]$/u],
109
+ ] as const;
110
+ let out = `/* Unicode ${process.versions.unicode} identifier classes. */\n`;
111
+ for (const [name, pattern] of classes) {
112
+ const ranges: Array<[number, number]> = [];
113
+ let start = -1;
114
+ for (let codePoint = 0; codePoint <= 0x110000; codePoint += 1) {
115
+ const member =
116
+ codePoint < 0x110000 &&
117
+ (codePoint < 0xd800 || codePoint > 0xdfff) &&
118
+ pattern.test(String.fromCodePoint(codePoint));
119
+ if (member && start < 0) start = codePoint;
120
+ if (!member && start >= 0) {
121
+ ranges.push([start, codePoint - 1]);
122
+ start = -1;
123
+ }
124
+ }
125
+ out += `static const uint32_t ${name}_ranges[][2] = {\n`;
126
+ for (let index = 0; index < ranges.length; index += 4) {
127
+ const row = ranges.slice(index, index + 4);
128
+ out += ` ${row.map(([from, to]) => `{0x${from.toString(16)}, 0x${to.toString(16)}}`).join(", ")},\n`;
129
+ }
130
+ out += "};\n";
131
+ }
132
+ return out;
133
+}
134
+
135
+function resolveWasm2c(): { readonly binary: string; readonly prefix: string } {
136
+ const binary = process.env.WASM2C ?? "wasm2c";
137
+ const version = NodeChildProcess.execFileSync(binary, ["--version"], { encoding: "utf8" }).trim();
138
+ if (version !== WASM2C_VERSION) {
139
+ throw new Error(`Expected wasm2c ${WASM2C_VERSION}, found ${version}. Set WASM2C.`);
140
+ }
141
+ const resolved = NodeFS.realpathSync(
142
+ NodePath.isAbsolute(binary)
143
+ ? binary
144
+ : NodeChildProcess.execFileSync("which", [binary], { encoding: "utf8" }).trim(),
145
+ );
146
+ return { binary, prefix: NodePath.resolve(NodePath.dirname(resolved), "..") };
147
+}
148
+
149
+async function generate() {
150
+ const source = resolveHighlightsPackage();
151
+ const wasm2c = resolveWasm2c();
152
+ const scratch = NodeFS.mkdtempSync(NodePath.join(NodeOS.tmpdir(), "t3-highlights-"));
153
+ try {
154
+ NodeChildProcess.execFileSync(wasm2c.binary, [
155
+ NodePath.join(source.root, "dist/highlights.wasm"),
156
+ "-n",
157
+ "highlights",
158
+ "-o",
159
+ NodePath.join(scratch, "highlights.c"),
160
+ ]);
161
+ const banner = `/* ${generatedBanner(source)} */\n`;
162
+ for (const file of ["highlights.c", "highlights.h"]) {
163
+ const contents = NodeFS.readFileSync(NodePath.join(scratch, file), "utf8");
164
+ NodeFS.writeFileSync(NodePath.join(moduleRoot, "Vendor/highlights", file), banner + contents);
165
+ }
166
+ } finally {
167
+ NodeFS.rmSync(scratch, { recursive: true, force: true });
168
+ }
169
+
170
+ // The runtime must come from the same wabt release as the generated code.
171
+ const runtime = [
172
+ ["include/wasm-rt.h", "wasm-rt.h"],
173
+ ["share/wabt/wasm2c/wasm-rt-impl.h", "wasm-rt-impl.h"],
174
+ ["share/wabt/wasm2c/wasm-rt-impl.c", "wasm-rt-impl.c"],
175
+ ["share/wabt/wasm2c/wasm-rt-impl-tableops.inc", "wasm-rt-impl-tableops.inc"],
176
+ ["share/wabt/wasm2c/wasm-rt-mem-impl.c", "wasm-rt-mem-impl.c"],
177
+ ["share/wabt/wasm2c/wasm-rt-mem-impl-helper.inc", "wasm-rt-mem-impl-helper.inc"],
178
+ ] as const;
179
+ for (const [from, to] of runtime) {
180
+ NodeFS.copyFileSync(
181
+ NodePath.join(wasm2c.prefix, from),
182
+ NodePath.join(moduleRoot, "Vendor/wasm2c", to),
183
+ );
184
+ }
185
+
186
+ NodeFS.writeFileSync(NodePath.join(moduleRoot, "cpp/generated/id_ranges.inc"), renderIdRanges());
187
+ NodeFS.writeFileSync(generatedDataPath, renderHighlightsData(await computeHighlightsData()));
188
+ NodeChildProcess.execFileSync("vp", ["fmt", generatedDataPath], { stdio: "inherit" });
189
+}
190
+
191
+if (import.meta.main) {
192
+ await generate();
193
+}
apps/mobile/scripts/generate-highlights.test.ts
new
+28
@@ -0,0 +1,28 @@
1
+import * as NodeFS from "node:fs";
2
+import * as NodePath from "node:path";
3
+import { describe, expect, it } from "vite-plus/test";
4
+
5
+import { HIGHLIGHTS_LANGUAGE_IDS, HIGHLIGHTS_THEME_STYLES } from "../src/lib/highlights.generated";
6
+import { computeHighlightsData } from "./generate-highlights.mts";
7
+
8
+describe("generate highlights", () => {
9
+ // Token and language IDs are the native build's ABI. Bumping
10
+ // @pierre/highlights without regenerating would mislabel every token.
11
+ it("matches the installed @pierre/highlights", async () => {
12
+ const data = await computeHighlightsData();
13
+ const nativeSource = NodeFS.readFileSync(
14
+ NodePath.resolve(
15
+ import.meta.dirname,
16
+ "../modules/t3-highlights/Vendor/highlights/highlights.c",
17
+ ),
18
+ "utf8",
19
+ );
20
+
21
+ const stale = "Stale. Run WASM2C=<wabt 1.0.42>/bin/wasm2c vp run generate:highlights.";
22
+ expect(HIGHLIGHTS_LANGUAGE_IDS, stale).toEqual(data.languageIds);
23
+ expect(HIGHLIGHTS_THEME_STYLES, stale).toEqual(data.themeStyles);
24
+ expect(nativeSource.slice(0, nativeSource.indexOf("\n")), stale).toContain(
25
+ data.source.wasmSha256,
26
+ );
27
+ });
28
+});
apps/mobile/src/features/diffs/nativeReviewDiffHighlighter.test.ts
+19
-165
@@ -1,41 +1,13 @@
1
-import { afterEach, describe, expect, it, vi } from "vite-plus/test";
1
+import { describe, expect, it, vi } from "vite-plus/test";
2
3
import type { NativeReviewDiffRow } from "./nativeReviewDiffSurface";
4
import type { NativeReviewDiffFile } from "./nativeReviewDiffTypes";
5
import { highlightNativeReviewDiffVisibleRows } from "./nativeReviewDiffHighlighter";
6
7
-const tokenization = vi.hoisted(() => ({
8
- calls: [] as string[],
9
- afterCall: undefined as (() => void) | undefined,
10
-}));
11
-
12
-vi.mock("@shikijs/core", async (importOriginal) => {
13
- const original = await importOriginal<typeof import("@shikijs/core")>();
14
- return {
15
- ...original,
16
- createHighlighterCore: async (...args: Parameters<typeof original.createHighlighterCore>) => {
17
- const highlighter = await original.createHighlighterCore(...args);
18
- return {
19
- ...highlighter,
20
- codeToTokensBase: (...input: Parameters<typeof highlighter.codeToTokensBase>) => {
21
- tokenization.calls.push(input[0]);
22
- const result = highlighter.codeToTokensBase(...input);
23
- tokenization.afterCall?.();
24
- return result;
25
- },
26
- };
27
- },
28
- };
29
-});
30
-
31
-vi.mock("react-native-shiki-engine", async () => {
32
- const { createJavaScriptRegexEngine } = await import("@shikijs/engine-javascript");
33
- return { isNativeEngineAvailable: () => true, createNativeEngine: createJavaScriptRegexEngine };
34
-});
35
-
36
-afterEach(() => {
37
- tokenization.calls = [];
38
- tokenization.afterCall = undefined;
7
+vi.mock("expo", async () => {
8
+ const { createWasmHighlightsModule } = await import("../../lib/highlights.testing");
9
+ const highlights = createWasmHighlightsModule();
10
+ return { requireOptionalNativeModule: () => highlights };
11
});
12
13
const TYPESCRIPT_FILE: NativeReviewDiffFile = {
@@ -73,7 +45,6 @@ function highlight(
45
rows,
46
files: [TYPESCRIPT_FILE],
47
scheme: "dark",
76
- engine: "javascript",
48
firstRowIndex: 0,
49
lastRowIndex: rows.length - 1,
50
overscanRows: 0,
@@ -83,7 +54,7 @@ function highlight(
54
}
55
56
describe("highlightNativeReviewDiffVisibleRows", () => {
86
- it("does not carry grammar state across hunk boundaries", async () => {
57
+ it("does not carry grammar state across hunk boundaries", () => {
58
const exportRow = makeLine({
59
id: "export-row",
60
content: "export async function run() {}",
@@ -94,32 +65,23 @@ describe("highlightNativeReviewDiffVisibleRows", () => {
65
const rows = [
66
makeHunk("hunk-1"),
67
makeLine({
97
- id: "import-open",
98
- content: "import {",
68
+ id: "template-open",
69
+ content: "const message = `open",
70
change: "context",
71
oldLineNumber: 1,
72
newLineNumber: 1,
73
}),
103
- makeLine({
104
- id: "import-entry",
105
- content: " Model,",
106
- change: "context",
107
- oldLineNumber: 2,
108
- newLineNumber: 2,
109
- }),
74
makeHunk("hunk-2"),
75
exportRow,
76
];
77
114
- const [highlighted, standalone] = await Promise.all([
115
- highlight(rows),
116
- highlight([makeHunk("standalone-hunk"), exportRow]),
117
- ]);
78
+ const highlighted = highlight(rows);
79
+ const standalone = highlight([makeHunk("standalone-hunk"), exportRow]);
80
81
expect(highlighted.tokensByRowId[exportRow.id]).toEqual(standalone.tokensByRowId[exportRow.id]);
82
});
83
122
- it("keeps grammar state across inline comment rows", async () => {
84
+ it("keeps grammar state across inline comment rows", () => {
85
const openingRow = makeLine({
86
id: "template-open",
87
content: "const message = `open",
@@ -148,15 +110,16 @@ describe("highlightNativeReviewDiffVisibleRows", () => {
110
commentText: "Review note",
111
};
112
151
- const [withComment, contiguous] = await Promise.all([
152
- highlight([openingRow, commentRow, closingRow, trailingRow]),
153
- highlight([openingRow, closingRow, trailingRow]),
154
- ]);
113
+ const withComment = highlight([openingRow, commentRow, closingRow, trailingRow]);
114
+ const contiguous = highlight([openingRow, closingRow, trailingRow]);
115
116
expect(withComment.tokensByRowId).toEqual(contiguous.tokensByRowId);
117
+ expect(withComment.tokensByRowId[closingRow.id]?.[0]?.color).toBe(
118
+ withComment.tokensByRowId[openingRow.id]?.at(-1)?.color,
119
+ );
120
});
121
159
- it("does not join unhighlighted rows across cached gaps", async () => {
122
+ it("does not join unhighlighted rows across cached gaps", () => {
123
const trailingRow = makeLine({
124
id: "trailing-row",
125
content: "export const answer = 42;",
@@ -182,120 +145,11 @@ describe("highlightNativeReviewDiffVisibleRows", () => {
145
trailingRow,
146
];
147
185
- const [highlighted, standalone] = await Promise.all([
186
- highlight(rows, new Set(["template-close"])),
187
- highlight([trailingRow]),
188
- ]);
148
+ const highlighted = highlight(rows, new Set(["template-close"]));
149
+ const standalone = highlight([trailingRow]);
150
151
expect(highlighted.tokensByRowId[trailingRow.id]).toEqual(
152
standalone.tokensByRowId[trailingRow.id],
153
);
154
});
155
});
195
-
196
-describe.each(["native", "javascript"] as const)("%s highlighting budgets", (engine) => {
197
- const highlightRows = (rows: ReadonlyArray<NativeReviewDiffRow>, signal?: AbortSignal) =>
198
- highlightNativeReviewDiffVisibleRows({
199
- rows,
200
- files: [TYPESCRIPT_FILE],
201
- scheme: "dark",
202
- engine,
203
- firstRowIndex: 0,
204
- lastRowIndex: rows.length - 1,
205
- overscanRows: 0,
206
- signal,
207
- });
208
-
209
- const line = (id: number, content: string) =>
210
- makeLine({
211
- id: `line-${id}`,
212
- content,
213
- change: "add",
214
- oldLineNumber: null,
215
- newLineNumber: id,
216
- });
217
-
218
- it("keeps only the long line plain and resumes highlighting after it", async () => {
219
- const longLine = `${"x".repeat(1_001)} /*`;
220
- const rows = [
221
- line(1, "export const before = 1;"),
222
- line(2, longLine),
223
- { kind: "comment", id: "note", commentText: "Check this", fileId: TYPESCRIPT_FILE.id },
224
- line(3, "export const inside = 'x';"),
225
- makeHunk("next-hunk"),
226
- line(100, "export const after = 2;"),
227
- ] satisfies ReadonlyArray<NativeReviewDiffRow>;
228
- const result = await highlightRows(rows);
229
-
230
- expect(result.engine).toBe(engine);
231
- expect(Object.keys(result.tokensByRowId)).toEqual(["line-1", "line-2", "line-3", "line-100"]);
232
- expect(result.tokensByRowId["line-2"]).toEqual([
233
- { content: longLine, color: null, fontStyle: null },
234
- ]);
235
- for (const id of ["line-1", "line-3", "line-100"]) {
236
- expect(result.tokensByRowId[id]?.some((token) => token.color !== null)).toBe(true);
237
- }
238
- expect(tokenization.calls.some((code) => code.includes(longLine))).toBe(false);
239
- });
240
-
241
- it("highlights the rows after a long line the same regardless of the first window", async () => {
242
- const rows = [
243
- line(1, "export const before = 1;"),
244
- line(2, `const data = "${"x".repeat(1_050)}";`),
245
- line(3, "export const inside = 'x';"),
246
- line(4, "export const after = 2;"),
247
- ];
248
- const spanning = await highlightRows(rows);
249
- const afterLongLine = await highlightNativeReviewDiffVisibleRows({
250
- rows,
251
- files: [TYPESCRIPT_FILE],
252
- scheme: "dark",
253
- engine,
254
- firstRowIndex: 2,
255
- lastRowIndex: 3,
256
- overscanRows: 0,
257
- });
258
-
259
- for (const id of ["line-3", "line-4"]) {
260
- expect(spanning.tokensByRowId[id]?.some((token) => token.color !== null)).toBe(true);
261
- expect(afterLongLine.tokensByRowId[id]).toEqual(spanning.tokensByRowId[id]);
262
- }
263
- });
264
-
265
- it("preserves multiline grammar and row mapping across character-limited batches", async () => {
266
- const opening = line(1, "const message = `open");
267
- const body = Array.from({ length: 40 }, (_, index) => line(index + 2, "inside ".repeat(45)));
268
- const closing = line(42, "closed`; ");
269
- const trailing = line(43, "export const after = 2;");
270
- const result = await highlightRows([opening, ...body, closing, trailing]);
271
- const calls = [...tokenization.calls];
272
- const expected = await highlightRows([
273
- opening,
274
- { ...closing, newLineNumber: 2 },
275
- { ...trailing, newLineNumber: 3 },
276
- ]);
277
-
278
- expect(calls.length).toBeGreaterThan(1);
279
- expect(calls.every((code) => code.length <= 8_000)).toBe(true);
280
- expect(result.rowCount).toBe(43);
281
- for (const row of [opening, ...body, closing, trailing]) {
282
- expect(result.tokensByRowId[row.id]?.map((token) => token.content).join("")).toBe(
283
- row.content,
284
- );
285
- }
286
- expect(result.tokensByRowId[closing.id]).toEqual(expected.tokensByRowId[closing.id]);
287
- expect(result.tokensByRowId[trailing.id]).toEqual(expected.tokensByRowId[trailing.id]);
288
- });
289
-
290
- it("stops before later batches and publishes no partial result after cancellation", async () => {
291
- const controller = new AbortController();
292
- tokenization.afterCall = () => controller.abort();
293
- const rows = Array.from({ length: 30 }, (_, index) => line(index + 1, `// ${"x".repeat(400)}`));
294
-
295
- const result = await highlightRows(rows, controller.signal);
296
-
297
- expect(tokenization.calls).toHaveLength(1);
298
- expect(result.rowCount).toBe(0);
299
- expect(result.tokensByRowId).toEqual({});
300
- });
301
-});
apps/mobile/src/features/diffs/nativeReviewDiffHighlighter.ts
+29
-404
@@ -1,59 +1,7 @@
1
-import { createHighlighterCore, type GrammarState, type HighlighterCore } from "@shikijs/core";
2
-import { createJavaScriptRegexEngine } from "@shikijs/engine-javascript";
3
-import bashLanguage from "@shikijs/langs/bash";
4
-import diffLanguage from "@shikijs/langs/diff";
5
-import javascriptLanguage from "@shikijs/langs/javascript";
6
-import jsonLanguage from "@shikijs/langs/json";
7
-import jsxLanguage from "@shikijs/langs/jsx";
8
-import tsxLanguage from "@shikijs/langs/tsx";
9
-import typescriptLanguage from "@shikijs/langs/typescript";
10
-import yamlLanguage from "@shikijs/langs/yaml";
11
-import * as Schema from "effect/Schema";
12
-
13
-import type { NativeReviewDiffFile, NativeReviewDiffLanguage } from "./nativeReviewDiffTypes";
1
+import { highlightCode, type HighlightScheme } from "../../lib/highlights";
2
+import type { NativeReviewDiffFile } from "./nativeReviewDiffTypes";
3
import type { NativeReviewDiffRow, NativeReviewDiffToken } from "./nativeReviewDiffSurface";
4
16
-export type NativeReviewDiffHighlightScheme = "light" | "dark";
17
-export type NativeReviewDiffHighlightEngine = "native" | "javascript";
18
-
19
-export class NativeReviewDiffHighlighterUnavailableError extends Schema.TaggedError<NativeReviewDiffHighlighterUnavailableError>()(
20
- "NativeReviewDiffHighlighterUnavailableError",
21
- {},
22
-) {
23
- override get message(): string {
24
- return "The native review diff highlighter is unavailable in this build.";
25
- }
26
-}
27
-
28
-export const isNativeReviewDiffHighlighterUnavailableError = Schema.is(
29
- NativeReviewDiffHighlighterUnavailableError,
30
-);
31
-
32
-export class NativeReviewDiffHighlighterInitializationError extends Schema.TaggedError<NativeReviewDiffHighlighterInitializationError>()(
33
- "NativeReviewDiffHighlighterInitializationError",
34
- {
35
- requestedEngine: Schema.Literals(["native", "javascript"]),
36
- attemptedEngine: Schema.Literals(["native", "javascript"]),
37
- cause: Schema.Defect(),
38
- },
39
-) {
40
- override get message(): string {
41
- return `Failed to initialize the ${this.attemptedEngine} review diff highlighter requested as ${this.requestedEngine}.`;
42
- }
43
-}
44
-
45
-export interface NativeReviewDiffHighlighterHandle {
46
- readonly engine: NativeReviewDiffHighlightEngine;
47
- readonly tokenize: (
48
- code: string,
49
- options: {
50
- readonly lang: NativeReviewDiffLanguage;
51
- readonly theme: string;
52
- readonly signal?: AbortSignal;
53
- },
54
- ) => Promise<ReadonlyArray<ReadonlyArray<NativeReviewDiffToken>>>;
55
-}
56
-
5
interface NativeReviewDiffLineRow extends NativeReviewDiffRow {
6
readonly kind: "line";
7
readonly fileId: string;
@@ -68,283 +16,17 @@ interface IndexedNativeReviewDiffLineRow {
16
export interface HighlightNativeReviewDiffVisibleRowsInput {
17
readonly rows: ReadonlyArray<NativeReviewDiffRow>;
18
readonly files: ReadonlyArray<NativeReviewDiffFile>;
71
- readonly scheme: NativeReviewDiffHighlightScheme;
72
- readonly engine?: NativeReviewDiffHighlightEngine;
19
+ readonly scheme: HighlightScheme;
20
readonly firstRowIndex: number;
21
readonly lastRowIndex: number;
22
readonly overscanRows?: number;
23
readonly maxRows?: number;
24
readonly alreadyHighlightedRowIds?: ReadonlySet<string>;
78
- readonly signal?: AbortSignal;
25
}
26
27
+// Bounds each token patch the native view parses, not the highlighting itself.
28
const NATIVE_REVIEW_DIFF_VISIBLE_OVERSCAN_ROWS = 160;
29
const NATIVE_REVIEW_DIFF_VISIBLE_MAX_ROWS = 360;
83
-const NATIVE_REVIEW_DIFF_TOKENIZE_MAX_LINE_LENGTH = 1_000;
84
-const NATIVE_REVIEW_DIFF_TOKENIZE_MAX_CHARACTERS = 8_000;
85
-
86
-const NATIVE_REVIEW_DIFF_THEME_NAME_BY_SCHEME = {
87
- dark: "t3-pierre-dark",
88
- light: "t3-pierre-light",
89
-} as const;
90
-
91
-const PIERRE_LIGHT_SHIKI_THEME = {
92
- name: NATIVE_REVIEW_DIFF_THEME_NAME_BY_SCHEME.light,
93
- type: "light" as const,
94
- fg: "#070707",
95
- bg: "#ffffff",
96
- settings: [
97
- { settings: { foreground: "#070707", background: "#ffffff" } },
98
- { scope: "comment, punctuation.definition.comment", settings: { foreground: "#84848A" } },
99
- {
100
- scope: "keyword, storage, storage.type, keyword.operator.expression",
101
- settings: { foreground: "#FC2B73" },
102
- },
103
- {
104
- scope: "entity.name.function, support.function, meta.function-call",
105
- settings: { foreground: "#7B43F8" },
106
- },
107
- {
108
- scope: "entity.name.type, support.type, support.class",
109
- settings: { foreground: "#C635E4" },
110
- },
111
- {
112
- scope: "string, constant.character, punctuation.definition.string",
113
- settings: { foreground: "#199F43" },
114
- },
115
- {
116
- scope: "constant.numeric, constant.language, constant.other",
117
- settings: { foreground: "#1CA1C7" },
118
- },
119
- {
120
- scope: "variable.parameter, variable.other.readwrite, meta.object-literal.key",
121
- settings: { foreground: "#D47628" },
122
- },
123
- {
124
- scope: "entity.name.tag, support.class.component",
125
- settings: { foreground: "#199F43" },
126
- },
127
- {
128
- scope: "punctuation, meta.brace, meta.delimiter",
129
- settings: { foreground: "#79797F" },
130
- },
131
- { scope: "invalid", settings: { foreground: "#D52C36" } },
132
- ],
133
-};
134
-
135
-const PIERRE_DARK_SHIKI_THEME = {
136
- name: NATIVE_REVIEW_DIFF_THEME_NAME_BY_SCHEME.dark,
137
- type: "dark" as const,
138
- fg: "#adadb1",
139
- bg: "#0a0a0a",
140
- settings: [
141
- { settings: { foreground: "#adadb1", background: "#0a0a0a" } },
142
- { scope: "comment, punctuation.definition.comment", settings: { foreground: "#84848A" } },
143
- {
144
- scope: "keyword, storage, storage.type, keyword.operator.expression",
145
- settings: { foreground: "#FF678D" },
146
- },
147
- {
148
- scope: "entity.name.function, support.function, meta.function-call",
149
- settings: { foreground: "#9D6AFB" },
150
- },
151
- {
152
- scope: "entity.name.type, support.type, support.class",
153
- settings: { foreground: "#D568EA" },
154
- },
155
- {
156
- scope: "string, constant.character, punctuation.definition.string",
157
- settings: { foreground: "#5ECC71" },
158
- },
159
- {
160
- scope: "constant.numeric, constant.language, constant.other",
161
- settings: { foreground: "#68CDF2" },
162
- },
163
- {
164
- scope: "variable.parameter, variable.other.readwrite, meta.object-literal.key",
165
- settings: { foreground: "#FFA359" },
166
- },
167
- {
168
- scope: "entity.name.tag, support.class.component",
169
- settings: { foreground: "#5ECC71" },
170
- },
171
- {
172
- scope: "punctuation, meta.brace, meta.delimiter",
173
- settings: { foreground: "#79797F" },
174
- },
175
- { scope: "invalid", settings: { foreground: "#FF6762" } },
176
- ],
177
-};
178
-
179
-const NATIVE_REVIEW_DIFF_SHIKI_THEMES = [
180
- PIERRE_LIGHT_SHIKI_THEME,
181
- PIERRE_DARK_SHIKI_THEME,
182
-] satisfies Parameters<typeof createHighlighterCore>[0]["themes"];
183
-
184
-const NATIVE_REVIEW_DIFF_LANGUAGES = [
185
- bashLanguage,
186
- diffLanguage,
187
- javascriptLanguage,
188
- jsonLanguage,
189
- jsxLanguage,
190
- tsxLanguage,
191
- typescriptLanguage,
192
- yamlLanguage,
193
-] satisfies Parameters<typeof createHighlighterCore>[0]["langs"];
194
-
195
-let nativeHighlighterPromise: Promise<NativeReviewDiffHighlighterHandle> | null = null;
196
-let javascriptHighlighterPromise: Promise<NativeReviewDiffHighlighterHandle> | null = null;
197
-
198
-function waitForNextFrame(): Promise<void> {
199
- return new Promise((resolve) => setTimeout(resolve, 0));
200
-}
201
-
202
-function normalizeTokens(
203
- tokenLines: ReadonlyArray<ReadonlyArray<{ content: string; color?: string; fontStyle?: number }>>,
204
-): ReadonlyArray<ReadonlyArray<NativeReviewDiffToken>> {
205
- return tokenLines.map((line) =>
206
- line.map((token) => ({
207
- content: token.content,
208
- color: token.color ?? null,
209
- fontStyle: token.fontStyle ?? null,
210
- })),
211
- );
212
-}
213
-
214
-function createHighlighterHandle(
215
- highlighter: HighlighterCore,
216
- engine: NativeReviewDiffHighlightEngine,
217
-): NativeReviewDiffHighlighterHandle {
218
- return {
219
- engine,
220
- async tokenize(code, { lang, theme, signal }) {
221
- const lines = code.split("\n");
222
- const highlighted: Array<ReadonlyArray<NativeReviewDiffToken>> = [];
223
- let grammarState: GrammarState | undefined;
224
- let start = 0;
225
-
226
- while (start < lines.length) {
227
- if (signal?.aborted) return [];
228
-
229
- // Skipping this line leaves its ending grammar state unknown. Resume
230
- // from a fresh state rather than leaving the rest of the segment plain:
231
- // highlighted rows are cached for the sheet's lifetime, so a plain tail
232
- // would stick, and which rows it covered would depend on where the
233
- // first visible window happened to start.
234
- if (lines[start]!.length > NATIVE_REVIEW_DIFF_TOKENIZE_MAX_LINE_LENGTH) {
235
- highlighted.push([{ content: lines[start] || " ", color: null, fontStyle: null }]);
236
- grammarState = undefined;
237
- start += 1;
238
- continue;
239
- }
240
-
241
- let end = start;
242
- let characters = 0;
243
- while (end < lines.length) {
244
- const length = lines[end]!.length;
245
- const nextCharacters = characters + length + (end > start ? 1 : 0);
246
- if (
247
- length > NATIVE_REVIEW_DIFF_TOKENIZE_MAX_LINE_LENGTH ||
248
- nextCharacters > NATIVE_REVIEW_DIFF_TOKENIZE_MAX_CHARACTERS
249
- ) {
250
- break;
251
- }
252
- characters = nextCharacters;
253
- end += 1;
254
- }
255
-
256
- const tokens = highlighter.codeToTokensBase(lines.slice(start, end).join("\n"), {
257
- lang,
258
- theme,
259
- grammarState,
260
- });
261
- grammarState = highlighter.getLastGrammarState(tokens);
262
- highlighted.push(...normalizeTokens(tokens));
263
- start = end;
264
- if (start < lines.length) await waitForNextFrame();
265
- }
266
-
267
- return signal?.aborted ? [] : highlighted;
268
- },
269
- };
270
-}
271
-
272
-async function createNativeReviewDiffHighlighter(): Promise<NativeReviewDiffHighlighterHandle> {
273
- const nativeEngineModule = await import("react-native-shiki-engine");
274
- if (!nativeEngineModule.isNativeEngineAvailable()) {
275
- throw new NativeReviewDiffHighlighterUnavailableError();
276
- }
277
-
278
- const highlighter = await createHighlighterCore({
279
- langs: NATIVE_REVIEW_DIFF_LANGUAGES,
280
- themes: NATIVE_REVIEW_DIFF_SHIKI_THEMES,
281
- engine: nativeEngineModule.createNativeEngine(),
282
- });
283
-
284
- return createHighlighterHandle(highlighter, "native");
285
-}
286
-
287
-async function createJavascriptReviewDiffHighlighter(): Promise<NativeReviewDiffHighlighterHandle> {
288
- const highlighter: HighlighterCore = await createHighlighterCore({
289
- langs: NATIVE_REVIEW_DIFF_LANGUAGES,
290
- themes: NATIVE_REVIEW_DIFF_SHIKI_THEMES,
291
- engine: createJavaScriptRegexEngine(),
292
- });
293
-
294
- return createHighlighterHandle(highlighter, "javascript");
295
-}
296
-
297
-export async function getNativeReviewDiffHighlighter(
298
- engine: NativeReviewDiffHighlightEngine = "native",
299
-): Promise<NativeReviewDiffHighlighterHandle> {
300
- if (engine === "javascript") {
301
- try {
302
- javascriptHighlighterPromise ??= createJavascriptReviewDiffHighlighter();
303
- return await javascriptHighlighterPromise;
304
- } catch (cause) {
305
- javascriptHighlighterPromise = null;
306
- throw new NativeReviewDiffHighlighterInitializationError({
307
- requestedEngine: engine,
308
- attemptedEngine: "javascript",
309
- cause,
310
- });
311
- }
312
- }
313
-
314
- nativeHighlighterPromise ??= createNativeReviewDiffHighlighter()
315
- .catch(async (cause: unknown) => {
316
- const nativeError = isNativeReviewDiffHighlighterUnavailableError(cause)
317
- ? cause
318
- : new NativeReviewDiffHighlighterInitializationError({
319
- requestedEngine: engine,
320
- attemptedEngine: "native",
321
- cause,
322
- });
323
- console.warn("[debug-native-diff] native highlighter unavailable", {
324
- error: nativeError,
325
- });
326
- try {
327
- javascriptHighlighterPromise ??= createJavascriptReviewDiffHighlighter();
328
- return await javascriptHighlighterPromise;
329
- } catch (fallbackCause) {
330
- javascriptHighlighterPromise = null;
331
- throw new NativeReviewDiffHighlighterInitializationError({
332
- requestedEngine: engine,
333
- attemptedEngine: "javascript",
334
- cause: new AggregateError(
335
- [nativeError, fallbackCause],
336
- "Native and JavaScript review diff highlighter initialization failed.",
337
- { cause: nativeError },
338
- ),
339
- });
340
- }
341
- })
342
- .catch((error) => {
343
- nativeHighlighterPromise = null;
344
- throw error;
345
- });
346
- return await nativeHighlighterPromise;
347
-}
30
31
function isHighlightableLineRow(row: NativeReviewDiffRow): row is NativeReviewDiffLineRow {
32
return row.kind === "line" && typeof row.fileId === "string" && typeof row.content === "string";
@@ -402,10 +84,6 @@ function canShareGrammarContext(
84
);
85
}
86
405
-function createFileMap(files: ReadonlyArray<NativeReviewDiffFile>) {
406
- return new Map(files.map((file) => [file.id, file]));
407
-}
408
-
87
function clampRowIndex(index: number, rows: ReadonlyArray<NativeReviewDiffRow>) {
88
if (rows.length === 0) {
89
return 0;
@@ -414,28 +92,13 @@ function clampRowIndex(index: number, rows: ReadonlyArray<NativeReviewDiffRow>)
92
return Math.min(rows.length - 1, Math.max(0, Math.floor(index)));
93
}
94
417
-function makePlainTokenFallback(
418
- row: NativeReviewDiffLineRow,
419
-): ReadonlyArray<NativeReviewDiffToken> {
420
- return [{ content: row.content || " ", color: null, fontStyle: null }];
421
-}
422
-
423
-export async function highlightNativeReviewDiffVisibleRows(
95
+export function highlightNativeReviewDiffVisibleRows(
96
input: HighlightNativeReviewDiffVisibleRowsInput,
425
-): Promise<{
426
- readonly engine: NativeReviewDiffHighlightEngine;
97
+): {
98
readonly tokensByRowId: Record<string, ReadonlyArray<NativeReviewDiffToken>>;
99
readonly rowCount: number;
429
- readonly durationMs: number;
430
-}> {
431
- const highlighter = await getNativeReviewDiffHighlighter(input.engine ?? "native");
432
- if (input.signal?.aborted) {
433
- return { engine: highlighter.engine, tokensByRowId: {}, rowCount: 0, durationMs: 0 };
434
- }
435
-
436
- const startedAt = performance.now();
437
- const theme = NATIVE_REVIEW_DIFF_THEME_NAME_BY_SCHEME[input.scheme];
438
- const fileMap = createFileMap(input.files);
100
+} {
101
+ const fileMap = new Map(input.files.map((file) => [file.id, file]));
102
const overscanRows = input.overscanRows ?? NATIVE_REVIEW_DIFF_VISIBLE_OVERSCAN_ROWS;
103
const maxRows = input.maxRows ?? NATIVE_REVIEW_DIFF_VISIBLE_MAX_ROWS;
104
const startIndex = clampRowIndex(input.firstRowIndex - overscanRows, input.rows);
@@ -458,71 +121,33 @@ export async function highlightNativeReviewDiffVisibleRows(
121
}
122
}
123
124
+ // Rows that continue each other's source are highlighted together so
125
+ // multi-line constructs keep their colors.
126
const tokensByRowId: Record<string, ReadonlyArray<NativeReviewDiffToken>> = {};
462
- let segmentRows: IndexedNativeReviewDiffLineRow[] = [];
463
- let segmentFile: NativeReviewDiffFile | undefined;
464
- let charactersSinceYield = 0;
465
-
466
- const flushSegment = async () => {
467
- if (!segmentFile || segmentRows.length === 0 || input.signal?.aborted) {
468
- segmentRows = [];
469
- segmentFile = undefined;
470
- return;
471
- }
472
-
473
- const code = segmentRows.map(({ row }) => row.content).join("\n");
474
- if (
475
- charactersSinceYield > 0 &&
476
- charactersSinceYield + code.length > NATIVE_REVIEW_DIFF_TOKENIZE_MAX_CHARACTERS
477
- ) {
478
- await waitForNextFrame();
479
- charactersSinceYield = 0;
480
- if (input.signal?.aborted) return;
127
+ let segment: IndexedNativeReviewDiffLineRow[] = [];
128
+ const flushSegment = () => {
129
+ const file = segment[0] ? fileMap.get(segment[0].row.fileId) : undefined;
130
+ if (file) {
131
+ const tokenLines = highlightCode(
132
+ segment.map(({ row }) => row.content).join("\n"),
133
+ file.language,
134
+ input.scheme,
135
+ );
136
+ segment.forEach(({ row }, index) => {
137
+ tokensByRowId[row.id] = tokenLines[index] ?? [];
138
+ });
139
}
482
- const tokenLines = await highlighter.tokenize(code, {
483
- lang: segmentFile.language,
484
- theme,
485
- signal: input.signal,
486
- });
487
- charactersSinceYield += code.length;
488
- segmentRows.forEach(({ row }, rowIndex) => {
489
- tokensByRowId[row.id] = tokenLines[rowIndex] ?? makePlainTokenFallback(row);
490
- });
491
- segmentRows = [];
492
- segmentFile = undefined;
140
+ segment = [];
141
};
142
143
for (const selectedRow of selectedRows) {
496
- if (input.signal?.aborted) break;
497
- const { row } = selectedRow;
498
- const file = fileMap.get(row.fileId);
499
- if (!file) {
500
- continue;
144
+ const previousRow = segment.at(-1);
145
+ if (previousRow && !canShareGrammarContext(previousRow, selectedRow, input.rows)) {
146
+ flushSegment();
147
}
502
-
503
- const previousRow = segmentRows.at(-1);
504
- if (
505
- segmentFile &&
506
- (segmentFile.id !== file.id ||
507
- (previousRow !== undefined &&
508
- !canShareGrammarContext(previousRow, selectedRow, input.rows)))
509
- ) {
510
- await flushSegment();
511
- }
512
-
513
- segmentFile = file;
514
- segmentRows.push(selectedRow);
515
- }
516
- await flushSegment();
517
-
518
- if (input.signal?.aborted) {
519
- return { engine: highlighter.engine, tokensByRowId: {}, rowCount: 0, durationMs: 0 };
148
+ segment.push(selectedRow);
149
}
150
+ flushSegment();
151
522
- return {
523
- engine: highlighter.engine,
524
- tokensByRowId,
525
- rowCount: selectedRows.length,
526
- durationMs: Math.round(performance.now() - startedAt),
527
- };
152
+ return { tokensByRowId, rowCount: selectedRows.length };
153
}
apps/mobile/src/features/diffs/nativeReviewDiffTypes.ts
+2
-11
@@ -1,17 +1,8 @@
1
-export type NativeReviewDiffLanguage =
2
- | "bash"
3
- | "diff"
4
- | "javascript"
5
- | "json"
6
- | "jsx"
7
- | "tsx"
8
- | "typescript"
9
- | "yaml";
10
-
1
export interface NativeReviewDiffFile {
2
readonly id: string;
3
readonly path: string;
14
- readonly language: NativeReviewDiffLanguage;
4
+ /** A @pierre/highlights language name. */
5
+ readonly language: string;
6
readonly additions: number;
7
readonly deletions: number;
8
}
apps/mobile/src/features/files/SourceFileSurface.tsx
+2
-2
@@ -22,7 +22,7 @@ import {
22
} from "../diffs/nativeReviewDiffSurface";
23
import { createNativeReviewDiffTheme } from "../review/nativeReviewDiffAdapter";
24
import { REVIEW_MONO_FONT_FAMILY, renderVisibleWhitespace } from "../review/reviewDiffRendering";
25
-import type { ReviewHighlightedToken } from "../review/shikiReviewHighlighter";
25
+import type { HighlightedToken } from "../../lib/highlights";
26
import { cn } from "../../lib/cn";
27
import type { ResolvedMobileCodeSurface } from "../../lib/appearancePreferences";
28
import { useAppearanceCodeSurface } from "../settings/appearance/useAppearanceCodeSurface";
@@ -54,7 +54,7 @@ const HighlightedSourceLine = function HighlightedSourceLine(props: {
54
readonly codeSurface: ResolvedMobileCodeSurface;
55
readonly index: number;
56
readonly line: string;
57
- readonly tokens: ReadonlyArray<ReviewHighlightedToken> | null;
57
+ readonly tokens: ReadonlyArray<HighlightedToken> | null;
58
readonly highlighted: boolean;
59
readonly wordBreak: boolean;
60
}) {
apps/mobile/src/features/files/nativeSourceFileAdapter.ts
+2
-2
@@ -5,7 +5,7 @@ import type {
5
} from "../diffs/nativeReviewDiffSurface";
6
import type { ResolvedMobileCodeSurface } from "../../lib/appearancePreferences";
7
import { MOBILE_CODE_SURFACE, MOBILE_TYPOGRAPHY } from "../../lib/typography";
8
-import type { SourceHighlightTokens } from "./sourceHighlightingState";
8
+import type { HighlightedLines } from "../../lib/highlights";
9
10
export const NATIVE_SOURCE_CONTENT_WIDTH = 32_000;
11
@@ -54,7 +54,7 @@ export function buildNativeSourceRows(
54
}
55
56
export function buildNativeSourceTokens(
57
- tokenLines: SourceHighlightTokens | null,
57
+ tokenLines: HighlightedLines | null,
58
): Readonly<Record<string, ReadonlyArray<NativeReviewDiffToken>>> {
59
if (tokenLines === null) {
60
return {};
apps/mobile/src/features/files/preload-workspace-file.ts
+2
-2
@@ -12,7 +12,7 @@ import { projectEnvironment } from "../../state/projects";
12
import { isVideoPreviewFile } from "./filePath";
13
import { prepareSourceFileDocument } from "./source-file-document";
14
import { sourceHighlightAtom } from "./sourceHighlightingState";
15
-import type { ReviewDiffTheme } from "../review/shikiReviewHighlighter";
15
+import type { HighlightScheme } from "../../lib/highlights";
16
17
const inFlightPreloads = new Map<string, Promise<void>>();
18
const MAX_HIGHLIGHT_PRELOAD_CHARACTERS = 256 * 1024;
@@ -29,7 +29,7 @@ export function preloadWorkspaceFileContents(input: {
29
readonly cwd: string;
30
readonly environmentId: EnvironmentId;
31
readonly relativePath: string;
32
- readonly theme: ReviewDiffTheme;
32
+ readonly theme: HighlightScheme;
33
}): void {
34
if (
35
!readEnvironmentScope(input.environmentId, AuthFilesystemReadScope) ||
apps/mobile/src/features/files/source-file-document.ts
+2
-2
@@ -1,4 +1,4 @@
1
-import type { ReviewHighlightedToken } from "../review/shikiReviewHighlighter";
1
+import type { HighlightedToken } from "../../lib/highlights";
2
import { buildNativeSourceRows } from "./nativeSourceFileAdapter";
3
4
const MAX_CACHED_DOCUMENTS = 8;
@@ -57,7 +57,7 @@ export function prepareSourceFileDocument(contents: string): SourceFileDocument
57
// A selectable document cannot virtualize its rows. Cap React spans instead; large
58
// attachments remain fully selectable as one plain string, including every newline.
59
export function boundedSelectableSourceTokens(
60
- tokens: ReadonlyArray<ReadonlyArray<ReviewHighlightedToken>> | null,
60
+ tokens: ReadonlyArray<ReadonlyArray<HighlightedToken>> | null,
61
): typeof tokens {
62
if (!tokens) return null;
63
let spans = tokens.length;
apps/mobile/src/features/files/sourceHighlightingState.ts
+24
-32
@@ -2,49 +2,41 @@ import * as Data from "effect/Data";
2
import * as Effect from "effect/Effect";
3
import { Atom } from "effect/reactivity";
4
5
-import {
6
- highlightSourceFile,
7
- type ReviewDiffTheme,
8
- type ReviewHighlightedToken,
9
-} from "../review/shikiReviewHighlighter";
5
+import { resolveHighlightLanguage } from "../../lib/highlightLanguage";
6
+import { highlightCode, type HighlightedLines, type HighlightScheme } from "../../lib/highlights";
7
8
const SOURCE_HIGHLIGHT_IDLE_TTL_MS = 5 * 60_000;
9
10
export interface SourceHighlightInput {
11
readonly path: string;
12
readonly contents: string;
16
- readonly theme: ReviewDiffTheme;
13
+ readonly theme: HighlightScheme;
14
}
15
19
-export type SourceHighlightTokens = ReadonlyArray<ReadonlyArray<ReviewHighlightedToken>>;
20
-
21
-type SourceHighlighter = (input: SourceHighlightInput) => Promise<SourceHighlightTokens>;
22
-
16
class SourceHighlightCacheKey extends Data.Class<SourceHighlightInput> {}
17
18
class SourceHighlightError extends Data.TaggedError("SourceHighlightError")<{
19
readonly cause: unknown;
20
}> {}
21
29
-export function createSourceHighlightAtomFamily(options?: {
30
- readonly highlight?: SourceHighlighter;
31
- readonly idleTtlMs?: number;
32
-}) {
33
- const highlight = options?.highlight ?? highlightSourceFile;
34
- const idleTtlMs = options?.idleTtlMs ?? SOURCE_HIGHLIGHT_IDLE_TTL_MS;
35
- const family = Atom.family((request: SourceHighlightCacheKey) =>
36
- Atom.make(
37
- Effect.tryPromise({
38
- try: () => highlight(request),
39
- catch: (cause) => new SourceHighlightError({ cause }),
40
- }),
41
- ).pipe(
42
- Atom.setIdleTTL(idleTtlMs),
43
- Atom.withLabel(`mobile:source-highlight:${request.theme}:${request.path}`),
44
- ),
45
- );
46
-
47
- return (input: SourceHighlightInput) => family(new SourceHighlightCacheKey(input));
48
-}
49
-
50
-export const sourceHighlightAtom = createSourceHighlightAtomFamily();
22
+// Highlighting is synchronous, so a cold atom resolves on its first read. The
23
+// family keeps results for files the user moves between.
24
+const sourceHighlightFamily = Atom.family((request: SourceHighlightCacheKey) =>
25
+ Atom.make(
26
+ Effect.try({
27
+ try: (): HighlightedLines =>
28
+ highlightCode(
29
+ request.contents,
30
+ resolveHighlightLanguage({ path: request.path }),
31
+ request.theme,
32
+ ),
33
+ catch: (cause) => new SourceHighlightError({ cause }),
34
+ }),
35
+ ).pipe(
36
+ Atom.setIdleTTL(SOURCE_HIGHLIGHT_IDLE_TTL_MS),
37
+ Atom.withLabel(`mobile:source-highlight:${request.theme}:${request.path}`),
38
+ ),
39
+);
40
+
41
+export const sourceHighlightAtom = (input: SourceHighlightInput) =>
42
+ sourceHighlightFamily(new SourceHighlightCacheKey(input));
apps/mobile/src/features/review/ReviewCommentComposerSheet.tsx
+13
-36
@@ -1,7 +1,7 @@
1
import { useNavigation, type StaticScreenProps } from "@react-navigation/native";
2
import { TextInputWrapper } from "expo-paste-input";
3
import type { EnvironmentId, ThreadId } from "@t3tools/contracts";
4
-import { useCallback, useEffect, useMemo, useState } from "react";
4
+import { useCallback, useMemo, useState } from "react";
5
import { Platform, Pressable, ScrollView, View, useWindowDimensions } from "react-native";
6
import { KeyboardAvoidingView, KeyboardStickyView } from "react-native-keyboard-controller";
7
import { useSafeAreaInsets } from "react-native-safe-area-context";
@@ -27,10 +27,7 @@ import {
27
import { useAppearanceCodeSurface } from "../settings/appearance/useAppearanceCodeSurface";
28
import { useAppearancePreferences } from "../settings/appearance/AppearancePreferencesProvider";
29
import { changeTone, DiffTokenText, ReviewChangeBar } from "./reviewDiffRendering";
30
-import {
31
- highlightReviewSelectedLines,
32
- type ReviewHighlightedToken,
33
-} from "./shikiReviewHighlighter";
30
+import { highlightReviewSelectedLines } from "./highlightReviewSelectedLines";
31
32
const REVIEW_COMMENT_PREVIEW_MAX_LINES = 5;
33
@@ -49,9 +46,6 @@ export function ReviewCommentComposerSheet(props: ReviewCommentComposerSheetProp
46
const { codeSurface } = useAppearanceCodeSurface();
47
const { environmentId, threadId } = props.route.params;
48
const [commentText, setCommentText] = useState("");
52
- const [highlightedLinesById, setHighlightedLinesById] = useState<
53
- Record<string, ReadonlyArray<ReviewHighlightedToken>>
54
- >({});
49
const [attachments, setAttachments] = useState<ReadonlyArray<DraftComposerImageAttachment>>([]);
50
const [previewFile, setPreviewFile] = useState<FilePreviewSource | null>(null);
51
@@ -59,6 +53,17 @@ export function ReviewCommentComposerSheet(props: ReviewCommentComposerSheetProp
53
() => (target ? getSelectedReviewCommentLines(target) : []),
54
[target],
55
);
56
+ const highlightedLinesById = useMemo(
57
+ () =>
58
+ target
59
+ ? highlightReviewSelectedLines({
60
+ filePath: target.filePath,
61
+ lines: selectedLines,
62
+ theme: selectedTheme,
63
+ })
64
+ : {},
65
+ [selectedLines, selectedTheme, target],
66
+ );
67
const firstLine = selectedLines[0] ?? null;
68
const lastLine = selectedLines[selectedLines.length - 1] ?? null;
69
const firstNumber = firstLine ? getReviewUnifiedLineNumber(firstLine) : null;
@@ -98,34 +103,6 @@ export function ReviewCommentComposerSheet(props: ReviewCommentComposerSheetProp
103
})();
104
});
105
101
- useEffect(() => {
102
- if (!target || selectedLines.length === 0) {
103
- setHighlightedLinesById({});
104
- return;
105
- }
106
-
107
- let cancelled = false;
108
- void highlightReviewSelectedLines({
109
- filePath: target.filePath,
110
- lines: selectedLines,
111
- theme: selectedTheme,
112
- })
113
- .then((next) => {
114
- if (!cancelled) {
115
- setHighlightedLinesById(next);
116
- }
117
- })
118
- .catch(() => {
119
- if (!cancelled) {
120
- setHighlightedLinesById({});
121
- }
122
- });
123
-
124
- return () => {
125
- cancelled = true;
126
- };
127
- }, [selectedLines, selectedTheme, target]);
128
-
106
async function handlePickImages(): Promise<void> {
107
const result = await pickComposerImages({ existingCount: attachments.length });
108
if (result.images.length > 0) {
apps/mobile/src/features/review/highlightReviewSelectedLines.ts
new
+111
@@ -0,0 +1,111 @@
1
+import { resolveHighlightLanguage } from "../../lib/highlightLanguage";
2
+import { highlightCode, type HighlightScheme } from "../../lib/highlights";
3
+import type { ReviewHighlightedToken } from "./reviewHighlightedToken.types";
4
+import type { ReviewRenderableLineRow } from "./reviewModel";
5
+import { applyDiffRangesToTokens, computeWordAltDiffRanges } from "./reviewWordDiffs";
6
+
7
+function applyWordAltDiffHighlightsToSelectedLines(input: {
8
+ readonly lines: ReadonlyArray<ReviewRenderableLineRow>;
9
+ readonly tokenMap: Record<string, ReadonlyArray<ReviewHighlightedToken>>;
10
+}): Record<string, ReadonlyArray<ReviewHighlightedToken>> {
11
+ const additionLineByTokenIndex = new Map<number, ReviewRenderableLineRow>();
12
+ const deletionLineByTokenIndex = new Map<number, ReviewRenderableLineRow>();
13
+
14
+ input.lines.forEach((line) => {
15
+ if (line.change === "add" && line.additionTokenIndex !== null) {
16
+ additionLineByTokenIndex.set(line.additionTokenIndex, line);
17
+ }
18
+ if (line.change === "delete" && line.deletionTokenIndex !== null) {
19
+ deletionLineByTokenIndex.set(line.deletionTokenIndex, line);
20
+ }
21
+ });
22
+
23
+ const nextTokenMap = { ...input.tokenMap };
24
+ const processedPairs = new Set<string>();
25
+
26
+ input.lines.forEach((line) => {
27
+ if (line.change === "context" || !line.comparison) {
28
+ return;
29
+ }
30
+
31
+ const pairedDeletionLine =
32
+ line.change === "delete"
33
+ ? line
34
+ : line.comparison.change === "delete"
35
+ ? deletionLineByTokenIndex.get(line.comparison.tokenIndex)
36
+ : undefined;
37
+ const pairedAdditionLine =
38
+ line.change === "add"
39
+ ? line
40
+ : line.comparison.change === "add"
41
+ ? additionLineByTokenIndex.get(line.comparison.tokenIndex)
42
+ : undefined;
43
+
44
+ if (
45
+ !pairedDeletionLine ||
46
+ !pairedAdditionLine ||
47
+ pairedDeletionLine.deletionTokenIndex === null ||
48
+ pairedAdditionLine.additionTokenIndex === null
49
+ ) {
50
+ return;
51
+ }
52
+
53
+ const pairKey = `${pairedDeletionLine.deletionTokenIndex}:${pairedAdditionLine.additionTokenIndex}`;
54
+ if (processedPairs.has(pairKey)) {
55
+ return;
56
+ }
57
+ processedPairs.add(pairKey);
58
+
59
+ const ranges = computeWordAltDiffRanges({
60
+ deletionLine: pairedDeletionLine.content,
61
+ additionLine: pairedAdditionLine.content,
62
+ });
63
+
64
+ if (ranges.deletion.length > 0) {
65
+ nextTokenMap[pairedDeletionLine.id] = applyDiffRangesToTokens(
66
+ nextTokenMap[pairedDeletionLine.id] ?? [],
67
+ ranges.deletion,
68
+ );
69
+ }
70
+ if (ranges.addition.length > 0) {
71
+ nextTokenMap[pairedAdditionLine.id] = applyDiffRangesToTokens(
72
+ nextTokenMap[pairedAdditionLine.id] ?? [],
73
+ ranges.addition,
74
+ );
75
+ }
76
+ });
77
+
78
+ return nextTokenMap;
79
+}
80
+
81
+export function highlightReviewSelectedLines(input: {
82
+ readonly filePath: string;
83
+ readonly lines: ReadonlyArray<ReviewRenderableLineRow>;
84
+ readonly theme: HighlightScheme;
85
+}): Record<string, ReadonlyArray<ReviewHighlightedToken>> {
86
+ if (input.lines.length === 0) {
87
+ return {};
88
+ }
89
+
90
+ // Deleted and added lines each read as their own continuous source.
91
+ const language = resolveHighlightLanguage({ path: input.filePath });
92
+ const deletionLines = input.lines.filter((line) => line.change === "delete");
93
+ const additionLikeLines = input.lines.filter((line) => line.change !== "delete");
94
+ const highlightSide = (lines: ReadonlyArray<ReviewRenderableLineRow>) =>
95
+ highlightCode(lines.map((line) => line.content).join("\n"), language, input.theme);
96
+ const deletionTokens = highlightSide(deletionLines);
97
+ const additionTokens = highlightSide(additionLikeLines);
98
+
99
+ const tokenMap: Record<string, ReadonlyArray<ReviewHighlightedToken>> = {};
100
+ deletionLines.forEach((line, index) => {
101
+ tokenMap[line.id] = deletionTokens[index] ?? [];
102
+ });
103
+ additionLikeLines.forEach((line, index) => {
104
+ tokenMap[line.id] = additionTokens[index] ?? [];
105
+ });
106
+
107
+ return applyWordAltDiffHighlightsToSelectedLines({
108
+ lines: input.lines,
109
+ tokenMap,
110
+ });
111
+}
apps/mobile/src/features/review/incrementalSnippet.test.ts
deleted
-67
@@ -1,67 +0,0 @@
1
-import { createHighlighterCore } from "@shikijs/core";
2
-import { createJavaScriptRegexEngine } from "@shikijs/engine-javascript";
3
-import typescript from "@shikijs/langs/typescript";
4
-import dark from "@shikijs/themes/github-dark-default";
5
-import { describe, expect, it } from "vite-plus/test";
6
-
7
-import { createIncrementalSnippet } from "./incrementalSnippet";
8
-import { highlightCodeSnippet } from "./shikiReviewHighlighter";
9
-
10
-const highlighter = await createHighlighterCore({
11
- langs: [typescript],
12
- themes: [dark],
13
- engine: createJavaScriptRegexEngine(),
14
-});
15
-const rendered = (lines: ReturnType<typeof highlighter.codeToTokensBase>) =>
16
- lines.map((line) => line.map(({ content, color, fontStyle }) => ({ content, color, fontStyle })));
17
-const options = { lang: "typescript", theme: "github-dark-default" };
18
-
19
-describe("incremental snippet highlighting", () => {
20
- it("matches full highlighting through partial lines, multiline syntax, edits and truncation", async () => {
21
- const highlight = createIncrementalSnippet(highlighter, options.lang, options.theme);
22
- const source = "/* comment\nstill comment */\nconst text = `first\nsecond ${42}`;\n";
23
- for (let end = 1; end <= source.length; end++) {
24
- const code = source.slice(0, end);
25
- expect(rendered(highlight.read(code) ?? (await highlight(code)))).toEqual(
26
- rendered(highlighter.codeToTokensBase(code, options)),
27
- );
28
- }
29
- for (const code of ['const other = "new";\n', "const other", source, source.slice(0, 20)]) {
30
- expect(rendered(highlight.read(code) ?? (await highlight(code)))).toEqual(
31
- rendered(highlighter.codeToTokensBase(code, options)),
32
- );
33
- }
34
- });
35
-
36
- it("carries grammar state across batches and overlapping updates", async () => {
37
- const highlight = createIncrementalSnippet(highlighter, options.lang, options.theme);
38
- const code = "/*\n" + "still a comment\n".repeat(410) + "*/\nconst value = 42;";
39
- const first = highlight(code);
40
- const next = highlight("const changed = true;\n");
41
- expect(rendered(await first)).toEqual(rendered(highlighter.codeToTokensBase(code, options)));
42
- expect(rendered(await next)).toEqual(
43
- rendered(highlighter.codeToTokensBase("const changed = true;\n", options)),
44
- );
45
- const last = 'const changed = true;\nconst tail = "ok";';
46
- expect(rendered(await highlight(last))).toEqual(
47
- rendered(highlighter.codeToTokensBase(last, options)),
48
- );
49
- });
50
-
51
- it("resets session on language, theme, CRLF, long-line and empty input changes", async () => {
52
- const session = {};
53
- const cases = [
54
- { code: "/* hello\nworld */", language: "ts", theme: "dark" as const },
55
- { code: "/* hello\nworld */\nconst n = 3;", language: "ts", theme: "light" as const },
56
- { code: "hello\nworld", language: "text", theme: "light" as const },
57
- { code: "const n = 2;\r\nconst m = 3;", language: "ts", theme: "dark" as const },
58
- { code: "a".repeat(1100), language: "ts", theme: "dark" as const },
59
- { code: "", language: "ts", theme: "dark" as const },
60
- { code: "const fresh = true;\n", language: "ts", theme: "dark" as const },
61
- ];
62
- for (const input of cases)
63
- expect(await highlightCodeSnippet({ ...input, session })).toEqual(
64
- await highlightCodeSnippet(input),
65
- );
66
- });
67
-});
apps/mobile/src/features/review/incrementalSnippet.ts
deleted
-65
@@ -1,65 +0,0 @@
1
-import type { HighlighterCore } from "@shikijs/core";
2
-
3
-export function createIncrementalSnippet(
4
- highlighter: HighlighterCore,
5
- language: string,
6
- theme: string,
7
-) {
8
- const options = { lang: language, theme };
9
- let cached:
10
- | {
11
- prefix: string;
12
- tokens: ReturnType<HighlighterCore["codeToTokensBase"]>;
13
- state: ReturnType<HighlighterCore["getLastGrammarState"]>;
14
- }
15
- | undefined;
16
- let revision = 0;
17
-
18
- function* tokenize(code: string) {
19
- const currentRevision = ++revision;
20
- const previous = cached && code.startsWith(cached.prefix) ? cached : undefined;
21
- const end = code.lastIndexOf("\n") + 1;
22
- let state = previous?.state;
23
- const tokens = [...(previous?.tokens ?? [])];
24
- const completed = code.slice(previous?.prefix.length ?? 0, end);
25
- if (completed) {
26
- const lines = completed.slice(0, -1).split("\n");
27
- for (let offset = 0; offset < lines.length; offset += 200) {
28
- const batch = highlighter.codeToTokensBase(lines.slice(offset, offset + 200).join("\n"), {
29
- ...options,
30
- ...(state ? { grammarState: state } : {}),
31
- });
32
- state = highlighter.getLastGrammarState(batch);
33
- tokens.push(...batch);
34
- if (offset + 200 < lines.length) yield;
35
- }
36
- }
37
- if (currentRevision === revision) {
38
- cached = state ? { prefix: code.slice(0, end), tokens, state } : undefined;
39
- }
40
- return [
41
- ...tokens,
42
- ...highlighter.codeToTokensBase(code.slice(end), {
43
- ...options,
44
- ...(state ? { grammarState: state } : {}),
45
- }),
46
- ];
47
- }
48
- const highlight = async (code: string) => {
49
- const work = tokenize(code);
50
- let next = work.next();
51
- while (!next.done) {
52
- await new Promise<void>((resolve) => setTimeout(resolve, 0));
53
- next = work.next();
54
- }
55
- return next.value;
56
- };
57
- highlight.read = (code: string) => {
58
- if (!cached || !code.startsWith(cached.prefix)) return undefined;
59
- const tail = code.slice(cached.prefix.length);
60
- if (tail.length > 2_000 || tail.split("\n").length > 200) return undefined;
61
- const next = tokenize(code).next();
62
- return next.done ? next.value : undefined;
63
- };
64
- return highlight;
65
-}
apps/mobile/src/features/review/nativeReviewDiffAdapter.ts
+3
-34
@@ -1,11 +1,9 @@
1
import type { NativeReviewDiffRow, NativeReviewDiffTheme } from "../diffs/nativeReviewDiffSurface";
2
-import type {
3
- NativeReviewDiffFile,
4
- NativeReviewDiffLanguage,
5
-} from "../diffs/nativeReviewDiffTypes";
2
+import type { NativeReviewDiffFile } from "../diffs/nativeReviewDiffTypes";
3
import * as Arr from "effect/Array";
4
import { pipe } from "effect/Function";
5
import type { ResolvedMobileCodeSurface } from "../../lib/appearancePreferences";
6
+import { resolveHighlightLanguage } from "../../lib/highlightLanguage";
7
import { type MobileThemeId, type MobileThemeVariables } from "../../lib/mobileTheme";
8
import { getMobileTerminalTheme, type TerminalAppearanceScheme } from "../terminal/terminalTheme";
9
import { computeWordAltDiffRanges } from "./reviewWordDiffs";
@@ -236,35 +234,6 @@ function mapChangeType(file: ReviewRenderableFile): NativeReviewDiffRow["changeT
234
}
235
}
236
239
-function getLanguageForPath(
240
- filePath: string,
241
- languageHint: string | null,
242
-): NativeReviewDiffLanguage {
243
- const hinted = languageHint?.toLowerCase();
244
- if (hinted === "typescript" || hinted === "tsx" || hinted === "javascript" || hinted === "jsx") {
245
- return hinted;
246
- }
247
- if (hinted === "json" || hinted === "yaml" || hinted === "bash" || hinted === "diff") {
248
- return hinted;
249
- }
250
-
251
- const normalizedPath = filePath.toLowerCase();
252
- if (normalizedPath.endsWith(".tsx")) return "tsx";
253
- if (normalizedPath.endsWith(".ts")) return "typescript";
254
- if (normalizedPath.endsWith(".jsx")) return "jsx";
255
- if (normalizedPath.endsWith(".js") || normalizedPath.endsWith(".cjs")) return "javascript";
256
- if (normalizedPath.endsWith(".json") || normalizedPath.endsWith(".jsonc")) return "json";
257
- if (normalizedPath.endsWith(".yml") || normalizedPath.endsWith(".yaml")) return "yaml";
258
- if (
259
- normalizedPath.endsWith(".sh") ||
260
- normalizedPath.includes("/bin/") ||
261
- normalizedPath.includes("shell")
262
- ) {
263
- return "bash";
264
- }
265
- return "diff";
266
-}
267
-
237
function createNoticeRow(fileId: string, suffix: string, text: string): NativeReviewDiffRow {
238
return {
239
kind: "notice",
@@ -548,7 +517,7 @@ function prepareNativeReviewDiffData(parsedDiff: ReviewParsedDiff): PreparedNati
517
const files = parsedDiff.files.map<NativeReviewDiffFile>((file) => ({
518
id: file.id,
519
path: file.path,
551
- language: getLanguageForPath(file.path, file.languageHint),
520
+ language: resolveHighlightLanguage({ language: file.languageHint, path: file.path }),
521
additions: file.additions,
522
deletions: file.deletions,
523
}));
apps/mobile/src/features/review/reviewDiffBridgeKeys.ts
+2
-2
@@ -1,4 +1,4 @@
1
-import type { NativeReviewDiffHighlightScheme } from "../diffs/nativeReviewDiffHighlighter";
1
+import type { HighlightScheme } from "../../lib/highlights";
2
3
function hashReviewDiffKey(diff: string | null | undefined): string {
4
if (!diff) {
@@ -16,7 +16,7 @@ function hashReviewDiffKey(diff: string | null | undefined): string {
16
export function buildNativeReviewTokensResetKey(input: {
17
readonly threadKey: string | null;
18
readonly sectionId: string | null;
19
- readonly scheme: NativeReviewDiffHighlightScheme;
19
+ readonly scheme: HighlightScheme;
20
readonly diff: string | null | undefined;
21
readonly fileCount: number;
22
readonly rowCount: number;
apps/mobile/src/features/review/reviewHighlighterEngine.ts
deleted
-31
@@ -1,31 +0,0 @@
1
-export type ReviewHighlighterEnginePreference = "javascript" | "native";
2
-export type ReviewHighlighterEngine = "javascript" | "native";
3
-
4
-export function resolveReviewHighlighterEnginePreference(
5
- value: string | undefined,
6
-): ReviewHighlighterEnginePreference {
7
- switch (value) {
8
- case "js":
9
- case "javascript":
10
- return "javascript";
11
- case "native":
12
- return "native";
13
- default:
14
- return "native";
15
- }
16
-}
17
-
18
-export function resolveReviewHighlighterEngine(
19
- preference: ReviewHighlighterEnginePreference,
20
- nativeAvailable: boolean,
21
-): ReviewHighlighterEngine {
22
- if (preference === "javascript") {
23
- return "javascript";
24
- }
25
-
26
- if (nativeAvailable) {
27
- return "native";
28
- }
29
-
30
- return "javascript";
31
-}
apps/mobile/src/features/review/shikiReviewHighlighter.test.ts
deleted
-41
@@ -1,41 +0,0 @@
1
-import { describe, expect, it } from "vite-plus/test";
2
-
3
-import { highlightSourceFile } from "./shikiReviewHighlighter";
4
-
5
-describe("highlightSourceFile", () => {
6
- it("preserves one highlighted token row per source line without trailing newlines", async () => {
7
- const lines = [
8
- 'const items = ["a"];',
9
- 'expect(items).toEqual(["a"]);',
10
- "const next = items.map((item) => item.toUpperCase());",
11
- 'expect(next).toContain("A");',
12
- ];
13
-
14
- const highlighted = await highlightSourceFile({
15
- path: "apps/mobile/src/example.ts",
16
- contents: lines.join("\n"),
17
- theme: "light",
18
- });
19
-
20
- expect(highlighted.map((tokens) => tokens.map((token) => token.content).join(""))).toEqual(
21
- lines,
22
- );
23
- });
24
-
25
- it("keeps colors for a block comment that spans highlight batches", async () => {
26
- const body = Array.from({ length: 400 }, (_, index) => `const insideComment${index} = 1;`);
27
- const highlighted = await highlightSourceFile({
28
- path: "example.ts",
29
- contents: ["/*", ...body, "*/", "const after = 2;"].join("\n"),
30
- theme: "dark",
31
- });
32
-
33
- const commentColors = new Set(
34
- highlighted.slice(1, -2).flatMap((line) => line.map((token) => token.color)),
35
- );
36
- expect(commentColors.size).toBe(1);
37
- expect(highlighted.at(-1)?.map((token) => token.color)).not.toEqual(
38
- highlighted[1]?.map((token) => token.color),
39
- );
40
- });
41
-});
apps/mobile/src/features/review/shikiReviewHighlighter.ts
deleted
-679
@@ -1,679 +0,0 @@
1
-import { createHighlighterCore, type GrammarState, type HighlighterCore } from "@shikijs/core";
2
-import { createJavaScriptRegexEngine } from "@shikijs/engine-javascript";
3
-import bashLanguage from "@shikijs/langs/bash";
4
-import javascriptLanguage from "@shikijs/langs/javascript";
5
-import jsonLanguage from "@shikijs/langs/json";
6
-import jsxLanguage from "@shikijs/langs/jsx";
7
-import tsxLanguage from "@shikijs/langs/tsx";
8
-import typescriptLanguage from "@shikijs/langs/typescript";
9
-import yamlLanguage from "@shikijs/langs/yaml";
10
-import githubDarkDefault from "@shikijs/themes/github-dark-default";
11
-import githubLightDefault from "@shikijs/themes/github-light-default";
12
-import { getFiletypeFromFileName } from "@pierre/diffs/utils/getFiletypeFromFileName";
13
-import * as Schema from "effect/Schema";
14
-
15
-import {
16
- resolveReviewHighlighterEngine,
17
- resolveReviewHighlighterEnginePreference,
18
-} from "./reviewHighlighterEngine";
19
-import { createIncrementalSnippet } from "./incrementalSnippet";
20
-import type { ReviewRenderableLineRow } from "./reviewModel";
21
-import { applyDiffRangesToTokens, computeWordAltDiffRanges } from "./reviewWordDiffs";
22
-
23
-export type ReviewDiffTheme = "light" | "dark";
24
-
25
-export class ReviewHighlighterEngineInitializationError extends Schema.TaggedError<ReviewHighlighterEngineInitializationError>()(
26
- "ReviewHighlighterEngineInitializationError",
27
- {
28
- preferredEngine: Schema.Literals(["native", "javascript"]),
29
- attemptedEngine: Schema.Literals(["native", "javascript"]),
30
- cause: Schema.Defect(),
31
- },
32
-) {
33
- override get message(): string {
34
- return `Failed to initialize the ${this.attemptedEngine} review highlighter with ${this.preferredEngine} preferred.`;
35
- }
36
-}
37
-
38
-import type { ReviewHighlightedToken } from "./reviewHighlightedToken.types";
39
-
40
-export type { ReviewHighlightedToken } from "./reviewHighlightedToken.types";
41
-
42
-const SHIKI_THEME_NAME_BY_SCHEME = {
43
- light: "github-light-default",
44
- dark: "github-dark-default",
45
-} as const;
46
-const REVIEW_HIGHLIGHTER_ENGINE_ENV_VALUE =
47
- process.env.EXPO_PUBLIC_REVIEW_HIGHLIGHTER_ENGINE ??
48
- (process.env.NODE_ENV === "test" ? "javascript" : "native");
49
-const REVIEW_HIGHLIGHTER_ENGINE_PREFERENCE = resolveReviewHighlighterEnginePreference(
50
- REVIEW_HIGHLIGHTER_ENGINE_ENV_VALUE,
51
-);
52
-const REVIEW_HIGHLIGHT_CHUNK_LINE_THRESHOLD = 8;
53
-// Bounds each tokenizing call by characters, not lines, so long-line files
54
-// still yield to touches and renders between short batches.
55
-const REVIEW_HIGHLIGHT_CHUNK_CHARACTERS = 2_000;
56
-// A yield waits for the next frame, so batches run back to back until about one
57
-// frame of work has passed instead of yielding after every batch.
58
-const REVIEW_HIGHLIGHT_YIELD_AFTER_MS = 16;
59
-const REVIEW_TOKENIZE_MAX_LINE_LENGTH = 1_000;
60
-const REVIEW_INITIAL_LANGUAGE_MODULES = [
61
- bashLanguage,
62
- javascriptLanguage,
63
- jsonLanguage,
64
- jsxLanguage,
65
- tsxLanguage,
66
- typescriptLanguage,
67
- yamlLanguage,
68
-] satisfies Parameters<typeof createHighlighterCore>[0]["langs"];
69
-const loadedLanguages = new Set<string>([
70
- "text",
71
- "bash",
72
- "javascript",
73
- "json",
74
- "jsx",
75
- "tsx",
76
- "typescript",
77
- "yaml",
78
-]);
79
-const languageLoadingPromises = new Map<string, Promise<boolean>>();
80
-const languageImports: Partial<Record<string, () => Promise<unknown>>> = {
81
- javascript: () => import("@shikijs/langs/javascript"),
82
- typescript: () => import("@shikijs/langs/typescript"),
83
- jsx: () => import("@shikijs/langs/jsx"),
84
- tsx: () => import("@shikijs/langs/tsx"),
85
- python: () => import("@shikijs/langs/python"),
86
- rust: () => import("@shikijs/langs/rust"),
87
- go: () => import("@shikijs/langs/go"),
88
- java: () => import("@shikijs/langs/java"),
89
- kotlin: () => import("@shikijs/langs/kotlin"),
90
- swift: () => import("@shikijs/langs/swift"),
91
- "objective-c": () => import("@shikijs/langs/objective-c"),
92
- c: () => import("@shikijs/langs/c"),
93
- cpp: () => import("@shikijs/langs/cpp"),
94
- csharp: () => import("@shikijs/langs/csharp"),
95
- php: () => import("@shikijs/langs/php"),
96
- ruby: () => import("@shikijs/langs/ruby"),
97
- lua: () => import("@shikijs/langs/lua"),
98
- perl: () => import("@shikijs/langs/perl"),
99
- r: () => import("@shikijs/langs/r"),
100
- dart: () => import("@shikijs/langs/dart"),
101
- scala: () => import("@shikijs/langs/scala"),
102
- elixir: () => import("@shikijs/langs/elixir"),
103
- haskell: () => import("@shikijs/langs/haskell"),
104
- clojure: () => import("@shikijs/langs/clojure"),
105
- ocaml: () => import("@shikijs/langs/ocaml"),
106
- fsharp: () => import("@shikijs/langs/fsharp"),
107
- erlang: () => import("@shikijs/langs/erlang"),
108
- zig: () => import("@shikijs/langs/zig"),
109
- nim: () => import("@shikijs/langs/nim"),
110
- html: () => import("@shikijs/langs/html"),
111
- css: () => import("@shikijs/langs/css"),
112
- scss: () => import("@shikijs/langs/scss"),
113
- less: () => import("@shikijs/langs/less"),
114
- xml: () => import("@shikijs/langs/xml"),
115
- svg: () => import("@shikijs/langs/xml"),
116
- vue: () => import("@shikijs/langs/vue"),
117
- svelte: () => import("@shikijs/langs/svelte"),
118
- astro: () => import("@shikijs/langs/astro"),
119
- json: () => import("@shikijs/langs/json"),
120
- jsonc: () => import("@shikijs/langs/jsonc"),
121
- yaml: () => import("@shikijs/langs/yaml"),
122
- toml: () => import("@shikijs/langs/toml"),
123
- ini: () => import("@shikijs/langs/ini"),
124
- bash: () => import("@shikijs/langs/bash"),
125
- shellscript: () => import("@shikijs/langs/shellscript"),
126
- powershell: () => import("@shikijs/langs/powershell"),
127
- fish: () => import("@shikijs/langs/fish"),
128
- sql: () => import("@shikijs/langs/sql"),
129
- graphql: () => import("@shikijs/langs/graphql"),
130
- prisma: () => import("@shikijs/langs/prisma"),
131
- docker: () => import("@shikijs/langs/docker"),
132
- hcl: () => import("@shikijs/langs/hcl"),
133
- nix: () => import("@shikijs/langs/nix"),
134
- markdown: () => import("@shikijs/langs/markdown"),
135
- mdx: () => import("@shikijs/langs/mdx"),
136
- tex: () => import("@shikijs/langs/tex"),
137
- diff: () => import("@shikijs/langs/diff"),
138
- regex: () => import("@shikijs/langs/regex"),
139
- viml: () => import("@shikijs/langs/viml"),
140
- makefile: () => import("@shikijs/langs/makefile"),
141
- cmake: () => import("@shikijs/langs/cmake"),
142
- groovy: () => import("@shikijs/langs/groovy"),
143
-};
144
-
145
-const languageAliases: Record<string, string> = {
146
- js: "javascript",
147
- mjs: "javascript",
148
- cjs: "javascript",
149
- ts: "typescript",
150
- mts: "typescript",
151
- cts: "typescript",
152
- py: "python",
153
- rb: "ruby",
154
- rs: "rust",
155
- sh: "bash",
156
- zsh: "bash",
157
- shell: "shellscript",
158
- yml: "yaml",
159
- md: "markdown",
160
- "c++": "cpp",
161
- "c#": "csharp",
162
- cs: "csharp",
163
- dockerfile: "docker",
164
- vim: "viml",
165
- objc: "objective-c",
166
- objectivec: "objective-c",
167
- "obj-c": "objective-c",
168
- ps1: "powershell",
169
- pwsh: "powershell",
170
- hs: "haskell",
171
- ex: "elixir",
172
- exs: "elixir",
173
- erl: "erlang",
174
- clj: "clojure",
175
- ml: "ocaml",
176
- fs: "fsharp",
177
- tf: "hcl",
178
- make: "makefile",
179
- plain: "text",
180
- plaintext: "text",
181
- txt: "text",
182
-};
183
-let highlighterPromise: Promise<HighlighterCore> | null = null;
184
-
185
-type LoadedLanguageModule = {
186
- default: Parameters<HighlighterCore["loadLanguage"]>[0];
187
-};
188
-
189
-function isReviewHighlighterDebugLoggingEnabled(): boolean {
190
- return typeof __DEV__ !== "undefined" ? __DEV__ : false;
191
-}
192
-
193
-function logReviewHighlighterDiagnostic(message: string, details?: Record<string, unknown>): void {
194
- if (!isReviewHighlighterDebugLoggingEnabled()) {
195
- return;
196
- }
197
-
198
- if (details) {
199
- console.log(`[review-highlighter] ${message}`, details);
200
- return;
201
- }
202
-
203
- console.log(`[review-highlighter] ${message}`);
204
-}
205
-
206
-function logReviewHighlighterDiagnosticError(message: string, error: unknown): void {
207
- if (!isReviewHighlighterDebugLoggingEnabled()) {
208
- return;
209
- }
210
- console.error(`[review-highlighter] ${message}`, error);
211
-}
212
-
213
-function stripTrailingNewline(value: string): string {
214
- return value.endsWith("\n") ? value.slice(0, -1) : value;
215
-}
216
-
217
-function joinPatchLines(lines: ReadonlyArray<string>): string {
218
- return lines.map(stripTrailingNewline).join("\n");
219
-}
220
-
221
-function waitForNextFrame(): Promise<void> {
222
- return new Promise((resolve) => {
223
- setTimeout(resolve, 0);
224
- });
225
-}
226
-
227
-async function getHighlighter(): Promise<HighlighterCore> {
228
- if (!highlighterPromise) {
229
- const configuredHighlighterPromise = (async () => {
230
- let nativeEngineAvailable = false;
231
- let nativeInitializationError: ReviewHighlighterEngineInitializationError | undefined;
232
-
233
- logReviewHighlighterDiagnostic("initializing", {
234
- configuredPreference: REVIEW_HIGHLIGHTER_ENGINE_ENV_VALUE,
235
- preference: REVIEW_HIGHLIGHTER_ENGINE_PREFERENCE,
236
- });
237
-
238
- const themes = [githubLightDefault, githubDarkDefault];
239
-
240
- if (REVIEW_HIGHLIGHTER_ENGINE_PREFERENCE !== "javascript") {
241
- try {
242
- const nativeEngineModule = await import("react-native-shiki-engine");
243
- nativeEngineAvailable = nativeEngineModule.isNativeEngineAvailable();
244
- logReviewHighlighterDiagnostic("checked native engine availability", {
245
- nativeEngineAvailable,
246
- });
247
-
248
- if (nativeEngineAvailable) {
249
- logReviewHighlighterDiagnostic("creating native regex engine");
250
- const highlighter = await createHighlighterCore({
251
- themes,
252
- langs: REVIEW_INITIAL_LANGUAGE_MODULES,
253
- engine: nativeEngineModule.createNativeEngine(),
254
- });
255
- logReviewHighlighterDiagnostic("using native engine");
256
- return highlighter;
257
- }
258
- } catch (error) {
259
- nativeInitializationError = new ReviewHighlighterEngineInitializationError({
260
- preferredEngine: REVIEW_HIGHLIGHTER_ENGINE_PREFERENCE,
261
- attemptedEngine: "native",
262
- cause: error,
263
- });
264
- logReviewHighlighterDiagnosticError(
265
- "native engine initialization failed; falling back to javascript",
266
- nativeInitializationError,
267
- );
268
- nativeEngineAvailable = false;
269
- }
270
- } else {
271
- logReviewHighlighterDiagnostic("skipping native engine probe", {
272
- reason: "preference-forced-javascript",
273
- });
274
- }
275
-
276
- const engine = resolveReviewHighlighterEngine(
277
- REVIEW_HIGHLIGHTER_ENGINE_PREFERENCE,
278
- nativeEngineAvailable,
279
- );
280
- let highlighter: HighlighterCore;
281
- try {
282
- highlighter = await createHighlighterCore({
283
- themes,
284
- langs: REVIEW_INITIAL_LANGUAGE_MODULES,
285
- engine: createJavaScriptRegexEngine(),
286
- });
287
- } catch (cause) {
288
- const javascriptError = new ReviewHighlighterEngineInitializationError({
289
- preferredEngine: REVIEW_HIGHLIGHTER_ENGINE_PREFERENCE,
290
- attemptedEngine: "javascript",
291
- cause,
292
- });
293
- if (!nativeInitializationError) throw javascriptError;
294
- throw new ReviewHighlighterEngineInitializationError({
295
- preferredEngine: REVIEW_HIGHLIGHTER_ENGINE_PREFERENCE,
296
- attemptedEngine: "javascript",
297
- cause: new AggregateError(
298
- [nativeInitializationError, javascriptError],
299
- "Native and JavaScript review highlighter initialization failed.",
300
- { cause: nativeInitializationError },
301
- ),
302
- });
303
- }
304
- logReviewHighlighterDiagnostic("using javascript engine", {
305
- resolvedEngine: engine,
306
- });
307
- return highlighter;
308
- })();
309
-
310
- highlighterPromise = configuredHighlighterPromise.catch((error) => {
311
- highlighterPromise = null;
312
- throw error;
313
- });
314
- }
315
-
316
- return highlighterPromise;
317
-}
318
-
319
-function resolveLanguageAlias(language: string): string {
320
- const normalized = language.toLowerCase();
321
- return languageAliases[normalized] ?? normalized;
322
-}
323
-
324
-function resolveLoadedLanguageFromPath(
325
- path: string,
326
- languageHint: string | null = null,
327
-): string | null {
328
- const detectedLanguage = languageHint ?? getFiletypeFromFileName(path);
329
- if (!detectedLanguage) {
330
- return "text";
331
- }
332
-
333
- const candidate = resolveLanguageAlias(detectedLanguage);
334
- if (candidate === "text" || candidate === "ansi") {
335
- return "text";
336
- }
337
-
338
- if (!(candidate in languageImports)) {
339
- return "text";
340
- }
341
-
342
- return loadedLanguages.has(candidate) ? candidate : null;
343
-}
344
-
345
-async function loadSingleLanguage(
346
- highlighter: HighlighterCore,
347
- language: string,
348
-): Promise<boolean> {
349
- if (loadedLanguages.has(language)) {
350
- return true;
351
- }
352
-
353
- const existingPromise = languageLoadingPromises.get(language);
354
- if (existingPromise) {
355
- return existingPromise;
356
- }
357
-
358
- const importer = languageImports[language];
359
- if (!importer) {
360
- return false;
361
- }
362
-
363
- const loadingPromise = (async () => {
364
- try {
365
- const languageModule = (await importer()) as LoadedLanguageModule;
366
- await highlighter.loadLanguage(languageModule.default);
367
- loadedLanguages.add(language);
368
- return true;
369
- } catch {
370
- return false;
371
- } finally {
372
- languageLoadingPromises.delete(language);
373
- }
374
- })();
375
-
376
- languageLoadingPromises.set(language, loadingPromise);
377
- return loadingPromise;
378
-}
379
-
380
-async function resolveLanguageFromPath(
381
- path: string,
382
- languageHint: string | null = null,
383
-): Promise<string> {
384
- const loadedLanguage = resolveLoadedLanguageFromPath(path, languageHint);
385
- if (loadedLanguage) {
386
- return loadedLanguage;
387
- }
388
-
389
- const detectedLanguage = languageHint ?? getFiletypeFromFileName(path);
390
- if (!detectedLanguage) {
391
- return "text";
392
- }
393
-
394
- const candidate = resolveLanguageAlias(detectedLanguage);
395
- if (candidate === "text" || candidate === "ansi") {
396
- return "text";
397
- }
398
-
399
- if (!(candidate in languageImports)) {
400
- return "text";
401
- }
402
-
403
- if (loadedLanguages.has(candidate)) {
404
- return candidate;
405
- }
406
-
407
- const highlighter = await getHighlighter();
408
- const loaded = await loadSingleLanguage(highlighter, candidate);
409
- if (!loaded) {
410
- return "text";
411
- }
412
-
413
- return candidate;
414
-}
415
-
416
-type RawHighlightedLine = ReadonlyArray<{ content: string; color?: string; fontStyle?: number }>;
417
-const normalizedLines = new WeakMap<RawHighlightedLine, ReadonlyArray<ReviewHighlightedToken>>();
418
-
419
-function normalizeHighlightedLines(
420
- tokenLines: ReadonlyArray<RawHighlightedLine>,
421
-): ReadonlyArray<ReadonlyArray<ReviewHighlightedToken>> {
422
- return tokenLines.map((line) => {
423
- const cached = normalizedLines.get(line);
424
- if (cached) return cached;
425
- const normalized = line.map((token) => ({
426
- content: token.content,
427
- color: token.color ?? null,
428
- fontStyle: token.fontStyle ?? null,
429
- }));
430
- normalizedLines.set(line, normalized);
431
- return normalized;
432
- });
433
-}
434
-
435
-function applyWordAltDiffHighlightsToSelectedLines(input: {
436
- readonly lines: ReadonlyArray<ReviewRenderableLineRow>;
437
- readonly tokenMap: Record<string, ReadonlyArray<ReviewHighlightedToken>>;
438
-}): Record<string, ReadonlyArray<ReviewHighlightedToken>> {
439
- const additionLineByTokenIndex = new Map<number, ReviewRenderableLineRow>();
440
- const deletionLineByTokenIndex = new Map<number, ReviewRenderableLineRow>();
441
-
442
- input.lines.forEach((line) => {
443
- if (line.change === "add" && line.additionTokenIndex !== null) {
444
- additionLineByTokenIndex.set(line.additionTokenIndex, line);
445
- }
446
- if (line.change === "delete" && line.deletionTokenIndex !== null) {
447
- deletionLineByTokenIndex.set(line.deletionTokenIndex, line);
448
- }
449
- });
450
-
451
- const nextTokenMap = { ...input.tokenMap };
452
- const processedPairs = new Set<string>();
453
-
454
- input.lines.forEach((line) => {
455
- if (line.change === "context" || !line.comparison) {
456
- return;
457
- }
458
-
459
- const pairedDeletionLine =
460
- line.change === "delete"
461
- ? line
462
- : line.comparison.change === "delete"
463
- ? deletionLineByTokenIndex.get(line.comparison.tokenIndex)
464
- : undefined;
465
- const pairedAdditionLine =
466
- line.change === "add"
467
- ? line
468
- : line.comparison.change === "add"
469
- ? additionLineByTokenIndex.get(line.comparison.tokenIndex)
470
- : undefined;
471
-
472
- if (
473
- !pairedDeletionLine ||
474
- !pairedAdditionLine ||
475
- pairedDeletionLine.deletionTokenIndex === null ||
476
- pairedAdditionLine.additionTokenIndex === null
477
- ) {
478
- return;
479
- }
480
-
481
- const pairKey = `${pairedDeletionLine.deletionTokenIndex}:${pairedAdditionLine.additionTokenIndex}`;
482
- if (processedPairs.has(pairKey)) {
483
- return;
484
- }
485
- processedPairs.add(pairKey);
486
-
487
- const ranges = computeWordAltDiffRanges({
488
- deletionLine: pairedDeletionLine.content,
489
- additionLine: pairedAdditionLine.content,
490
- });
491
-
492
- if (ranges.deletion.length > 0) {
493
- nextTokenMap[pairedDeletionLine.id] = applyDiffRangesToTokens(
494
- nextTokenMap[pairedDeletionLine.id] ?? [],
495
- ranges.deletion,
496
- );
497
- }
498
- if (ranges.addition.length > 0) {
499
- nextTokenMap[pairedAdditionLine.id] = applyDiffRangesToTokens(
500
- nextTokenMap[pairedAdditionLine.id] ?? [],
501
- ranges.addition,
502
- );
503
- }
504
- });
505
-
506
- return nextTokenMap;
507
-}
508
-
509
-async function highlightLines(
510
- code: string,
511
- language: string,
512
- theme: string,
513
-): Promise<ReadonlyArray<ReadonlyArray<ReviewHighlightedToken>>> {
514
- if (code.length === 0) {
515
- return [];
516
- }
517
-
518
- const highlighter = await getHighlighter();
519
- const sourceLines = code.split("\n");
520
- const highlightedLines: Array<ReadonlyArray<ReviewHighlightedToken>> = [];
521
- let grammarState: GrammarState | undefined;
522
- let start = 0;
523
- let sliceStartedAt = performance.now();
524
-
525
- while (start < sourceLines.length) {
526
- if (sourceLines[start]!.length > REVIEW_TOKENIZE_MAX_LINE_LENGTH) {
527
- highlightedLines.push([{ content: sourceLines[start]!, color: null, fontStyle: null }]);
528
- grammarState = undefined;
529
- start += 1;
530
- } else {
531
- let end = start;
532
- let characters = 0;
533
- while (end < sourceLines.length) {
534
- const length = sourceLines[end]!.length;
535
- if (
536
- length > REVIEW_TOKENIZE_MAX_LINE_LENGTH ||
537
- (end > start && characters + length + 1 > REVIEW_HIGHLIGHT_CHUNK_CHARACTERS)
538
- ) {
539
- break;
540
- }
541
- characters += length + (end > start ? 1 : 0);
542
- end += 1;
543
- }
544
-
545
- const tokenLines = highlighter.codeToTokensBase(sourceLines.slice(start, end).join("\n"), {
546
- lang: language,
547
- theme,
548
- grammarState,
549
- });
550
- grammarState = highlighter.getLastGrammarState(tokenLines);
551
- highlightedLines.push(...normalizeHighlightedLines(tokenLines));
552
- start = end;
553
- }
554
-
555
- if (
556
- sourceLines.length > REVIEW_HIGHLIGHT_CHUNK_LINE_THRESHOLD &&
557
- start < sourceLines.length &&
558
- performance.now() - sliceStartedAt >= REVIEW_HIGHLIGHT_YIELD_AFTER_MS
559
- ) {
560
- await waitForNextFrame();
561
- sliceStartedAt = performance.now();
562
- }
563
- }
564
-
565
- return highlightedLines;
566
-}
567
-
568
-const snippetSessions = new WeakMap<
569
- object,
570
- { language: string; theme: string; highlight: ReturnType<typeof createIncrementalSnippet> }
571
->();
572
-
573
-export async function highlightCodeSnippet(input: {
574
- readonly session?: object;
575
- readonly code: string;
576
- readonly language?: string | null;
577
- readonly theme: ReviewDiffTheme;
578
-}): Promise<ReadonlyArray<ReadonlyArray<ReviewHighlightedToken>>> {
579
- const languageHint = input.language?.trim() || "text";
580
- const language = await resolveLanguageFromPath(`snippet.${languageHint}`, languageHint);
581
- const theme = SHIKI_THEME_NAME_BY_SCHEME[input.theme];
582
- if (
583
- !input.session ||
584
- language === "text" ||
585
- input.code.length === 0 ||
586
- input.code.length > 100_000 ||
587
- input.code.includes("\r") ||
588
- input.code.split("\n").some((line) => line.length > REVIEW_TOKENIZE_MAX_LINE_LENGTH)
589
- ) {
590
- if (input.session) snippetSessions.delete(input.session);
591
- return highlightLines(input.code, language, theme);
592
- }
593
- const highlighter = await getHighlighter();
594
- let session = snippetSessions.get(input.session);
595
- if (!session || session.language !== language || session.theme !== theme) {
596
- session = {
597
- language,
598
- theme,
599
- highlight: createIncrementalSnippet(highlighter, language, theme),
600
- };
601
- snippetSessions.set(input.session, session);
602
- }
603
- return normalizeHighlightedLines(await session.highlight(input.code));
604
-}
605
-
606
-highlightCodeSnippet.read = (input: Parameters<typeof highlightCodeSnippet>[0]) => {
607
- if (!input.session || !input.code || input.code.length > 100_000 || input.code.includes("\r"))
608
- return undefined;
609
- const session = snippetSessions.get(input.session);
610
- const hint = input.language?.trim() || "text";
611
- const language = resolveLoadedLanguageFromPath(`snippet.${hint}`, hint);
612
- if (
613
- !session ||
614
- session.language !== language ||
615
- session.theme !== SHIKI_THEME_NAME_BY_SCHEME[input.theme] ||
616
- input.code.split("\n").some((line) => line.length > REVIEW_TOKENIZE_MAX_LINE_LENGTH)
617
- )
618
- return undefined;
619
- const tokens = session.highlight.read(input.code);
620
- return tokens ? normalizeHighlightedLines(tokens) : undefined;
621
-};
622
-
623
-export async function highlightSourceFile(input: {
624
- readonly path: string;
625
- readonly contents: string;
626
- readonly theme: ReviewDiffTheme;
627
-}): Promise<ReadonlyArray<ReadonlyArray<ReviewHighlightedToken>>> {
628
- const language = await resolveLanguageFromPath(input.path);
629
- return highlightLines(input.contents, language, SHIKI_THEME_NAME_BY_SCHEME[input.theme]);
630
-}
631
-
632
-export async function highlightReviewSelectedLines(input: {
633
- readonly filePath: string;
634
- readonly lines: ReadonlyArray<ReviewRenderableLineRow>;
635
- readonly theme: ReviewDiffTheme;
636
- readonly languageHint?: string | null;
637
-}): Promise<Record<string, ReadonlyArray<ReviewHighlightedToken>>> {
638
- if (input.lines.length === 0) {
639
- return {};
640
- }
641
-
642
- const loadedLanguage = resolveLoadedLanguageFromPath(input.filePath, input.languageHint ?? null);
643
- const language =
644
- loadedLanguage ?? (await resolveLanguageFromPath(input.filePath, input.languageHint ?? null));
645
- const shikiTheme = SHIKI_THEME_NAME_BY_SCHEME[input.theme];
646
- const additionLikeLines: string[] = [];
647
- const deletionLines: string[] = [];
648
- for (const line of input.lines) {
649
- if (line.change === "delete") {
650
- deletionLines.push(`${line.content}\n`);
651
- } else {
652
- additionLikeLines.push(`${line.content}\n`);
653
- }
654
- }
655
- const [additionTokens, deletionTokens] = await Promise.all([
656
- highlightLines(joinPatchLines(additionLikeLines), language, shikiTheme),
657
- highlightLines(joinPatchLines(deletionLines), language, shikiTheme),
658
- ]);
659
-
660
- const tokenMap: Record<string, ReadonlyArray<ReviewHighlightedToken>> = {};
661
- let additionIndex = 0;
662
- let deletionIndex = 0;
663
-
664
- input.lines.forEach((line) => {
665
- if (line.change === "delete") {
666
- tokenMap[line.id] = deletionTokens[deletionIndex] ?? [];
667
- deletionIndex += 1;
668
- return;
669
- }
670
-
671
- tokenMap[line.id] = additionTokens[additionIndex] ?? [];
672
- additionIndex += 1;
673
- });
674
-
675
- return applyWordAltDiffHighlightsToSelectedLines({
676
- lines: input.lines,
677
- tokenMap,
678
- });
679
-}
apps/mobile/src/features/review/useNativeReviewDiffHighlighting.ts
+21
-76
@@ -1,12 +1,7 @@
1
-import { settlePromise, squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime";
2
-import { AsyncResult } from "effect/reactivity";
1
import { useEffect, useRef, useState } from "react";
2
5
-import {
6
- highlightNativeReviewDiffVisibleRows,
7
- type NativeReviewDiffHighlightEngine,
8
- type NativeReviewDiffHighlightScheme,
9
-} from "../diffs/nativeReviewDiffHighlighter";
3
+import type { HighlightScheme } from "../../lib/highlights";
4
+import { highlightNativeReviewDiffVisibleRows } from "../diffs/nativeReviewDiffHighlighter";
5
import type { NativeReviewDiffRow } from "../diffs/nativeReviewDiffSurface";
6
import type { NativeReviewDiffFile } from "../diffs/nativeReviewDiffTypes";
7
@@ -19,27 +14,10 @@ function createEmptyTokenPatch(resetKey: string): string {
14
return JSON.stringify({ resetKey, tokensByRowId: {} });
15
}
16
22
-function isReviewDiffDebugLoggingEnabled(): boolean {
23
- return typeof __DEV__ !== "undefined" ? __DEV__ : false;
24
-}
25
-
26
-function logReviewDiffDiagnostic(message: string, details?: Record<string, unknown>): void {
27
- if (!isReviewDiffDebugLoggingEnabled()) {
28
- return;
29
- }
30
-
31
- if (details) {
32
- console.log(`[review-sheet] ${message}`, details);
33
- return;
34
- }
35
-
36
- console.log(`[review-sheet] ${message}`);
37
-}
38
-
17
export function useNativeReviewDiffHighlighting(input: {
18
readonly files: ReadonlyArray<NativeReviewDiffFile>;
19
readonly rows: ReadonlyArray<NativeReviewDiffRow>;
42
- readonly scheme: NativeReviewDiffHighlightScheme;
20
+ readonly scheme: HighlightScheme;
21
readonly resetKey: string;
22
readonly enabled: boolean;
23
}) {
@@ -67,58 +45,25 @@ export function useNativeReviewDiffHighlighting(input: {
45
return;
46
}
47
70
- const abortController = new AbortController();
71
- const requestRange = visibleRange;
72
- const engine: NativeReviewDiffHighlightEngine = "native";
73
-
74
- void (async () => {
75
- const settled = await settlePromise(() =>
76
- highlightNativeReviewDiffVisibleRows({
77
- files,
78
- rows,
79
- scheme,
80
- engine,
81
- firstRowIndex: requestRange.firstRowIndex,
82
- lastRowIndex: requestRange.lastRowIndex,
83
- alreadyHighlightedRowIds: highlightedRowIdsRef.current,
84
- signal: abortController.signal,
85
- }),
86
- );
87
- if (abortController.signal.aborted) return;
88
- if (AsyncResult.isFailure(settled)) {
89
- logReviewDiffDiagnostic("native visible highlight failed", {
90
- error: squashAtomCommandFailure(settled),
91
- resetKey,
92
- scheme,
93
- firstRowIndex: requestRange.firstRowIndex,
94
- lastRowIndex: requestRange.lastRowIndex,
95
- });
96
- return;
97
- }
98
- const result = settled.value;
99
- if (result.rowCount === 0) return;
100
-
101
- for (const rowId of Object.keys(result.tokensByRowId)) {
102
- highlightedRowIdsRef.current.add(rowId);
103
- }
104
-
105
- const chunkIndex = visibleChunkIndexRef.current;
106
- visibleChunkIndexRef.current += 1;
107
- setTokensPatchJson(
108
- JSON.stringify({
109
- resetKey,
110
- chunkIndex,
111
- fileId: "visible",
112
- filePath: "visible rows",
113
- language: "diff",
114
- lineCount: result.rowCount,
115
- durationMs: result.durationMs,
116
- tokensByRowId: result.tokensByRowId,
117
- }),
118
- );
119
- })();
48
+ const result = highlightNativeReviewDiffVisibleRows({
49
+ files,
50
+ rows,
51
+ scheme,
52
+ firstRowIndex: visibleRange.firstRowIndex,
53
+ lastRowIndex: visibleRange.lastRowIndex,
54
+ alreadyHighlightedRowIds: highlightedRowIdsRef.current,
55
+ });
56
+ if (result.rowCount === 0) return;
57
+
58
+ for (const rowId of Object.keys(result.tokensByRowId)) {
59
+ highlightedRowIdsRef.current.add(rowId);
60
+ }
61
121
- return () => abortController.abort();
62
+ const chunkIndex = visibleChunkIndexRef.current;
63
+ visibleChunkIndexRef.current += 1;
64
+ setTokensPatchJson(
65
+ JSON.stringify({ resetKey, chunkIndex, tokensByRowId: result.tokensByRowId }),
66
+ );
67
}, [enabled, files, resetKey, rows, scheme, visibleRange]);
68
69
return {
apps/mobile/src/features/threads/ThreadFeed.tsx
-2
@@ -172,7 +172,6 @@ import { setReviewSelectedSectionId } from "../review/reviewState";
172
import { Menu } from "../../components/ui/Menu";
173
import { copyPromptLink } from "../prompt-links/prompt-link-actions";
174
import { parseReviewCommentMessageSegments } from "../review/reviewCommentSelection";
175
-import type { ReviewDiffTheme } from "../review/shikiReviewHighlighter";
175
import {
176
ReviewCommentCard,
177
useReviewCommentColors,
@@ -239,7 +238,6 @@ import { resolveThreadFeedFixedItemSize } from "./thread-feed-item-size";
238
import { htmlRenderFrameHeight } from "@t3tools/shared/htmlRender";
239
import { htmlRenderRowHeight, ThreadHtmlRender } from "./HtmlRenderWebView";
240
import { ThreadMcpApp } from "./McpAppWebView";
242
-import { useMarkdownCodeHighlight } from "./markdownCodeHighlightState";
241
import {
242
assetEnvironment,
243
useAssetUrl,
apps/mobile/src/features/threads/markdownCodeHighlightState.ts
+11
-77
@@ -1,87 +1,21 @@
1
-import { useAtomValue } from "@effect/atom-react";
2
-import * as Data from "effect/Data";
3
-import * as Effect from "effect/Effect";
4
-import { AsyncResult, Atom } from "effect/reactivity";
1
import { useMemo } from "react";
2
7
-import {
8
- highlightCodeSnippet,
9
- type ReviewDiffTheme,
10
- type ReviewHighlightedToken,
11
-} from "../review/shikiReviewHighlighter";
12
-
13
-const MARKDOWN_CODE_HIGHLIGHT_IDLE_TTL_MS = 5 * 60_000;
14
-
15
-export type MarkdownHighlightedCode = ReadonlyArray<ReadonlyArray<ReviewHighlightedToken>>;
16
-
17
-export interface MarkdownCodeHighlightInput {
18
- readonly code: string;
19
- readonly enabled: boolean;
20
- readonly language: string;
21
- readonly theme: ReviewDiffTheme;
22
-}
23
-
24
-type MarkdownCodeHighlighter = (
25
- input: MarkdownCodeHighlightInput,
26
-) => Promise<MarkdownHighlightedCode | null>;
27
-
28
-class MarkdownCodeHighlightCacheKey extends Data.Class<MarkdownCodeHighlightInput> {}
29
-
30
-class MarkdownCodeHighlightError extends Data.TaggedError("MarkdownCodeHighlightError")<{
31
- readonly cause: unknown;
32
-}> {}
33
-
34
-export function createMarkdownCodeHighlightAtomFamily(options?: {
35
- readonly highlight?: MarkdownCodeHighlighter;
36
- readonly idleTtlMs?: number;
37
-}) {
38
- const highlight =
39
- options?.highlight ??
40
- ((input: MarkdownCodeHighlightInput) =>
41
- input.enabled
42
- ? highlightCodeSnippet({
43
- code: input.code,
44
- language: input.language,
45
- theme: input.theme,
46
- })
47
- : Promise.resolve(null));
48
- const idleTtlMs = options?.idleTtlMs ?? MARKDOWN_CODE_HIGHLIGHT_IDLE_TTL_MS;
49
- const family = Atom.family((request: MarkdownCodeHighlightCacheKey) =>
50
- Atom.make(
51
- Effect.tryPromise({
52
- try: () => highlight(request),
53
- catch: (cause) => new MarkdownCodeHighlightError({ cause }),
54
- }),
55
- ).pipe(
56
- Atom.setIdleTTL(idleTtlMs),
57
- Atom.withLabel(`mobile:thread-markdown-code-highlight:${request.theme}:${request.language}`),
58
- ),
59
- );
60
-
61
- return (input: MarkdownCodeHighlightInput) => family(new MarkdownCodeHighlightCacheKey(input));
62
-}
63
-
64
-export const markdownCodeHighlightAtom = createMarkdownCodeHighlightAtomFamily();
3
+import { resolveHighlightLanguage } from "../../lib/highlightLanguage";
4
+import { highlightCode, type HighlightedLines, type HighlightScheme } from "../../lib/highlights";
5
6
export function useMarkdownCodeHighlight(input: {
7
readonly code: string;
8
readonly enabled: boolean;
9
readonly language: string | null | undefined;
70
- readonly theme: ReviewDiffTheme;
71
-}): MarkdownHighlightedCode | null {
72
- const normalizedLanguage = input.language?.trim() || "text";
73
- const enabled = input.enabled && Boolean(input.language?.trim());
74
- const atomLanguage = enabled ? normalizedLanguage : "text";
75
- const highlightAtom = useMemo(
10
+ readonly theme: HighlightScheme;
11
+}): HighlightedLines | null {
12
+ const { code, enabled, theme } = input;
13
+ const language = input.language?.trim();
14
+ return useMemo(
15
() =>
77
- markdownCodeHighlightAtom({
78
- code: enabled ? input.code : "",
79
- enabled,
80
- language: atomLanguage,
81
- theme: input.theme,
82
- }),
83
- [atomLanguage, enabled, input.code, input.theme],
16
+ enabled && language
17
+ ? highlightCode(code, resolveHighlightLanguage({ language }), theme)
18
+ : null,
19
+ [code, enabled, language, theme],
20
);
85
- const result = useAtomValue(highlightAtom);
86
- return AsyncResult.isSuccess(result) ? result.value : null;
21
}
apps/mobile/src/lib/highlightLanguage.ts
new
+20
@@ -0,0 +1,20 @@
1
+import { getFiletypeFromFileName } from "@pierre/diffs/utils/getFiletypeFromFileName";
2
+
3
+import { HIGHLIGHTS_LANGUAGE_IDS } from "./highlights.generated";
4
+
5
+/** The native lexer ID for a @pierre/highlights language name, or 0 (plain text). */
6
+export function highlightLanguageId(language: string): number {
7
+ return Object.hasOwn(HIGHLIGHTS_LANGUAGE_IDS, language) ? HIGHLIGHTS_LANGUAGE_IDS[language]! : 0;
8
+}
9
+
10
+/** A @pierre/highlights language for a fence language or file path, or `text`. */
11
+export function resolveHighlightLanguage(input: {
12
+ readonly language?: string | null;
13
+ readonly path?: string;
14
+}): string {
15
+ const hinted = input.language?.trim().toLowerCase();
16
+ if (hinted && highlightLanguageId(hinted) !== 0) return hinted;
17
+ const detected = input.path ? getFiletypeFromFileName(input.path)?.toLowerCase() : undefined;
18
+ if (detected && highlightLanguageId(detected) !== 0) return detected;
19
+ return "text";
20
+}
apps/mobile/src/lib/highlights.generated.ts
new
+371
@@ -0,0 +1,371 @@
1
+// Generated by apps/mobile/scripts/generate-highlights.mts from @pierre/highlights 0.2.0 (highlights.wasm sha256 cf5fc4d83e7c1ddab19d163de096f787f87efe61504909aa469434f61ef51e2e). Do not edit.
2
+
3
+export const HIGHLIGHTS_LANGUAGE_IDS: Readonly<Record<string, number>> = {
4
+ plain: 0,
5
+ plaintext: 0,
6
+ text: 0,
7
+ txt: 0,
8
+ "angular-html": 1,
9
+ asm: 2,
10
+ assembly: 2,
11
+ s: 2,
12
+ astro: 3,
13
+ bash: 4,
14
+ sh: 4,
15
+ shell: 4,
16
+ shellscript: 4,
17
+ shellsession: 4,
18
+ zsh: 4,
19
+ bat: 5,
20
+ batch: 5,
21
+ batchfile: 5,
22
+ cmd: 5,
23
+ dos: 5,
24
+ c: 6,
25
+ h: 6,
26
+ c3: 7,
27
+ clj: 8,
28
+ cljc: 8,
29
+ cljs: 8,
30
+ clojure: 8,
31
+ edn: 8,
32
+ cmake: 9,
33
+ "c++": 10,
34
+ cc: 10,
35
+ cpp: 10,
36
+ cxx: 10,
37
+ hh: 10,
38
+ hpp: 10,
39
+ hxx: 10,
40
+ "c#": 11,
41
+ cs: 11,
42
+ csharp: 11,
43
+ css: 12,
44
+ cu: 13,
45
+ cuda: 13,
46
+ cuh: 13,
47
+ dart: 14,
48
+ diff: 15,
49
+ "git-commit": 15,
50
+ "git-rebase": 15,
51
+ patch: 15,
52
+ containerfile: 16,
53
+ docker: 16,
54
+ dockerfile: 16,
55
+ elixir: 17,
56
+ ex: 17,
57
+ exs: 17,
58
+ elm: 18,
59
+ erl: 19,
60
+ erlang: 19,
61
+ hrl: 19,
62
+ f03: 20,
63
+ f08: 20,
64
+ f90: 20,
65
+ f95: 20,
66
+ fortran: 20,
67
+ "fortran-free-form": 20,
68
+ f: 21,
69
+ f77: 21,
70
+ for: 21,
71
+ "fortran-fixed-form": 21,
72
+ "f#": 22,
73
+ fs: 22,
74
+ fsharp: 22,
75
+ fsi: 22,
76
+ fsx: 22,
77
+ gdresource: 23,
78
+ "godot-resource": 23,
79
+ tres: 23,
80
+ tscn: 23,
81
+ gd: 24,
82
+ gdscript: 24,
83
+ gdshader: 25,
84
+ gdshaderinc: 25,
85
+ "godot-shader": 25,
86
+ gleam: 26,
87
+ comp: 27,
88
+ frag: 27,
89
+ geom: 27,
90
+ glsl: 27,
91
+ vert: 27,
92
+ go: 28,
93
+ golang: 28,
94
+ gql: 29,
95
+ graphql: 29,
96
+ gradle: 30,
97
+ groovy: 30,
98
+ gsh: 30,
99
+ gvy: 30,
100
+ gy: 30,
101
+ haskell: 31,
102
+ hs: 31,
103
+ hlsl: 32,
104
+ htm: 33,
105
+ html: 33,
106
+ java: 34,
107
+ cjs: 35,
108
+ javascript: 35,
109
+ js: 35,
110
+ mjs: 35,
111
+ json: 36,
112
+ jsonc: 36,
113
+ json5: 37,
114
+ jsonl: 38,
115
+ jsx: 39,
116
+ jl: 40,
117
+ julia: 40,
118
+ kotlin: 41,
119
+ kt: 41,
120
+ kts: 41,
121
+ latex: 42,
122
+ tex: 42,
123
+ less: 43,
124
+ cl: 44,
125
+ el: 44,
126
+ elisp: 44,
127
+ "emacs-lisp": 44,
128
+ lisp: 44,
129
+ lsp: 44,
130
+ scheme: 44,
131
+ scm: 44,
132
+ lua: 45,
133
+ make: 46,
134
+ makefile: 46,
135
+ mk: 46,
136
+ markdown: 47,
137
+ md: 47,
138
+ matlab: 48,
139
+ octave: 48,
140
+ mdx: 49,
141
+ nim: 50,
142
+ nix: 51,
143
+ m: 52,
144
+ mm: 52,
145
+ objc: 52,
146
+ objcpp: 52,
147
+ "objective-c": 52,
148
+ "objective-cpp": 52,
149
+ objectivec: 52,
150
+ ml: 53,
151
+ mli: 53,
152
+ ocaml: 53,
153
+ delphi: 54,
154
+ dpk: 54,
155
+ dpr: 54,
156
+ lpr: 54,
157
+ "object-pascal": 54,
158
+ objectpascal: 54,
159
+ pas: 54,
160
+ pascal: 54,
161
+ pp: 54,
162
+ perl: 55,
163
+ pl: 55,
164
+ pm: 55,
165
+ php: 56,
166
+ powershell: 57,
167
+ ps: 57,
168
+ ps1: 57,
169
+ psd1: 57,
170
+ psm1: 57,
171
+ pwsh: 57,
172
+ proto: 58,
173
+ protobuf: 58,
174
+ py: 59,
175
+ python: 59,
176
+ r: 60,
177
+ rscript: 60,
178
+ rb: 61,
179
+ ruby: 61,
180
+ rs: 62,
181
+ rust: 62,
182
+ sass: 63,
183
+ sbt: 64,
184
+ sc: 64,
185
+ scala: 64,
186
+ scss: 65,
187
+ sol: 66,
188
+ solidity: 66,
189
+ sql: 67,
190
+ svelte: 68,
191
+ swift: 69,
192
+ hcl: 70,
193
+ terraform: 70,
194
+ tf: 70,
195
+ tfvars: 70,
196
+ toml: 71,
197
+ "angular-ts": 72,
198
+ cts: 72,
199
+ mts: 72,
200
+ ts: 72,
201
+ typescript: 72,
202
+ tsrx: 73,
203
+ tsx: 74,
204
+ vue: 75,
205
+ wasm: 76,
206
+ wat: 76,
207
+ wgsl: 77,
208
+ svg: 78,
209
+ xml: 78,
210
+ xsd: 78,
211
+ yaml: 79,
212
+ yml: 79,
213
+ zig: 80,
214
+ zon: 80,
215
+};
216
+
217
+/** `[color, fontStyle]` by token ID. fontStyle bits: italic 1, bold 2. */
218
+export const HIGHLIGHTS_THEME_STYLES: Readonly<
219
+ Record<"light" | "dark", ReadonlyArray<readonly [string, number]>>
220
+> = {
221
+ light: [
222
+ ["#0a0a0a", 0],
223
+ ["#18a46c", 0],
224
+ ["#18a46c", 0],
225
+ ["#1ca1c7", 0],
226
+ ["#737373", 0],
227
+ ["#737373", 0],
228
+ ["#d5a910", 0],
229
+ ["#d5a910", 0],
230
+ ["#a631be", 0],
231
+ ["#d52c36", 0],
232
+ ["#18a46c", 0],
233
+ ["#0a0a0a", 0],
234
+ ["#0a0a0a", 1],
235
+ ["#0a0a0a", 2],
236
+ ["#693acf", 0],
237
+ ["#693acf", 0],
238
+ ["#693acf", 0],
239
+ ["#d32a61", 0],
240
+ ["#d32a61", 0],
241
+ ["#d32a61", 0],
242
+ ["#d32a61", 0],
243
+ ["#08c0ef", 0],
244
+ ["#d5901c", 0],
245
+ ["#d5901c", 0],
246
+ ["#1ca1c7", 0],
247
+ ["#08c0ef", 0],
248
+ ["#8a8a8a", 1],
249
+ ["#d32a61", 0],
250
+ ["#009fff", 0],
251
+ ["#d47628", 0],
252
+ ["#d47628", 0],
253
+ ["#636363", 0],
254
+ ["#636363", 0],
255
+ ["#636363", 0],
256
+ ["#636363", 0],
257
+ ["#636363", 0],
258
+ ["#636363", 0],
259
+ ["#636363", 0],
260
+ ["#636363", 0],
261
+ ["#636363", 0],
262
+ ["#d32a61", 0],
263
+ ["#d5512f", 0],
264
+ ["#18a46c", 0],
265
+ ["#693acf", 0],
266
+ ["#199f43", 0],
267
+ ["#16a994", 0],
268
+ ["#17a5af", 0],
269
+ ["#16a994", 0],
270
+ ["#d5a910", 0],
271
+ ["#d5512f", 0],
272
+ ["#d5512f", 0],
273
+ ["#d5512f", 0],
274
+ ["#0a0a0a", 0],
275
+ ["#199f43", 0],
276
+ ["#d5512f", 2],
277
+ ["#a631be", 0],
278
+ ["#a631be", 0],
279
+ ["#a631be", 0],
280
+ ["#d47628", 0],
281
+ ["#636363", 0],
282
+ ["#d5901c", 0],
283
+ ["#a631be", 0],
284
+ ["#737373", 0],
285
+ ["#d32a61", 0],
286
+ ["#009fff", 0],
287
+ ["#d32a61", 0],
288
+ ["#08c0ef", 0],
289
+ ["#a631be", 0],
290
+ ["#a631be", 0],
291
+ ["#d47628", 0],
292
+ ["#d5a910", 0],
293
+ ["#0a0a0a", 0],
294
+ ["#0a0a0a", 0],
295
+ ],
296
+ dark: [
297
+ ["#fafafa", 0],
298
+ ["#60d199", 0],
299
+ ["#60d199", 0],
300
+ ["#68cdf2", 0],
301
+ ["#737373", 0],
302
+ ["#737373", 0],
303
+ ["#ffd452", 0],
304
+ ["#ffd452", 0],
305
+ ["#d568ea", 0],
306
+ ["#ff2e3f", 0],
307
+ ["#07c480", 0],
308
+ ["#fafafa", 0],
309
+ ["#fafafa", 1],
310
+ ["#fafafa", 2],
311
+ ["#9d6afb", 0],
312
+ ["#9d6afb", 0],
313
+ ["#9d6afb", 0],
314
+ ["#ff678d", 0],
315
+ ["#ff678d", 0],
316
+ ["#ff678d", 0],
317
+ ["#ff678d", 0],
318
+ ["#08c0ef", 0],
319
+ ["#ffab16", 0],
320
+ ["#ffab16", 0],
321
+ ["#68cdf2", 0],
322
+ ["#08c0ef", 0],
323
+ ["#636363", 1],
324
+ ["#ff678d", 0],
325
+ ["#009fff", 0],
326
+ ["#ffa359", 0],
327
+ ["#ffa359", 0],
328
+ ["#636363", 0],
329
+ ["#636363", 0],
330
+ ["#636363", 0],
331
+ ["#636363", 0],
332
+ ["#636363", 0],
333
+ ["#636363", 0],
334
+ ["#636363", 0],
335
+ ["#636363", 0],
336
+ ["#636363", 0],
337
+ ["#ff678d", 0],
338
+ ["#ff855e", 0],
339
+ ["#60d199", 0],
340
+ ["#9d6afb", 0],
341
+ ["#5ecc71", 0],
342
+ ["#61d5c0", 0],
343
+ ["#64d1db", 0],
344
+ ["#61d5c0", 0],
345
+ ["#ffd452", 0],
346
+ ["#ff855e", 0],
347
+ ["#ff855e", 0],
348
+ ["#ff855e", 0],
349
+ ["#fafafa", 0],
350
+ ["#5ecc71", 0],
351
+ ["#ff855e", 2],
352
+ ["#d568ea", 0],
353
+ ["#d568ea", 0],
354
+ ["#d568ea", 0],
355
+ ["#ffa359", 0],
356
+ ["#a3a3a3", 0],
357
+ ["#ffab16", 0],
358
+ ["#d568ea", 0],
359
+ ["#737373", 0],
360
+ ["#ff678d", 0],
361
+ ["#009fff", 0],
362
+ ["#ff678d", 0],
363
+ ["#08c0ef", 0],
364
+ ["#d568ea", 0],
365
+ ["#d568ea", 0],
366
+ ["#ffa359", 0],
367
+ ["#ffd452", 0],
368
+ ["#fafafa", 0],
369
+ ["#fafafa", 0],
370
+ ],
371
+};
apps/mobile/src/lib/highlights.test.ts
new
+46
@@ -0,0 +1,46 @@
1
+import { codeToTokens } from "@pierre/highlights";
2
+import { pierreDark, pierreLight } from "@pierre/highlights/themes";
3
+import { describe, expect, it, vi } from "vite-plus/test";
4
+
5
+import { highlightCode } from "./highlights";
6
+
7
+vi.mock("expo", async () => {
8
+ const { createWasmHighlightsModule } = await import("./highlights.testing");
9
+ const highlights = createWasmHighlightsModule();
10
+ return { requireOptionalNativeModule: () => highlights };
11
+});
12
+
13
+describe("highlightCode", () => {
14
+ it("produces @pierre/highlights' own tokens and colors", () => {
15
+ const code = [
16
+ "/** 🎉 docs\r",
17
+ " */",
18
+ "export const greet = (name: string) => <b title={`hi ${name}`}>é</b>;",
19
+ "const multi = `first",
20
+ "second`; // done",
21
+ "",
22
+ ].join("\n");
23
+
24
+ for (const [scheme, theme] of [
25
+ ["light", pierreLight],
26
+ ["dark", pierreDark],
27
+ ] as const) {
28
+ const expected = codeToTokens(code, { lang: "tsx", theme }).tokens.map((line) =>
29
+ line.map((token) => ({
30
+ content: token.content,
31
+ color: token.color ?? null,
32
+ fontStyle: token.fontStyle ?? null,
33
+ })),
34
+ );
35
+ expect(highlightCode(code, "tsx", scheme)).toEqual(expected);
36
+ }
37
+ });
38
+
39
+ it("keeps an over-long line as one plain token", () => {
40
+ const longLine = `const data = "${"x".repeat(1_000)}";`;
41
+ const [first, second] = highlightCode(`let a = 1;\n${longLine}`, "typescript", "dark");
42
+
43
+ expect(first?.length).toBeGreaterThan(1);
44
+ expect(second).toEqual([{ content: longLine, color: null, fontStyle: null }]);
45
+ });
46
+});
apps/mobile/src/lib/highlights.testing.ts
new
+22
@@ -0,0 +1,22 @@
1
+import { createHighlighter } from "@pierre/highlights";
2
+
3
+// The highlighter's line-record API, which `Highlighter` does not declare.
4
+interface LineRecordHighlighter {
5
+ writeInput(input: string): number;
6
+ tokenizeLineRecords(language: number, byteLength: number): Uint32Array;
7
+}
8
+
9
+/**
10
+ * Stands in for the T3Highlights native module with the WebAssembly build it is
11
+ * compiled from. Mock `expo`'s `requireOptionalNativeModule` with this.
12
+ */
13
+export function createWasmHighlightsModule() {
14
+ const highlighter = createHighlighter() as unknown as LineRecordHighlighter;
15
+ return {
16
+ tokenize(source: string, language: number): ArrayBuffer {
17
+ const records = highlighter.tokenizeLineRecords(language, highlighter.writeInput(source));
18
+ // The view points into WebAssembly memory that the next call reuses.
19
+ return records.slice().buffer;
20
+ },
21
+ };
22
+}
apps/mobile/src/lib/highlights.ts
new
+73
@@ -0,0 +1,73 @@
1
+import { requireOptionalNativeModule } from "expo";
2
+
3
+import { highlightLanguageId } from "./highlightLanguage";
4
+import { HIGHLIGHTS_THEME_STYLES } from "./highlights.generated";
5
+
6
+export type HighlightScheme = "light" | "dark";
7
+
8
+export interface HighlightedToken {
9
+ readonly content: string;
10
+ readonly color: string | null;
11
+ readonly fontStyle: number | null;
12
+}
13
+
14
+export type HighlightedLines = ReadonlyArray<ReadonlyArray<HighlightedToken>>;
15
+
16
+const LINE_END = 0xffffffff;
17
+// Longer lines stay one plain token so a minified line does not become
18
+// thousands of native text runs.
19
+const MAX_HIGHLIGHTED_LINE_LENGTH = 1_000;
20
+
21
+// @pierre/highlights compiled to native code (modules/t3-highlights). Missing
22
+// from binaries built before it shipped, where code renders as plain text.
23
+const nativeHighlights = requireOptionalNativeModule<{
24
+ tokenize(source: string, language: number): ArrayBuffer | null;
25
+}>("T3Highlights");
26
+
27
+function plainLines(code: string): HighlightedLines {
28
+ return code
29
+ .split(/\r?\n/u)
30
+ .map((line) => (line ? [{ content: line, color: null, fontStyle: null }] : []));
31
+}
32
+
33
+/**
34
+ * Tokenizes `code` synchronously, one token array per line. Lines split at LF
35
+ * and CRLF, and a trailing line break yields a final empty line.
36
+ */
37
+export function highlightCode(
38
+ code: string,
39
+ language: string,
40
+ scheme: HighlightScheme,
41
+): HighlightedLines {
42
+ const id = highlightLanguageId(language);
43
+ const buffer = id === 0 ? null : (nativeHighlights?.tokenize(code, id) ?? null);
44
+ if (!buffer) return plainLines(code);
45
+
46
+ // `(endUtf16, tokenId)` pairs. A LINE_END token ID ends a line, and its end
47
+ // is where the next line starts. Mirrors @pierre/highlights' lineRecordsToTokens.
48
+ const records = new Uint32Array(buffer);
49
+ const styles = HIGHLIGHTS_THEME_STYLES[scheme];
50
+ const lines: HighlightedToken[][] = [];
51
+ let start = 0;
52
+ for (let record = 0; ; record += 2) {
53
+ const first = record;
54
+ while (record < records.length && records[record + 1] !== LINE_END) record += 2;
55
+ const end = record === first ? start : records[record - 2]!;
56
+ if (end - start > MAX_HIGHLIGHTED_LINE_LENGTH) {
57
+ lines.push([{ content: code.slice(start, end), color: null, fontStyle: null }]);
58
+ } else {
59
+ const line: HighlightedToken[] = [];
60
+ for (let at = first; at < record; at += 2) {
61
+ const tokenEnd = records[at]!;
62
+ if (tokenEnd <= start) continue;
63
+ const [color, fontStyle] = styles[records[at + 1]!] ?? styles[0]!;
64
+ line.push({ content: code.slice(start, tokenEnd), color, fontStyle });
65
+ start = tokenEnd;
66
+ }
67
+ lines.push(line);
68
+ }
69
+ if (record >= records.length) break;
70
+ start = records[record]!;
71
+ }
72
+ return lines;
73
+}
knip.jsonc
+1
@@ -106,6 +106,7 @@
106
// Fonts are configured as asset paths; Expo autolinks the native packages.
107
"ignoreDependencies": [
108
"@expo-google-fonts/dm-sans",
109
+ "@t3tools/mobile-highlights-native",
110
"@t3tools/mobile-review-diff-native",
111
"@t3tools/mobile-terminal-native",
112
],
pnpm-lock.yaml
+19
-40
@@ -182,6 +182,9 @@ catalogs:
182
'@noble/hashes':
183
specifier: 1.8.0
184
version: 1.8.0
185
+ '@pierre/highlights':
186
+ specifier: 0.2.0
187
+ version: 0.2.0
188
'@types/plist':
189
specifier: 3.0.5
190
version: 3.0.5
@@ -536,6 +539,9 @@ importers:
539
'@pierre/diffs':
540
specifier: 1.5.2
541
version: 1.5.2(patch_hash=2ec81ba1e8ce4681095a3473c2bf78e630417740c622720ef624febb467c25fc)(@shikijs/themes@4.2.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)
542
+ '@pierre/highlights':
543
+ specifier: 'catalog:'
544
+ version: 0.2.0
545
'@react-native-ai/apple':
546
specifier: 0.12.0
547
version: 0.12.0(patch_hash=2d09870c2848d185cb05b53ed823a46e12dba519324d8dd8e584e28731990f9d)(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))
@@ -554,24 +560,15 @@ importers:
560
'@react-navigation/native-stack':
561
specifier: 7.21.0
562
version: 7.21.0(patch_hash=990d575444c4af2ce8218b3b7a8280fe244c03abbdb32b822a2e862f791dbf42)(52d9b4ccdf06285c715244e02709d347)
557
- '@shikijs/core':
558
- specifier: 4.2.0
559
- version: 4.2.0
560
- '@shikijs/engine-javascript':
561
- specifier: 4.2.0
562
- version: 4.2.0
563
- '@shikijs/langs':
564
- specifier: 4.2.0
565
- version: 4.2.0
566
- '@shikijs/themes':
567
- specifier: 4.2.0
568
- version: 4.2.0
563
'@t3tools/client-runtime':
564
specifier: workspace:*
565
version: link:../../packages/client-runtime
566
'@t3tools/contracts':
567
specifier: workspace:*
568
version: link:../../packages/contracts
569
+ '@t3tools/mobile-highlights-native':
570
+ specifier: file:./modules/t3-highlights
571
+ version: file:apps/mobile/modules/t3-highlights
572
'@t3tools/mobile-review-diff-native':
573
specifier: file:./modules/t3-review-diff
574
version: file:apps/mobile/modules/t3-review-diff
@@ -767,9 +764,6 @@ importers:
764
react-native-screens:
765
specifier: file:deps/react-native-screens-5.0.0-t3.43.tgz
766
version: file:apps/mobile/deps/react-native-screens-5.0.0-t3.43.tgz(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
770
- react-native-shiki-engine:
771
- specifier: ^0.3.12
772
- version: 0.3.12(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
767
react-native-svg:
768
specifier: 15.16.0
769
version: 15.16.0(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
@@ -785,9 +779,6 @@ importers:
779
remark-parse:
780
specifier: 'catalog:'
781
version: 11.0.0(supports-color@8.1.1)
788
- shiki:
789
- specifier: 4.2.0
790
- version: 4.2.0
782
tailwind-merge:
783
specifier: ^3.5.0
784
version: 3.6.0
@@ -5563,6 +5554,9 @@ packages:
5554
react-dom:
5555
optional: true
5556
5557
+ '@pierre/highlights@0.2.0':
5558
+ resolution: {integrity: sha512-hTpcOU1EzDAP4bYtEhxmMu2jwMvtkUydRUBUpWMSHTs3dw0IaC3Ld5ansMy18L0GE3b6Vfl2OGkLK+pWWpnBmw==}
5559
+
5560
'@pierre/theme@1.1.0':
5561
resolution: {integrity: sha512-GC2OWTAfTIIWWYhPCygwG8t2EtePQkRfON4MI2rwIkJylmiyqIttJID2dCL8sUD8cNdEvYkEyfEHHKMeCiDLoQ==}
5562
engines: {vscode: ^1.0.0}
@@ -6051,10 +6045,6 @@ packages:
6045
resolution: {integrity: sha512-VT/MKtlpOhEPZloSH3Pb9WCZEBDoQVMa9jedp5UAwmJOar1DVc9DRODAxmYPW9M93IK4ryuqRejFfmlvlVDemw==}
6046
engines: {node: '>=20'}
6047
6054
- '@shikijs/types@4.3.0':
6055
- resolution: {integrity: sha512-oc8b9U2SYvofKZk8e/737nIX0qwf6eV2vHFATeObAu7r+mUVpLs8Re0BmVkIjAWAYgkmG/CzLNo7rzuBzRu/wQ==}
6056
- engines: {node: '>=20'}
6057
-
6048
'@shikijs/vscode-textmate@10.0.2':
6049
resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==}
6050
@@ -6124,6 +6114,9 @@ packages:
6114
resolution: {integrity: sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==}
6115
engines: {node: '>=10'}
6116
6117
+ '@t3tools/mobile-highlights-native@file:apps/mobile/modules/t3-highlights':
6118
+ resolution: {directory: apps/mobile/modules/t3-highlights, type: directory}
6119
+
6120
'@t3tools/mobile-review-diff-native@file:apps/mobile/modules/t3-review-diff':
6121
resolution: {directory: apps/mobile/modules/t3-review-diff, type: directory}
6122
@@ -10706,12 +10699,6 @@ packages:
10699
react: '*'
10700
react-native: '*'
10701
10709
- react-native-shiki-engine@0.3.12:
10710
- resolution: {integrity: sha512-CE6CA3uHGZT5OmY909H+vTv5lrmILV7zuPOF2pXRYXWN2qYm5KG7XacEB/Pq1U2+8D0zJoeMveTny/FHEqnipg==}
10711
- peerDependencies:
10712
- react: '*'
10713
- react-native: '*'
10714
-
10702
react-native-svg@15.16.0:
10703
resolution: {integrity: sha512-uh8yktufYeRU3W9Omi8+SPyLF9BVN4JmLflSgc9oOcKkSKk/S5JUmmTjKZq/L8GHfQUtCvcu/W6X4xhEfBBAjQ==}
10704
peerDependencies:
@@ -15405,6 +15392,8 @@ snapshots:
15392
transitivePeerDependencies:
15393
- '@shikijs/themes'
15394
15395
+ '@pierre/highlights@0.2.0': {}
15396
+
15397
'@pierre/theme@1.1.0': {}
15398
15399
'@pierre/theme@2.0.0': {}
@@ -15840,11 +15829,6 @@ snapshots:
15829
'@shikijs/vscode-textmate': 10.0.2
15830
'@types/hast': 3.0.5
15831
15843
- '@shikijs/types@4.3.0':
15844
- dependencies:
15845
- '@shikijs/vscode-textmate': 10.0.2
15846
- '@types/hast': 3.0.5
15847
-
15832
'@shikijs/vscode-textmate@10.0.2': {}
15833
15834
'@sinclair/typebox@0.27.10': {}
@@ -15926,6 +15910,8 @@ snapshots:
15910
dependencies:
15911
defer-to-connect: 2.0.1
15912
15913
+ '@t3tools/mobile-highlights-native@file:apps/mobile/modules/t3-highlights': {}
15914
+
15915
'@t3tools/mobile-review-diff-native@file:apps/mobile/modules/t3-review-diff': {}
15916
15917
'@t3tools/mobile-source-text@file:apps/mobile/modules/t3-source-text(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)':
@@ -21243,13 +21229,6 @@ snapshots:
21229
react-native: 0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6)
21230
warn-once: 0.1.1
21231
21246
- react-native-shiki-engine@0.3.12(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0):
21247
- dependencies:
21248
- '@shikijs/types': 4.3.0
21249
- '@shikijs/vscode-textmate': 10.0.2
21250
- react: 19.3.0
21251
- react-native: 0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6)
21252
-
21232
react-native-svg@15.16.0(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0):
21233
dependencies:
21234
css-select: 5.2.2
pnpm-workspace.yaml
+1
@@ -52,6 +52,7 @@ catalog:
52
"@noble/curves": 1.9.1
53
"@noble/hashes": 1.8.0
54
"@pierre/diffs": 1.5.2
55
+ "@pierre/highlights": 0.2.0
56
"@tailwindcss/node": 4.3.3
57
"@tailwindcss/oxide": 4.3.3
58
"@tailwindcss/vite": 4.3.3
scripts/release-smoke.ts
+1
@@ -17,6 +17,7 @@ const workspaceFiles = [
17
"apps/desktop/package.json",
18
"apps/web/package.json",
19
"apps/mobile/package.json",
20
+ "apps/mobile/modules/t3-highlights/package.json",
21
"apps/mobile/modules/t3-source-text/package.json",
22
"apps/mobile/modules/t3-review-diff/package.json",
23
"apps/mobile/modules/t3-terminal/package.json",
third-party-licenses.config.json
+16
@@ -160,6 +160,22 @@
160
"noticeFile": "apps/mobile/modules/t3-composer-editor/LICENSE",
161
"sourceUrl": "https://github.com/expo/expo"
162
},
163
+ {
164
+ "bundles": ["ios", "android", "mobile"],
165
+ "license": "Apache-2.0",
166
+ "name": "wasm2c runtime (WABT)",
167
+ "version": "1.0.42",
168
+ "noticeFile": "apps/mobile/modules/t3-highlights/Vendor/wasm2c/LICENSE",
169
+ "sourceUrl": "https://github.com/WebAssembly/wabt/tree/1.0.42/wasm2c"
170
+ },
171
+ {
172
+ "bundles": ["ios", "android", "mobile"],
173
+ "license": "MIT",
174
+ "name": "SIMD Everywhere",
175
+ "version": "0.8.2",
176
+ "noticeFile": "apps/mobile/modules/t3-highlights/Vendor/simde/LICENSE",
177
+ "sourceUrl": "https://github.com/simd-everywhere/simde/tree/v0.8.2"
178
+ },
179
{
180
"bundles": ["ios", "android", "mobile"],
181
"license": "MIT",
vite.config.ts
+3
@@ -151,6 +151,9 @@ export default defineConfig({
151
"apps/mobile/android/**",
152
"apps/mobile/ios/**",
153
"apps/mobile/uniwind-types.d.ts",
154
+ // Vendored and generated C.
155
+ "apps/mobile/modules/t3-highlights/Vendor/**",
156
+ "apps/mobile/modules/t3-highlights/cpp/generated/**",
157
"*.icon/**",
158
],
159
sortPackageJson: {},