Source file
src/simd/archsimd/other_gen_amd64.go
1
2
3
4
5 package archsimd
6
7
8
9
10
11 func BroadcastInt8x16(x int8) Int8x16 {
12 var z Int8x16
13 return z.SetElem(0, x).Broadcast128()
14 }
15
16
17
18
19
20 func BroadcastInt16x8(x int16) Int16x8 {
21 var z Int16x8
22 return z.SetElem(0, x).Broadcast128()
23 }
24
25
26
27
28
29 func BroadcastInt32x4(x int32) Int32x4 {
30 var z Int32x4
31 return z.SetElem(0, x).Broadcast128()
32 }
33
34
35
36
37
38 func BroadcastInt64x2(x int64) Int64x2 {
39 var z Int64x2
40 return z.SetElem(0, x).Broadcast128()
41 }
42
43
44
45
46
47 func BroadcastUint8x16(x uint8) Uint8x16 {
48 var z Uint8x16
49 return z.SetElem(0, x).Broadcast128()
50 }
51
52
53
54
55
56 func BroadcastUint16x8(x uint16) Uint16x8 {
57 var z Uint16x8
58 return z.SetElem(0, x).Broadcast128()
59 }
60
61
62
63
64
65 func BroadcastUint32x4(x uint32) Uint32x4 {
66 var z Uint32x4
67 return z.SetElem(0, x).Broadcast128()
68 }
69
70
71
72
73
74 func BroadcastUint64x2(x uint64) Uint64x2 {
75 var z Uint64x2
76 return z.SetElem(0, x).Broadcast128()
77 }
78
79
80
81
82
83 func BroadcastFloat32x4(x float32) Float32x4 {
84 var z Float32x4
85 return z.SetElem(0, x).Broadcast128()
86 }
87
88
89
90
91
92 func BroadcastFloat64x2(x float64) Float64x2 {
93 var z Float64x2
94 return z.SetElem(0, x).Broadcast128()
95 }
96
97
98
99
100
101 func BroadcastInt8x32(x int8) Int8x32 {
102 var z Int8x16
103 return z.SetElem(0, x).Broadcast256()
104 }
105
106
107
108
109
110 func BroadcastInt16x16(x int16) Int16x16 {
111 var z Int16x8
112 return z.SetElem(0, x).Broadcast256()
113 }
114
115
116
117
118
119 func BroadcastInt32x8(x int32) Int32x8 {
120 var z Int32x4
121 return z.SetElem(0, x).Broadcast256()
122 }
123
124
125
126
127
128 func BroadcastInt64x4(x int64) Int64x4 {
129 var z Int64x2
130 return z.SetElem(0, x).Broadcast256()
131 }
132
133
134
135
136
137 func BroadcastUint8x32(x uint8) Uint8x32 {
138 var z Uint8x16
139 return z.SetElem(0, x).Broadcast256()
140 }
141
142
143
144
145
146 func BroadcastUint16x16(x uint16) Uint16x16 {
147 var z Uint16x8
148 return z.SetElem(0, x).Broadcast256()
149 }
150
151
152
153
154
155 func BroadcastUint32x8(x uint32) Uint32x8 {
156 var z Uint32x4
157 return z.SetElem(0, x).Broadcast256()
158 }
159
160
161
162
163
164 func BroadcastUint64x4(x uint64) Uint64x4 {
165 var z Uint64x2
166 return z.SetElem(0, x).Broadcast256()
167 }
168
169
170
171
172
173 func BroadcastFloat32x8(x float32) Float32x8 {
174 var z Float32x4
175 return z.SetElem(0, x).Broadcast256()
176 }
177
178
179
180
181
182 func BroadcastFloat64x4(x float64) Float64x4 {
183 var z Float64x2
184 return z.SetElem(0, x).Broadcast256()
185 }
186
187
188
189
190
191 func BroadcastInt8x64(x int8) Int8x64 {
192 var z Int8x16
193 return z.SetElem(0, x).Broadcast512()
194 }
195
196
197
198
199
200 func BroadcastInt16x32(x int16) Int16x32 {
201 var z Int16x8
202 return z.SetElem(0, x).Broadcast512()
203 }
204
205
206
207
208
209 func BroadcastInt32x16(x int32) Int32x16 {
210 var z Int32x4
211 return z.SetElem(0, x).Broadcast512()
212 }
213
214
215
216
217
218 func BroadcastInt64x8(x int64) Int64x8 {
219 var z Int64x2
220 return z.SetElem(0, x).Broadcast512()
221 }
222
223
224
225
226
227 func BroadcastUint8x64(x uint8) Uint8x64 {
228 var z Uint8x16
229 return z.SetElem(0, x).Broadcast512()
230 }
231
232
233
234
235
236 func BroadcastUint16x32(x uint16) Uint16x32 {
237 var z Uint16x8
238 return z.SetElem(0, x).Broadcast512()
239 }
240
241
242
243
244
245 func BroadcastUint32x16(x uint32) Uint32x16 {
246 var z Uint32x4
247 return z.SetElem(0, x).Broadcast512()
248 }
249
250
251
252
253
254 func BroadcastUint64x8(x uint64) Uint64x8 {
255 var z Uint64x2
256 return z.SetElem(0, x).Broadcast512()
257 }
258
259
260
261
262
263 func BroadcastFloat32x16(x float32) Float32x16 {
264 var z Float32x4
265 return z.SetElem(0, x).Broadcast512()
266 }
267
268
269
270
271
272 func BroadcastFloat64x8(x float64) Float64x8 {
273 var z Float64x2
274 return z.SetElem(0, x).Broadcast512()
275 }
276
277
278 func (from Int8x16) ToMask() (to Mask8x16) {
279 return from.NotEqual(Int8x16{})
280 }
281
282
283 func (from Int16x8) ToMask() (to Mask16x8) {
284 return from.NotEqual(Int16x8{})
285 }
286
287
288 func (from Int32x4) ToMask() (to Mask32x4) {
289 return from.NotEqual(Int32x4{})
290 }
291
292
293 func (from Int64x2) ToMask() (to Mask64x2) {
294 return from.NotEqual(Int64x2{})
295 }
296
297
298 func (from Int8x32) ToMask() (to Mask8x32) {
299 return from.NotEqual(Int8x32{})
300 }
301
302
303 func (from Int16x16) ToMask() (to Mask16x16) {
304 return from.NotEqual(Int16x16{})
305 }
306
307
308 func (from Int32x8) ToMask() (to Mask32x8) {
309 return from.NotEqual(Int32x8{})
310 }
311
312
313 func (from Int64x4) ToMask() (to Mask64x4) {
314 return from.NotEqual(Int64x4{})
315 }
316
317
318 func (from Int8x64) ToMask() (to Mask8x64) {
319 return from.NotEqual(Int8x64{})
320 }
321
322
323 func (from Int16x32) ToMask() (to Mask16x32) {
324 return from.NotEqual(Int16x32{})
325 }
326
327
328 func (from Int32x16) ToMask() (to Mask32x16) {
329 return from.NotEqual(Int32x16{})
330 }
331
332
333 func (from Int64x8) ToMask() (to Mask64x8) {
334 return from.NotEqual(Int64x8{})
335 }
336
337
338
339
340 func (x Int8x16) Not() Int8x16 {
341 return x.Xor(x.Equal(x).ToInt8x16())
342 }
343
344
345
346
347 func (x Int16x8) Not() Int16x8 {
348 return x.Xor(x.Equal(x).ToInt16x8())
349 }
350
351
352
353
354 func (x Int32x4) Not() Int32x4 {
355 return x.Xor(x.Equal(x).ToInt32x4())
356 }
357
358
359
360
361 func (x Int64x2) Not() Int64x2 {
362 return x.Xor(x.Equal(x).ToInt64x2())
363 }
364
365
366
367
368 func (x Int8x32) Not() Int8x32 {
369 return x.Xor(x.Equal(x).ToInt8x32())
370 }
371
372
373
374
375 func (x Int16x16) Not() Int16x16 {
376 return x.Xor(x.Equal(x).ToInt16x16())
377 }
378
379
380
381
382 func (x Int32x8) Not() Int32x8 {
383 return x.Xor(x.Equal(x).ToInt32x8())
384 }
385
386
387
388
389 func (x Int64x4) Not() Int64x4 {
390 return x.Xor(x.Equal(x).ToInt64x4())
391 }
392
393
394
395
396 func (x Int8x64) Not() Int8x64 {
397 return x.Xor(x.Equal(x).ToInt8x64())
398 }
399
400
401
402
403 func (x Int16x32) Not() Int16x32 {
404 return x.Xor(x.Equal(x).ToInt16x32())
405 }
406
407
408
409
410 func (x Int32x16) Not() Int32x16 {
411 return x.Xor(x.Equal(x).ToInt32x16())
412 }
413
414
415
416
417 func (x Int64x8) Not() Int64x8 {
418 return x.Xor(x.Equal(x).ToInt64x8())
419 }
420
421
422
423
424 func (x Uint8x16) Not() Uint8x16 {
425 return x.Xor(x.Equal(x).ToInt8x16().AsUint8x16())
426 }
427
428
429
430
431 func (x Uint16x8) Not() Uint16x8 {
432 return x.Xor(x.Equal(x).ToInt16x8().AsUint16x8())
433 }
434
435
436
437
438 func (x Uint32x4) Not() Uint32x4 {
439 return x.Xor(x.Equal(x).ToInt32x4().AsUint32x4())
440 }
441
442
443
444
445 func (x Uint64x2) Not() Uint64x2 {
446 return x.Xor(x.Equal(x).ToInt64x2().AsUint64x2())
447 }
448
449
450
451
452 func (x Uint8x32) Not() Uint8x32 {
453 return x.Xor(x.Equal(x).ToInt8x32().AsUint8x32())
454 }
455
456
457
458
459 func (x Uint16x16) Not() Uint16x16 {
460 return x.Xor(x.Equal(x).ToInt16x16().AsUint16x16())
461 }
462
463
464
465
466 func (x Uint32x8) Not() Uint32x8 {
467 return x.Xor(x.Equal(x).ToInt32x8().AsUint32x8())
468 }
469
470
471
472
473 func (x Uint64x4) Not() Uint64x4 {
474 return x.Xor(x.Equal(x).ToInt64x4().AsUint64x4())
475 }
476
477
478
479
480 func (x Uint8x64) Not() Uint8x64 {
481 return x.Xor(x.Equal(x).ToInt8x64().AsUint8x64())
482 }
483
484
485
486
487 func (x Uint16x32) Not() Uint16x32 {
488 return x.Xor(x.Equal(x).ToInt16x32().AsUint16x32())
489 }
490
491
492
493
494 func (x Uint32x16) Not() Uint32x16 {
495 return x.Xor(x.Equal(x).ToInt32x16().AsUint32x16())
496 }
497
498
499
500
501 func (x Uint64x8) Not() Uint64x8 {
502 return x.Xor(x.Equal(x).ToInt64x8().AsUint64x8())
503 }
504
505
506 func (x Int8x16) String() string {
507 var s [16]int8
508 x.Store(&s)
509 return sliceToString(s[:])
510 }
511
512
513 func (x Int16x8) String() string {
514 var s [8]int16
515 x.Store(&s)
516 return sliceToString(s[:])
517 }
518
519
520 func (x Int32x4) String() string {
521 var s [4]int32
522 x.Store(&s)
523 return sliceToString(s[:])
524 }
525
526
527 func (x Int64x2) String() string {
528 var s [2]int64
529 x.Store(&s)
530 return sliceToString(s[:])
531 }
532
533
534 func (x Uint8x16) String() string {
535 var s [16]uint8
536 x.Store(&s)
537 return sliceToString(s[:])
538 }
539
540
541 func (x Uint16x8) String() string {
542 var s [8]uint16
543 x.Store(&s)
544 return sliceToString(s[:])
545 }
546
547
548 func (x Uint32x4) String() string {
549 var s [4]uint32
550 x.Store(&s)
551 return sliceToString(s[:])
552 }
553
554
555 func (x Uint64x2) String() string {
556 var s [2]uint64
557 x.Store(&s)
558 return sliceToString(s[:])
559 }
560
561
562 func (x Float32x4) String() string {
563 var s [4]float32
564 x.Store(&s)
565 return sliceToString(s[:])
566 }
567
568
569 func (x Float64x2) String() string {
570 var s [2]float64
571 x.Store(&s)
572 return sliceToString(s[:])
573 }
574
575
576 func (x Int8x32) String() string {
577 var s [32]int8
578 x.Store(&s)
579 return sliceToString(s[:])
580 }
581
582
583 func (x Int16x16) String() string {
584 var s [16]int16
585 x.Store(&s)
586 return sliceToString(s[:])
587 }
588
589
590 func (x Int32x8) String() string {
591 var s [8]int32
592 x.Store(&s)
593 return sliceToString(s[:])
594 }
595
596
597 func (x Int64x4) String() string {
598 var s [4]int64
599 x.Store(&s)
600 return sliceToString(s[:])
601 }
602
603
604 func (x Uint8x32) String() string {
605 var s [32]uint8
606 x.Store(&s)
607 return sliceToString(s[:])
608 }
609
610
611 func (x Uint16x16) String() string {
612 var s [16]uint16
613 x.Store(&s)
614 return sliceToString(s[:])
615 }
616
617
618 func (x Uint32x8) String() string {
619 var s [8]uint32
620 x.Store(&s)
621 return sliceToString(s[:])
622 }
623
624
625 func (x Uint64x4) String() string {
626 var s [4]uint64
627 x.Store(&s)
628 return sliceToString(s[:])
629 }
630
631
632 func (x Float32x8) String() string {
633 var s [8]float32
634 x.Store(&s)
635 return sliceToString(s[:])
636 }
637
638
639 func (x Float64x4) String() string {
640 var s [4]float64
641 x.Store(&s)
642 return sliceToString(s[:])
643 }
644
645
646 func (x Int8x64) String() string {
647 var s [64]int8
648 x.Store(&s)
649 return sliceToString(s[:])
650 }
651
652
653 func (x Int16x32) String() string {
654 var s [32]int16
655 x.Store(&s)
656 return sliceToString(s[:])
657 }
658
659
660 func (x Int32x16) String() string {
661 var s [16]int32
662 x.Store(&s)
663 return sliceToString(s[:])
664 }
665
666
667 func (x Int64x8) String() string {
668 var s [8]int64
669 x.Store(&s)
670 return sliceToString(s[:])
671 }
672
673
674 func (x Uint8x64) String() string {
675 var s [64]uint8
676 x.Store(&s)
677 return sliceToString(s[:])
678 }
679
680
681 func (x Uint16x32) String() string {
682 var s [32]uint16
683 x.Store(&s)
684 return sliceToString(s[:])
685 }
686
687
688 func (x Uint32x16) String() string {
689 var s [16]uint32
690 x.Store(&s)
691 return sliceToString(s[:])
692 }
693
694
695 func (x Uint64x8) String() string {
696 var s [8]uint64
697 x.Store(&s)
698 return sliceToString(s[:])
699 }
700
701
702 func (x Float32x16) String() string {
703 var s [16]float32
704 x.Store(&s)
705 return sliceToString(s[:])
706 }
707
708
709 func (x Float64x8) String() string {
710 var s [8]float64
711 x.Store(&s)
712 return sliceToString(s[:])
713 }
714
View as plain text