-
Notifications
You must be signed in to change notification settings - Fork 0
/
imgutil_get_mcode_map_vx.ahk
560 lines (547 loc) · 63.6 KB
/
imgutil_get_mcode_map_vx.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
#Requires AutoHotkey v2.0
; imgutil class member functions
;########################################################################################################
; scalar only, this is just for benchmarking comparison and not meant to be used. v0 is below the psabi
; baseline, there's no equivalent psabi level and get_cpu_psabi_level should never return it.
; (theoretically it might, if e.g. SSE has been masked off from CPUID in a VM, so... eh?)
;########################################################################################################
i_get_mcode_map_v0() {
static b64 := ""
. "" ; imgutil_all.c
. "" ; 4688 bytes
. "" ; gcc.exe (Rev2, Built by MSYS2 project) 13.2.0
. "" ; flags: -D MARCH_x86_64_v0 -O3
. "" ; GNU assembler (GNU Binutils) 2.41
. "" ; flags: -O2
. "QVVBVFVXVlNIic6F0g+OlQAAAEiLCUmLGEGJ1DHATYsRMe0PH0QAAEQPtmyBAkQ6bIMCD5PCRThsggJED7ZcgQFBD5PFD7Y8gUQh6kU4XIIBQQ+TxUQh6kQ6XIMBQQ+Tw0Qh"
. "2kE4PIJBD5PDRITadAdAOjyDg93/SIPAAUk5xHWnScHkAonoTQHiTAHjTAHhTYkRSYkYSIkOW15fXUFcQV3DZg8fRAAAMe2J6FteX11BXEFdw2ZmLg8fhAAAAAAAVlNEi0FA"
. "SItBCEhjcSBEi5DIAAAAQQ+v0EGJ0YnQMdJB9/Ix0kGJw0ONBAhEi0E0TGNJMEH38khjUThMY1EYRQHYRA+vwk1jwE0ByEyLSShPjQSBRItJHEUB2UQPr85NY8lNAdFMi1EQ"
. "T40MikE5w31GRItRPEiNHJUAAAAASMHmAkWF0nQxZg8fhAAAAAAAMdJmDx9EAABBiwyQQYkMkUiDwgFMOdJ170GDwwFJAdhJAfFEOdh12Fteww8fRAAAQVRVV1ZTi0QkaA+2"
. "XCRQD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fRAAAixSBQYkUgEiDwAFJ"
. "OcJ18EGDwwFJAdhMAclEOd5/2UG7AQAAAESJ2Fteww8fRAAARTHbRInYW17DZmYuDx+EAAAAAAAPH0AASIPseEyLnCSoAAAASInISIXSD4TYAAAATYXbD4TPAAAAi4wkuAAA"
. "AEUx0kQJyQuMJLAAAABECcEPiKcAAABEi5QkyAAAAEWF0g+OoQAAAIuMJNAAAACFyQ+OkgAAAEiJVCQwi5QkoAAAAEiJwWYPbowkwAAAAESJRCQ4TI1EJCBmD26UJMgAAACJ"
. "VCRAZg9uhCSwAAAAi5Qk0AAAAMdEJCAAAAAAZg9unCS4AAAAZg9iykiJRCQoiVQkYEiNFb7u//9mD2LDRIlMJDxmD2zBTIlcJEgPEUQkUP+Q0AAAAEG6AQAAAESJ0EiDxHjD"
. "Dx8ARTHSRInQSIPEeMMPH0QAADHAw5CQkJCQkJCQkJCQkJA="
mcode_i_imgutil_pixelmatchcount_v0 := 0x000000 ; define i_imgutil_pixelmatchcount i_imgutil_pixelmatc(a)_mm_popcnt_u32(a)
mcode_imgutil_column_uniform := 0x000610 ; u32 imgutil_column_uniform(argb *ptr, i32 width, i32 height, argb refc, i32 x, i32 tolerance, i32 ymin, i32 ymax)
mcode_imgutil_row_uniform := 0x000730 ; i32 imgutil_row_uniform(argb *ptr, i32 width, i32 height, argb refc, i32 y, i32 tolerance, i32 xmin, i32 xmax)
mcode_imgutil_replace_color := 0x0007d0 ; i32 imgutil_replace_color(argb *ptr, i32 width, i32 height, i32 stride, argb cold, argb cnew, i32 tolerance)
mcode_imgutil_fill := 0x0008d0 ; void imgutil_fill(argb *ptr, i32 width, i32 height, i32 stride, argb c, i32 x, i32 y, i32 w, i32 h)
mcode_imgutil_grayscale := 0x000980 ; void imgutil_grayscale(argb *ptr, i32 width, i32 height, i32 stride)
mcode_imgutil_make_sat_masks := 0x000a00 ; u32 imgutil_make_sat_masks(u32 *__restrict needle, i32 pixelcount, u32 *__restrict needle_lo, u32 *__restrict needle_hi, u8 t)
mcode_imgutil_imgsrch := 0x000a60 ; argb *imgutil_imgsrch(argb *haystack, i32 haystack_w, i32 haystack_h, argb *needle_lo, argb *needle_hi, i32 needle_w, i32 needle_h, i8 pctmatchreq, i32 force_topleft, i32 *ppixels_matched)
mcode_imgutil_imgsrch_multi := 0x000f00 ; argb *imgutil_imgsrch_multi(mt_ctx *ctx, argb *haystack, i32 haystack_w, i32 haystack_h, argb *needle_lo, argb *needle_hi, i32 needle_w, i32 needle_h, i8 pctmatchreq, i32 force_topleft, i32 *ppixels_matched)
mcode_imgutil_blit := 0x001060 ; i32 imgutil_blit(argb *dst, i32 dx, i32 dy, i32 dstride, argb *src, i32 sx, i32 sy, i32 sstride, i32 w, i32 h)
mcode_imgutil_blit_multi := 0x001140 ; i32 imgutil_blit_multi(mt_ctx *ctx, argb *dst, i32 dx, i32 dy, i32 dstride, argb *src, i32 sx, i32 sy, i32 sstride, i32 w, i32 h)
mcode_get_blob_psabi_level := 0x001240 ; u32 get_blob_psabi_level()
;----------------- end of ahkmcodegen auto-generated section ------------------
static code := this.i_b64decode(b64)
return Map( "imgutil_column_uniform", code + mcode_imgutil_column_uniform
, "imgutil_row_uniform", code + mcode_imgutil_row_uniform
, "imgutil_replace_color", code + mcode_imgutil_replace_color
, "imgutil_fill", code + mcode_imgutil_fill
, "imgutil_grayscale", code + mcode_imgutil_grayscale
, "imgutil_make_sat_masks", code + mcode_imgutil_make_sat_masks
, "imgutil_imgsrch", code + mcode_imgutil_imgsrch
, "imgutil_imgsrch_multi", code + mcode_imgutil_imgsrch_multi
, "imgutil_blit", code + mcode_imgutil_blit
, "imgutil_blit_multi", code + mcode_imgutil_blit_multi
, "get_blob_psabi_level", code + mcode_get_blob_psabi_level
)
}
;############################################################################################################
; -march=x86-64 baseline optimized machine code blob
;############################################################################################################
i_get_mcode_map_v1() {
static b64 := ""
. "" ; imgutil_all.c
. "" ; 6128 bytes
. "" ; gcc.exe (Rev2, Built by MSYS2 project) 13.2.0
. "" ; flags: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EPthMJ0EiNFSns"
. "//8NAAAA/2YPbtBmD3DCAA8RhCSQAAAAQf+S0AAAAEiF23QGi0QkMIkDSItEJChIgcSoAAAAW15fXUFcQV3DDx9AADHASIHEqAAAAFteX11BXEFdw2YPH0QAAEFWQVRVV1ZT"
. "TItUJFiLXCR4i7QkgAAAAEiFyQ+E/wAAAE2F0g+E9gAAAItEJGhFMdtECcALRCRgCdAPiNAAAACF2w+O2AAAAIX2D47QAAAARQ+vwUhj0k1jyUhjfCRwSo0sjQAAAABEjUv8"
. "SMHnAkljwEgB0EhjVCRgSI0MgYtEJGgPr0QkcEiYSAHQSY0UgkSJyMHoAkSNQAH32EnB4ARFjSSBDx9AADHAg/sDD459AAAADx9EAADzD28EAg8RBAFIg8AQTDnAde5KjQQC"
. "To0UAUWF5HQkRYnhRIswRYkyQYP5AXQVRItwBEWJcgRBg/kCdAeLQAhBiUIIQYPDAUgB6UgB+kQ53n+eQbsBAAAARInYW15fXUFcQV7DDx9AAEUx20SJ2FteX11BXEFew5BB"
. "idlJicpIidDrnw8fRAAASIPseEyLnCSoAAAASInISIXSD4TYAAAATYXbD4TPAAAAi4wkuAAAAEUx0kQJyQuMJLAAAABECcEPiKcAAABEi5QkyAAAAEWF0g+OoQAAAIuMJNAA"
. "AACFyQ+OkgAAAEiJVCQwi5QkoAAAAEiJwWYPbowkwAAAAESJRCQ4TI1EJCBmD26UJMgAAACJVCRAZg9uhCSwAAAAi5Qk0AAAAMdEJCAAAAAAZg9unCS4AAAAZg9iykiJRCQo"
. "iVQkYEiNFV7o//9mD2LDRIlMJDxmD2zBTIlcJEgPEUQkUP+Q0AAAAEG6AQAAAESJ0EiDxHjDDx8ARTHSRInQSIPEeMMPH0QAALgBAAAAw5CQkJCQkJCQkJA="
mcode_imgutil_column_uniform := 0x000790 ; u32 imgutil_column_uniform(argb *ptr, i32 width, i32 height, argb refc, i32 x, i32 tolerance, i32 ymin, i32 ymax)
mcode_imgutil_row_uniform := 0x0008b0 ; i32 imgutil_row_uniform(argb *ptr, i32 width, i32 height, argb refc, i32 y, i32 tolerance, i32 xmin, i32 xmax)
mcode_imgutil_replace_color := 0x000950 ; i32 imgutil_replace_color(argb *ptr, i32 width, i32 height, i32 stride, argb cold, argb cnew, i32 tolerance)
mcode_imgutil_fill := 0x000a50 ; void imgutil_fill(argb *ptr, i32 width, i32 height, i32 stride, argb c, i32 x, i32 y, i32 w, i32 h)
mcode_imgutil_grayscale := 0x000b00 ; void imgutil_grayscale(argb *ptr, i32 width, i32 height, i32 stride)
mcode_imgutil_make_sat_masks := 0x000b80 ; u32 imgutil_make_sat_masks(u32 *__restrict needle, i32 pixelcount, u32 *__restrict needle_lo, u32 *__restrict needle_hi, u8 t)
mcode_imgutil_imgsrch := 0x000c90 ; argb *imgutil_imgsrch(argb *haystack, i32 haystack_w, i32 haystack_h, argb *needle_lo, argb *needle_hi, i32 needle_w, i32 needle_h, i8 pctmatchreq, i32 force_topleft, i32 *ppixels_matched)
mcode_imgutil_imgsrch_multi := 0x001420 ; argb *imgutil_imgsrch_multi(mt_ctx *ctx, argb *haystack, i32 haystack_w, i32 haystack_h, argb *needle_lo, argb *needle_hi, i32 needle_w, i32 needle_h, i8 pctmatchreq, i32 force_topleft, i32 *ppixels_matched)
mcode_imgutil_blit := 0x0015a0 ; i32 imgutil_blit(argb *dst, i32 dx, i32 dy, i32 dstride, argb *src, i32 sx, i32 sy, i32 sstride, i32 w, i32 h)
mcode_imgutil_blit_multi := 0x0016e0 ; i32 imgutil_blit_multi(mt_ctx *ctx, argb *dst, i32 dx, i32 dy, i32 dstride, argb *src, i32 sx, i32 sy, i32 sstride, i32 w, i32 h)
mcode_get_blob_psabi_level := 0x0017e0 ; u32 get_blob_psabi_level()
;----------------- end of ahkmcodegen auto-generated section ------------------
static code := this.i_b64decode(b64)
return Map( "imgutil_column_uniform", code + mcode_imgutil_column_uniform
, "imgutil_row_uniform", code + mcode_imgutil_row_uniform
, "imgutil_replace_color", code + mcode_imgutil_replace_color
, "imgutil_fill", code + mcode_imgutil_fill
, "imgutil_grayscale", code + mcode_imgutil_grayscale
, "imgutil_make_sat_masks", code + mcode_imgutil_make_sat_masks
, "imgutil_imgsrch", code + mcode_imgutil_imgsrch
, "imgutil_imgsrch_multi", code + mcode_imgutil_imgsrch_multi
, "imgutil_blit", code + mcode_imgutil_blit
, "imgutil_blit_multi", code + mcode_imgutil_blit_multi
, "get_blob_psabi_level", code + mcode_get_blob_psabi_level
)
}
;############################################################################################################
; -march=x86-64-v2 optimized SSE4 machine code blob
;############################################################################################################
i_get_mcode_map_v2() {
static b64 := ""
. "" ; imgutil_all.c
. "" ; 5840 bytes
. "" ; gcc.exe (Rev2, Built by MSYS2 project) 13.2.0
. "" ; flags: -march=x86-64-v2 -D MARCH_x86_64_v2 -O3
. "" ; GNU assembler (GNU Binutils) 2.41
. "" ; flags: -O2
. "QVZVV1ZTSYnLi0lASYtDCEGLazgPr9FBi3MgRIuIyAAAAEGJ0InQMdJB9/Ex0kGJwkKNBAFJY0swQffxQYtTNEQB0g+v1Uhj0kgBykmLSyhMjQSRQYtTHEljSxhEAdIPr9ZI"
. "Y9JIAcpJi0sQTI0MkUE5wg+N1QAAAA8fgAAAAABBi1s8g/sDD47LAAAAjWv8MdKJ7sHuAo1OAUjB4QRmkPNBD28EEEEPEQQRSIPCEEg50XXs995JjTwJTAHBjVS1AEGLazhB"
. "i3MghdJ0HkSLMUSJN4P6AXQTRItxBESJdwSD+gJ0BotRCIlXCEhj1UhjzkGDwgFIweICSMHhAkkB0EkByUQ50HRGg/sDD49v////RYtbPA8fAEWF23QiQYsYQYkZQYP7AXQW"
. "QYtYBEGJWQRBg/sCdAhBi1gIQYlZCEGDwgFJAdBJAclEOdB/ylteX11BXsMPHwCJ2kyJz0yJwelk////ZmYuDx+EAAAAAABBV0FWQVVBVFVXVlNIg+xIDxF0JDAx0mYPdslI"
. "iciJ0UG4AQAAAPBED8EAi1AsK1BERDnCD4wyBQAATGNgKESLUEBMi0ggRQ+vxElj0kkp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RhCSQAAAAQf+S0AAAAEiF23QGi0QkMIkDSItEJChIgcSoAAAAW15fXUFcQV3DDx9AADHASIHEqAAAAFteX11BXEFdw2YPH0QA"
. "AEFWQVRVV1ZTTItUJFiLXCR4i7QkgAAAAEiFyQ+E/wAAAE2F0g+E9gAAAItEJGhFMdtECcALRCRgCdAPiNAAAACF2w+O2AAAAIX2D47QAAAARQ+vwUhj0k1jyUhjfCRwSo0s"
. "jQAAAABEjUv8SMHnAkljwEgB0EhjVCRgSI0MgYtEJGgPr0QkcEiYSAHQSY0UgkSJyMHoAkSNQAH32EnB4ARFjSSBDx9AADHAg/sDD459AAAADx9EAADzD28EAg8RBAFIg8AQ"
. "TDnAde5KjQQCTo0UAUWF5HQkRYnhRIswRYkyQYP5AXQVRItwBEWJcgRBg/kCdAeLQAhBiUIIQYPDAUgB6UgB+kQ53n+eQbsBAAAARInYW15fXUFcQV7DDx9AAEUx20SJ2Fte"
. "X11BXEFew5BBidlJicpIidDrnw8fRAAASIPseEyLnCSoAAAASInISIXSD4TYAAAATYXbD4TPAAAAi4wkuAAAAEUx0kQJyQuMJLAAAABECcEPiKMAAABEi5QkyAAAAEWF0g+O"
. "oQAAAIuMJNAAAACFyQ+OkgAAAEiJVCQwi5QkoAAAAEiJwWYPbowkwAAAAESJRCQ4TI1EJCBmDzoijCTIAAAAAYlUJEBmD26EJLAAAACLlCTQAAAASIlEJChmDzoihCS4AAAA"
. "AcdEJCAAAAAAiVQkYEiNFX7p//9mD2zBRIlMJDxMiVwkSA8RRCRQ/5DQAAAAQboBAAAARInQSIPEeMMPH4AAAAAARTHSRInQSIPEeMMPH0QAALgCAAAAw5CQkJCQkJCQkJA="
mcode_imgutil_column_uniform := 0x000710 ; u32 imgutil_column_uniform(argb *ptr, i32 width, i32 height, argb refc, i32 x, i32 tolerance, i32 ymin, i32 ymax)
mcode_imgutil_row_uniform := 0x000830 ; i32 imgutil_row_uniform(argb *ptr, i32 width, i32 height, argb refc, i32 y, i32 tolerance, i32 xmin, i32 xmax)
mcode_imgutil_replace_color := 0x0008d0 ; i32 imgutil_replace_color(argb *ptr, i32 width, i32 height, i32 stride, argb cold, argb cnew, i32 tolerance)
mcode_imgutil_fill := 0x0009d0 ; void imgutil_fill(argb *ptr, i32 width, i32 height, i32 stride, argb c, i32 x, i32 y, i32 w, i32 h)
mcode_imgutil_grayscale := 0x000a80 ; void imgutil_grayscale(argb *ptr, i32 width, i32 height, i32 stride)
mcode_imgutil_make_sat_masks := 0x000b00 ; u32 imgutil_make_sat_masks(u32 *__restrict needle, i32 pixelcount, u32 *__restrict needle_lo, u32 *__restrict needle_hi, u8 t)
mcode_imgutil_imgsrch := 0x000c10 ; argb *imgutil_imgsrch(argb *haystack, i32 haystack_w, i32 haystack_h, argb *needle_lo, argb *needle_hi, i32 needle_w, i32 needle_h, i8 pctmatchreq, i32 force_topleft, i32 *ppixels_matched)
mcode_imgutil_imgsrch_multi := 0x001300 ; argb *imgutil_imgsrch_multi(mt_ctx *ctx, argb *haystack, i32 haystack_w, i32 haystack_h, argb *needle_lo, argb *needle_hi, i32 needle_w, i32 needle_h, i8 pctmatchreq, i32 force_topleft, i32 *ppixels_matched)
mcode_imgutil_blit := 0x001480 ; i32 imgutil_blit(argb *dst, i32 dx, i32 dy, i32 dstride, argb *src, i32 sx, i32 sy, i32 sstride, i32 w, i32 h)
mcode_imgutil_blit_multi := 0x0015c0 ; i32 imgutil_blit_multi(mt_ctx *ctx, argb *dst, i32 dx, i32 dy, i32 dstride, argb *src, i32 sx, i32 sy, i32 sstride, i32 w, i32 h)
mcode_get_blob_psabi_level := 0x0016c0 ; u32 get_blob_psabi_level()
;----------------- end of ahkmcodegen auto-generated section ------------------
static code := this.i_b64decode(b64)
return Map( "imgutil_column_uniform", code + mcode_imgutil_column_uniform
, "imgutil_row_uniform", code + mcode_imgutil_row_uniform
, "imgutil_replace_color", code + mcode_imgutil_replace_color
, "imgutil_fill", code + mcode_imgutil_fill
, "imgutil_grayscale", code + mcode_imgutil_grayscale
, "imgutil_make_sat_masks", code + mcode_imgutil_make_sat_masks
, "imgutil_imgsrch", code + mcode_imgutil_imgsrch
, "imgutil_imgsrch_multi", code + mcode_imgutil_imgsrch_multi
, "imgutil_blit", code + mcode_imgutil_blit
, "imgutil_blit_multi", code + mcode_imgutil_blit_multi
, "get_blob_psabi_level", code + mcode_get_blob_psabi_level
)
}
;############################################################################################################
; -march=x86-64-v3 optimized AVX2 machine code blob
;############################################################################################################
i_get_mcode_map_v3() {
static b64 := ""
. "" ; imgutil_all.c
. "" ; 6576 bytes
. "" ; gcc.exe (Rev2, Built by MSYS2 project) 13.2.0
. "" ; flags: -march=x86-64-v3 -D MARCH_x86_64_v3 -O3
. "" ; GNU assembler (GNU Binutils) 2.41
. "" ; flags: -O2
. "V1ZTSInLi0lASItDCA+v0USLiMgAAABBidCJ0DHSQffxMdKJx0KNBAFIY0swQffxi1M0AfoPr1M4SGPSSAHKSItLKEyNFJGLUxxIY0sYAfoPr1MgSGPSSAHKSItLEEyNDJE5"
. "xw+NowAAAGYPH0QAAItTPIP6Bw+OnAAAAESNQvgx0kSJxsHuA41OAUjB4QWQxMF+bwQSxMF+fwQRSIPCIEg50XXr995NjRwKTAHJQY0U8IP6A34VxMF6bwtIg8EQSYPDEIPq"
. "BMX6f0nwhdJ0H0WLA0SJAYP6AXQURYtDBESJQQSD+gJ0B0GLUwiJUQhIY1M4g8cBTY0UkkhjUyBNjQyROfgPhWb////F+HdbXl/DDx+AAAAAAEyJyU2J0+uSQVdBVkFVQVRV"
. "V1ZTSIHs6AAAAMX4EbQkkAAAAMX4EbwkoAAAAMV4EYQksAAAAMV4EYwkwAAAAMV4EZQk0AAAAMXldtvF8XbJSI1UJF/HRCQsAAAAAEiJyEiD4uBIiVQkOLkBAAAA8A/BCItQ"
. "LCtQRDnKD4wmBgAASGN4KItYQEyLQCAPr89IY9NIKdeLUExIwecCSGPJTY0MiEmNNDlIiXQkEIXSD4SdAwAATDnOcrGNS/jF+m9wYMX6b2BwicrF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AARQ+vwUhj0k1jyUhjfCRwSo0sjQAAAABEjUv4SMHnAkljwEgB0Ehj"
. "VCRgSI0MgYtEJGgPr0QkcEiYSAHQSY0UgkSJyMHoA0SNQAH32EWNJMFJweAFRTHJZg8fhAAAAAAAMcCD+wcPjqUAAAAPH0QAAMX+bwQCxf5/BAFIg8AgSTnAde1OjRQCSo0E"
. "AUWJ40GD/AN+FsTBem8KSIPAEEmDwhBBg+sExfp/SPBFhdt0IkWLMkSJMEGD+wF0FkWLcgREiXAEQYP7AnQIRYtSCESJUAhBg8EBSAHpSAH6RDnOf4BBuwEAAADF+HdEidhb"
. "Xl9dQVxBXsMPHwBFMdtEidhbXl9dQVxBXsNmDx+EAAAAAABBidtIichJidKD+wMPj3L////ri2ZmLg8fhAAAAAAAkEiD7HhMi5wkqAAAAEiJyEiF0g+E2AAAAE2F2w+EzwAA"
. "AIuMJLgAAABFMdJECckLjCSwAAAARAnBD4ikAAAARIuUJMgAAABFhdIPjqEAAACLjCTQAAAAhckPjpIAAABIiVQkMIuUJKAAAABIicHF+W6UJMAAAABEiUQkOEyNRCQgxONp"
. "IowkyAAAAAGJVCRAxflunCSwAAAAi5Qk0AAAAEiJRCQoxONhIoQkuAAAAAHHRCQgAAAAAIlUJGBIjRWe5v//xflswUSJTCQ8TIlcJEjF+n9EJFD/kNAAAABBugEAAABEidBI"
. "g8R4w2YPH0QAAEUx0kSJ0EiDxHjDDx9EAAC4AwAAAMOQkJCQkJCQkJCQ"
mcode_imgutil_column_uniform := 0x000820 ; u32 imgutil_column_uniform(argb *ptr, i32 width, i32 height, argb refc, i32 x, i32 tolerance, i32 ymin, i32 ymax)
mcode_imgutil_row_uniform := 0x000940 ; i32 imgutil_row_uniform(argb *ptr, i32 width, i32 height, argb refc, i32 y, i32 tolerance, i32 xmin, i32 xmax)
mcode_imgutil_replace_color := 0x0009e0 ; i32 imgutil_replace_color(argb *ptr, i32 width, i32 height, i32 stride, argb cold, argb cnew, i32 tolerance)
mcode_imgutil_fill := 0x000ae0 ; void imgutil_fill(argb *ptr, i32 width, i32 height, i32 stride, argb c, i32 x, i32 y, i32 w, i32 h)
mcode_imgutil_grayscale := 0x000b90 ; void imgutil_grayscale(argb *ptr, i32 width, i32 height, i32 stride)
mcode_imgutil_make_sat_masks := 0x000c10 ; u32 imgutil_make_sat_masks(u32 *__restrict needle, i32 pixelcount, u32 *__restrict needle_lo, u32 *__restrict needle_hi, u8 t)
mcode_imgutil_imgsrch := 0x000d50 ; argb *imgutil_imgsrch(argb *haystack, i32 haystack_w, i32 haystack_h, argb *needle_lo, argb *needle_hi, i32 needle_w, i32 needle_h, i8 pctmatchreq, i32 force_topleft, i32 *ppixels_matched)
mcode_imgutil_imgsrch_multi := 0x0015b0 ; argb *imgutil_imgsrch_multi(mt_ctx *ctx, argb *haystack, i32 haystack_w, i32 haystack_h, argb *needle_lo, argb *needle_hi, i32 needle_w, i32 needle_h, i8 pctmatchreq, i32 force_topleft, i32 *ppixels_matched)
mcode_imgutil_blit := 0x001720 ; i32 imgutil_blit(argb *dst, i32 dx, i32 dy, i32 dstride, argb *src, i32 sx, i32 sy, i32 sstride, i32 w, i32 h)
mcode_imgutil_blit_multi := 0x0018a0 ; i32 imgutil_blit_multi(mt_ctx *ctx, argb *dst, i32 dx, i32 dy, i32 dstride, argb *src, i32 sx, i32 sy, i32 sstride, i32 w, i32 h)
mcode_get_blob_psabi_level := 0x0019a0 ; u32 get_blob_psabi_level()
;----------------- end of ahkmcodegen auto-generated section ------------------
static code := this.i_b64decode(b64)
return Map( "imgutil_column_uniform", code + mcode_imgutil_column_uniform
, "imgutil_row_uniform", code + mcode_imgutil_row_uniform
, "imgutil_replace_color", code + mcode_imgutil_replace_color
, "imgutil_fill", code + mcode_imgutil_fill
, "imgutil_grayscale", code + mcode_imgutil_grayscale
, "imgutil_make_sat_masks", code + mcode_imgutil_make_sat_masks
, "imgutil_imgsrch", code + mcode_imgutil_imgsrch
, "imgutil_imgsrch_multi", code + mcode_imgutil_imgsrch_multi
, "imgutil_blit", code + mcode_imgutil_blit
, "imgutil_blit_multi", code + mcode_imgutil_blit_multi
, "get_blob_psabi_level", code + mcode_get_blob_psabi_level
)
}
;############################################################################################################
; -march=x86-64-v4 optimized AVX512 machine code blob
;############################################################################################################
i_get_mcode_map_v4() {
static b64 := ""
. "" ; imgutil_all.c
. "" ; 5888 bytes
. "" ; gcc.exe (Rev2, Built by MSYS2 project) 13.2.0
. "" ; flags: -march=x86-64-v4 -D MARCH_x86_64_v4 -O3
. "" ; GNU assembler (GNU Binutils) 2.41
. "" ; flags: -O2
. "VVdWU0SLQUBIi0EIRIuQyAAAAEEPr9BBidGJ0DHSQffyMdKJw0ONBAhMY0EwQffyi1E0AdoPr1E4SGPSTAHCTItBKE2NDJCLURxMY0EYAdoPr1EgSGPSTAHCTItBEE2NFJA5"
. "ww+NgwAAAL4BAAAAkItRPIP6Dw+OnwAAAESNWvAx0kSJ38HvBESNRwFJweAGYtH+SG8MEWLR/kh/DBJIg8JASTnQdenB5wREidpLjSwBTQHQKfqF0nQ+xOJp99aNev+DwwHF"
. "+JLPYvF+yW9FAGLRfkl/AEhjUThNjQyRSGNRIE2NFJI5w3WGxfh3W15fXcNmDx9EAABIY1E4g8MBTY0MkUhjUSBNjRSSOdh024tRPIP6Dw+PYf///02J0EyJzeuTZmYuDx+E"
. "AAAAAABmkEFXQVZBVUFUVVdWU0iD7EhFMcli831IJcD/Qb8BAAAASYnNuAEAAADwQQ/BRQBBi1VMQStVZDnCD4wcBgAAQYt9SEmLVUBJY01gD6/HiXwkPEiYTI0cgkhjx0iJ"
. "ykgpyEGLTWxJjQSDSIlEJBCFyQ+EdQMAAEw52HKpRI1i8CnXSIlcJChi0f5Ib20CRIngRIlMJDBIY+9i0f5Ib2UDwegEQYPkD0jB5QKJRCQ4Dx8ASItEJBBMKdhIwfgCg8AB"
. "g/gPD462AgAAYvH9SG/dYvH9SG/U6xpmLg8fhAAAAAAAg+gQSYPDQIP4Dw+OjgIAAGLRf0hvC2L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
. "ADHASIHEWAEAAFteX11BXEFdw2ZmLg8fhAAAAAAADx8AQVVBVFVXVlNIi1wkWESLVCR4RIucJIAAAABIhckPhAUBAABIhdsPhPwAAACLRCRoMfZECcALRCRgCdAPiLEAAABF"
. "hdIPjt4AAABFhdsPjtUAAABFD6/BSGPSQY1y8E1jyUqNLI0AAAAAQbwBAAAARTHJSWPASAHQSGNUJGBIjQyBi0QkaA+vRCRwSJhIAdBIjRSDifBIY1wkcMHoBESNQAHB4ARI"
. "weMCScHgBinGZpAxwEGD+g8PjnwAAAAPH0AAYvH+SG8MAmLx/kh/DAFIg8BASTnAdemF9nUlQYPBAUgB6UgB2kU5y3/GvgEAAADF+HeJ8FteX11BXEFdww8fAE6NLAJKjTwB"
. "ifDEwnn3xIPoAcX4kshi0X7Jb0UAYvF+SX8H67YPHwAx9onwW15fXUFcQV3DDx8ARInQSInPSYnV68dmZi4PH4QAAAAAAGaQSIPseEyLnCSoAAAASIXSD4TTAAAATYXbD4TK"
. "AAAAi4QkuAAAAEUx0kQJyAuEJLAAAABECcAPiKEAAABEi5QkyAAAAEWF0g+OnAAAAIuEJNAAAACFwA+OjQAAAIuEJKAAAABIiVQkMEiNFaLp///F+W6UJMAAAABEiUQkOEyN"
. "RCQgxONpIowkyAAAAAGJRCRAxflunCSwAAAAi4Qk0AAAAEiJTCQoxONhIoQkuAAAAAHHRCQgAAAAAESJTCQ8xflswUyJXCRIiUQkYMX6f0QkUP+R0AAAAEG6AQAAAESJ0EiD"
. "xHjDDx9AAEUx0kSJ0EiDxHjDZmYuDx+EAAAAAABmkLgEAAAAw5CQkJCQkJCQkJA="
mcode_imgutil_column_uniform := 0x0007c0 ; u32 imgutil_column_uniform(argb *ptr, i32 width, i32 height, argb refc, i32 x, i32 tolerance, i32 ymin, i32 ymax)
mcode_imgutil_row_uniform := 0x0008e0 ; i32 imgutil_row_uniform(argb *ptr, i32 width, i32 height, argb refc, i32 y, i32 tolerance, i32 xmin, i32 xmax)
mcode_imgutil_replace_color := 0x000980 ; i32 imgutil_replace_color(argb *ptr, i32 width, i32 height, i32 stride, argb cold, argb cnew, i32 tolerance)
mcode_imgutil_fill := 0x000a90 ; void imgutil_fill(argb *ptr, i32 width, i32 height, i32 stride, argb c, i32 x, i32 y, i32 w, i32 h)
mcode_imgutil_grayscale := 0x000b50 ; void imgutil_grayscale(argb *ptr, i32 width, i32 height, i32 stride)
mcode_imgutil_make_sat_masks := 0x000bd0 ; u32 imgutil_make_sat_masks(u32 *__restrict needle, i32 pixelcount, u32 *__restrict needle_lo, u32 *__restrict needle_hi, u8 t)
mcode_imgutil_imgsrch := 0x000cc0 ; argb *imgutil_imgsrch(argb *haystack, i32 haystack_w, i32 haystack_h, argb *needle_lo, argb *needle_hi, i32 needle_w, i32 needle_h, i8 pctmatchreq, i32 force_topleft, i32 *ppixels_matched)
mcode_imgutil_imgsrch_multi := 0x001320 ; argb *imgutil_imgsrch_multi(mt_ctx *ctx, argb *haystack, i32 haystack_w, i32 haystack_h, argb *needle_lo, argb *needle_hi, i32 needle_w, i32 needle_h, i8 pctmatchreq, i32 force_topleft, i32 *ppixels_matched)
mcode_imgutil_blit := 0x0014a0 ; i32 imgutil_blit(argb *dst, i32 dx, i32 dy, i32 dstride, argb *src, i32 sx, i32 sy, i32 sstride, i32 w, i32 h)
mcode_imgutil_blit_multi := 0x0015f0 ; i32 imgutil_blit_multi(mt_ctx *ctx, argb *dst, i32 dx, i32 dy, i32 dstride, argb *src, i32 sx, i32 sy, i32 sstride, i32 w, i32 h)
mcode_get_blob_psabi_level := 0x0016f0 ; u32 get_blob_psabi_level()
;----------------- end of ahkmcodegen auto-generated section ------------------
static code := this.i_b64decode(b64)
return Map( "imgutil_column_uniform", code + mcode_imgutil_column_uniform
, "imgutil_row_uniform", code + mcode_imgutil_row_uniform
, "imgutil_replace_color", code + mcode_imgutil_replace_color
, "imgutil_fill", code + mcode_imgutil_fill
, "imgutil_grayscale", code + mcode_imgutil_grayscale
, "imgutil_make_sat_masks", code + mcode_imgutil_make_sat_masks
, "imgutil_imgsrch", code + mcode_imgutil_imgsrch
, "imgutil_imgsrch_multi", code + mcode_imgutil_imgsrch_multi
, "imgutil_blit", code + mcode_imgutil_blit
, "imgutil_blit_multi", code + mcode_imgutil_blit_multi
, "get_blob_psabi_level", code + mcode_get_blob_psabi_level
)
}
;############################################################################################################
; base code, independent of optimization level/architecture
;############################################################################################################
i_get_mcode_map_base() {
; this can't be part of the main blob as we don't want GCC to taint it with
; vectorization or the use of other instructions that may not be available
; on older CPUs
static b64 := ""
. "" ; imgutil_lib.c
. "" ; 2880 bytes
. "" ; gcc.exe (Rev2, Built by MSYS2 project) 13.2.0
. "" ; flags: -mabi=ms -m64 -D __HEADLESS__ -O3
. "" ; GNU assembler (GNU Binutils) 2.41
. "" ; flags: -O2
. "VVdWU0iD7Di/AQAAAEiJy/APwbnMAAAASIuRkAAAAEhjx0iNdCQg8w9+BMJIjSzFAAAAAA8WgZgAAAAPEUQkIOsjZg8fRAAASIuLwAAAAIn6/5O4AAAASIuDoAAAAEiLDCj/"
. "U3BFMcBBuf////9IifK5AgAAAP+TiAAAAIXAdMgxwEiDxDhbXl9dww8fRAAAVlNIg+woMcBIictIhcl1EEiDxChbXsNmDx+EAAAAAABIh5G4AAAATIeBwAAAAIuJyAAAAIXJ"
. "dCQx9mYPH0QAAEiLg5AAAABIiwzwSIPGAf9TcIuLyAAAADnOcuRIi5OgAAAAQbn/////QbgBAAAA/5OIAAAAuAEAAABIg8QoW17DZmYuDx+EAAAAAAAPH0AAVVdWU0iD7BhF"
. "McBFMdtFMclEicBEicEPokSJwUyNBR0IAACJxrgAAACASY2o0AEAAA+iicdBi1AMQYsAQTnTRA9C2j0AAACAdj45x3JCRInJRYtQCA+iiQQkSWNABIlcJASJTCQIiVQkDEQj"
. "FIR0IEmDwBBJOeh1vESJ2EiDxBhbXl9dww8fADnGc8KFwHi+QYPrAUSJ2EiDxBhbXl9dw2VIiwQlYAAAAEiLQBhIi0AgSIsASIsASItAIM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AAAABwAAAAEAAAAAAABABAAAAAcAAAABAAAAAAAAgAQAAACQkJCQkJCQ"
. "kJCQkJCQkJCQ"
mcode_mt_threadproc := 0x000000 ;
mcode_mt_run := 0x000090 ;
mcode_get_cpu_psabi_level := 0x000120 ; int get_cpu_psabi_level()
mcode_gpa_getkernel32 := 0x0001c0 ;
mcode_gpa_getgetprocaddress := 0x0001f0 ;
mcode_mt_deinit := 0x000290 ;
mcode_mt_get_cputhreads := 0x000360 ; int mt_get_cputhreads(mt_ctx *ctx)
mcode_mt_init := 0x000630 ;
;----------------- end of ahkmcodegen auto-generated section ------------------
static code := this.i_b64decode(b64)
codemap := Map( "get_cpu_psabi_level", code + mcode_get_cpu_psabi_level
, "mt_get_cputhreads", code + mcode_mt_get_cputhreads
, "mt_init", code + mcode_mt_init
, "mt_deinit", code + mcode_mt_deinit
)
return codemap
}