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
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
|
/*! @header
* This header defines fixed size vector types with relaxed alignment. For
* each vector type defined by <simd/vector_types.h> that is not a 1- or 3-
* element vector, there is a corresponding type defined by this header that
* requires only the alignment matching that of the underlying scalar type.
*
* These types should be used to access buffers that may not be sufficiently
* aligned to allow them to be accessed using the "normal" simd vector types.
* As an example of this usage, suppose that you want to load a vector of
* four floats from an array of floats. The type simd_float4 has sixteen byte
* alignment, whereas an array of floats has only four byte alignment.
* Thus, naively casting a pointer into the array to (simd_float4 *) would
* invoke undefined behavior, and likely produce an alignment fault at
* runtime. Instead, use the corresponding packed type to load from the array:
*
* <pre>
* @textblock
* simd_float4 vector = *(simd_packed_float4 *)&array[i];
* // do something with vector ...
* @/textblock
* </pre>
*
* It's important to note that the packed_ types are only needed to work with
* memory; once the data is loaded, we simply operate on it as usual using
* the simd_float4 type, as illustrated above.
*
* @copyright 2014-2017 Apple, Inc. All rights reserved.
* @unsorted */
#ifndef SIMD_PACKED_TYPES
#define SIMD_PACKED_TYPES
# include <simd/vector_types.h>
# if SIMD_COMPILER_HAS_REQUIRED_FEATURES
/*! @abstract A vector of two 8-bit signed (twos-complement) integers with
* relaxed alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::char2. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
typedef __attribute__((__ext_vector_type__(2),__aligned__(1))) char simd_packed_char2;
/*! @abstract A vector of four 8-bit signed (twos-complement) integers with
* relaxed alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::char4. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
typedef __attribute__((__ext_vector_type__(4),__aligned__(1))) char simd_packed_char4;
/*! @abstract A vector of eight 8-bit signed (twos-complement) integers with
* relaxed alignment.
* @description In C++ this type is also available as simd::packed::char8.
* This type is not available in Metal. The alignment of this type is only
* that of the underlying scalar element type, so you can use it to load or
* store from an array of that type. */
typedef __attribute__((__ext_vector_type__(8),__aligned__(1))) char simd_packed_char8;
/*! @abstract A vector of sixteen 8-bit signed (twos-complement) integers
* with relaxed alignment.
* @description In C++ this type is also available as simd::packed::char16.
* This type is not available in Metal. The alignment of this type is only
* that of the underlying scalar element type, so you can use it to load or
* store from an array of that type. */
typedef __attribute__((__ext_vector_type__(16),__aligned__(1))) char simd_packed_char16;
/*! @abstract A vector of thirty-two 8-bit signed (twos-complement) integers
* with relaxed alignment.
* @description In C++ this type is also available as simd::packed::char32.
* This type is not available in Metal. The alignment of this type is only
* that of the underlying scalar element type, so you can use it to load or
* store from an array of that type. */
typedef __attribute__((__ext_vector_type__(32),__aligned__(1))) char simd_packed_char32;
/*! @abstract A vector of sixty-four 8-bit signed (twos-complement) integers
* with relaxed alignment.
* @description In C++ this type is also available as simd::packed::char64.
* This type is not available in Metal. The alignment of this type is only
* that of the underlying scalar element type, so you can use it to load or
* store from an array of that type. */
typedef __attribute__((__ext_vector_type__(64),__aligned__(1))) char simd_packed_char64;
/*! @abstract A vector of two 8-bit unsigned integers with relaxed
* alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::uchar2. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
typedef __attribute__((__ext_vector_type__(2),__aligned__(1))) unsigned char simd_packed_uchar2;
/*! @abstract A vector of four 8-bit unsigned integers with relaxed
* alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::uchar4. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
typedef __attribute__((__ext_vector_type__(4),__aligned__(1))) unsigned char simd_packed_uchar4;
/*! @abstract A vector of eight 8-bit unsigned integers with relaxed
* alignment.
* @description In C++ this type is also available as simd::packed::uchar8.
* This type is not available in Metal. The alignment of this type is only
* that of the underlying scalar element type, so you can use it to load or
* store from an array of that type. */
typedef __attribute__((__ext_vector_type__(8),__aligned__(1))) unsigned char simd_packed_uchar8;
/*! @abstract A vector of sixteen 8-bit unsigned integers with relaxed
* alignment.
* @description In C++ this type is also available as
* simd::packed::uchar16. This type is not available in Metal. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef __attribute__((__ext_vector_type__(16),__aligned__(1))) unsigned char simd_packed_uchar16;
/*! @abstract A vector of thirty-two 8-bit unsigned integers with relaxed
* alignment.
* @description In C++ this type is also available as
* simd::packed::uchar32. This type is not available in Metal. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef __attribute__((__ext_vector_type__(32),__aligned__(1))) unsigned char simd_packed_uchar32;
/*! @abstract A vector of sixty-four 8-bit unsigned integers with relaxed
* alignment.
* @description In C++ this type is also available as
* simd::packed::uchar64. This type is not available in Metal. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef __attribute__((__ext_vector_type__(64),__aligned__(1))) unsigned char simd_packed_uchar64;
/*! @abstract A vector of two 16-bit signed (twos-complement) integers with
* relaxed alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::short2. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
typedef __attribute__((__ext_vector_type__(2),__aligned__(2))) short simd_packed_short2;
/*! @abstract A vector of four 16-bit signed (twos-complement) integers with
* relaxed alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::short4. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
typedef __attribute__((__ext_vector_type__(4),__aligned__(2))) short simd_packed_short4;
/*! @abstract A vector of eight 16-bit signed (twos-complement) integers
* with relaxed alignment.
* @description In C++ this type is also available as simd::packed::short8.
* This type is not available in Metal. The alignment of this type is only
* that of the underlying scalar element type, so you can use it to load or
* store from an array of that type. */
typedef __attribute__((__ext_vector_type__(8),__aligned__(2))) short simd_packed_short8;
/*! @abstract A vector of sixteen 16-bit signed (twos-complement) integers
* with relaxed alignment.
* @description In C++ this type is also available as
* simd::packed::short16. This type is not available in Metal. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef __attribute__((__ext_vector_type__(16),__aligned__(2))) short simd_packed_short16;
/*! @abstract A vector of thirty-two 16-bit signed (twos-complement)
* integers with relaxed alignment.
* @description In C++ this type is also available as
* simd::packed::short32. This type is not available in Metal. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef __attribute__((__ext_vector_type__(32),__aligned__(2))) short simd_packed_short32;
/*! @abstract A vector of two 16-bit unsigned integers with relaxed
* alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::ushort2. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
typedef __attribute__((__ext_vector_type__(2),__aligned__(2))) unsigned short simd_packed_ushort2;
/*! @abstract A vector of four 16-bit unsigned integers with relaxed
* alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::ushort4. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
typedef __attribute__((__ext_vector_type__(4),__aligned__(2))) unsigned short simd_packed_ushort4;
/*! @abstract A vector of eight 16-bit unsigned integers with relaxed
* alignment.
* @description In C++ this type is also available as
* simd::packed::ushort8. This type is not available in Metal. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef __attribute__((__ext_vector_type__(8),__aligned__(2))) unsigned short simd_packed_ushort8;
/*! @abstract A vector of sixteen 16-bit unsigned integers with relaxed
* alignment.
* @description In C++ this type is also available as
* simd::packed::ushort16. This type is not available in Metal. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef __attribute__((__ext_vector_type__(16),__aligned__(2))) unsigned short simd_packed_ushort16;
/*! @abstract A vector of thirty-two 16-bit unsigned integers with relaxed
* alignment.
* @description In C++ this type is also available as
* simd::packed::ushort32. This type is not available in Metal. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef __attribute__((__ext_vector_type__(32),__aligned__(2))) unsigned short simd_packed_ushort32;
/*! @abstract A vector of two 16-bit floating-point numbers with relaxed
* alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::half2. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
typedef __attribute__((__ext_vector_type__(2),__aligned__(2))) _Float16 simd_packed_half2;
/*! @abstract A vector of four 16-bit floating-point numbers with relaxed
* alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::half4. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
typedef __attribute__((__ext_vector_type__(4),__aligned__(2))) _Float16 simd_packed_half4;
/*! @abstract A vector of eight 16-bit floating-point numbers with relaxed
* alignment.
* @description In C++ this type is also available as simd::packed::half8.
* This type is not available in Metal. The alignment of this type is only
* that of the underlying scalar element type, so you can use it to load or
* store from an array of that type. */
typedef __attribute__((__ext_vector_type__(8),__aligned__(2))) _Float16 simd_packed_half8;
/*! @abstract A vector of sixteen 16-bit floating-point numbers with relaxed
* alignment.
* @description In C++ this type is also available as simd::packed::half16.
* This type is not available in Metal. The alignment of this type is only
* that of the underlying scalar element type, so you can use it to load or
* store from an array of that type. */
typedef __attribute__((__ext_vector_type__(16),__aligned__(2))) _Float16 simd_packed_half16;
/*! @abstract A vector of thirty-two 16-bit floating-point numbers with
* relaxed alignment.
* @description In C++ this type is also available as simd::packed::half32.
* This type is not available in Metal. The alignment of this type is only
* that of the underlying scalar element type, so you can use it to load or
* store from an array of that type. */
typedef __attribute__((__ext_vector_type__(32),__aligned__(2))) _Float16 simd_packed_half32;
/*! @abstract A vector of two 32-bit signed (twos-complement) integers with
* relaxed alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::int2. The alignment of this type is that of the underlying
* scalar element type, so you can use it to load or store from an array of
* that type. */
typedef __attribute__((__ext_vector_type__(2),__aligned__(4))) int simd_packed_int2;
/*! @abstract A vector of four 32-bit signed (twos-complement) integers with
* relaxed alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::int4. The alignment of this type is that of the underlying
* scalar element type, so you can use it to load or store from an array of
* that type. */
typedef __attribute__((__ext_vector_type__(4),__aligned__(4))) int simd_packed_int4;
/*! @abstract A vector of eight 32-bit signed (twos-complement) integers
* with relaxed alignment.
* @description In C++ this type is also available as simd::packed::int8.
* This type is not available in Metal. The alignment of this type is only
* that of the underlying scalar element type, so you can use it to load or
* store from an array of that type. */
typedef __attribute__((__ext_vector_type__(8),__aligned__(4))) int simd_packed_int8;
/*! @abstract A vector of sixteen 32-bit signed (twos-complement) integers
* with relaxed alignment.
* @description In C++ this type is also available as simd::packed::int16.
* This type is not available in Metal. The alignment of this type is only
* that of the underlying scalar element type, so you can use it to load or
* store from an array of that type. */
typedef __attribute__((__ext_vector_type__(16),__aligned__(4))) int simd_packed_int16;
/*! @abstract A vector of two 32-bit unsigned integers with relaxed
* alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::uint2. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
typedef __attribute__((__ext_vector_type__(2),__aligned__(4))) unsigned int simd_packed_uint2;
/*! @abstract A vector of four 32-bit unsigned integers with relaxed
* alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::uint4. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
typedef __attribute__((__ext_vector_type__(4),__aligned__(4))) unsigned int simd_packed_uint4;
/*! @abstract A vector of eight 32-bit unsigned integers with relaxed
* alignment.
* @description In C++ this type is also available as simd::packed::uint8.
* This type is not available in Metal. The alignment of this type is only
* that of the underlying scalar element type, so you can use it to load or
* store from an array of that type. */
typedef __attribute__((__ext_vector_type__(8),__aligned__(4))) unsigned int simd_packed_uint8;
/*! @abstract A vector of sixteen 32-bit unsigned integers with relaxed
* alignment.
* @description In C++ this type is also available as simd::packed::uint16.
* This type is not available in Metal. The alignment of this type is only
* that of the underlying scalar element type, so you can use it to load or
* store from an array of that type. */
typedef __attribute__((__ext_vector_type__(16),__aligned__(4))) unsigned int simd_packed_uint16;
/*! @abstract A vector of two 32-bit floating-point numbers with relaxed
* alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::float2. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
typedef __attribute__((__ext_vector_type__(2),__aligned__(4))) float simd_packed_float2;
/*! @abstract A vector of four 32-bit floating-point numbers with relaxed
* alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::float4. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
typedef __attribute__((__ext_vector_type__(4),__aligned__(4))) float simd_packed_float4;
/*! @abstract A vector of eight 32-bit floating-point numbers with relaxed
* alignment.
* @description In C++ this type is also available as simd::packed::float8.
* This type is not available in Metal. The alignment of this type is only
* that of the underlying scalar element type, so you can use it to load or
* store from an array of that type. */
typedef __attribute__((__ext_vector_type__(8),__aligned__(4))) float simd_packed_float8;
/*! @abstract A vector of sixteen 32-bit floating-point numbers with relaxed
* alignment.
* @description In C++ this type is also available as
* simd::packed::float16. This type is not available in Metal. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef __attribute__((__ext_vector_type__(16),__aligned__(4))) float simd_packed_float16;
/*! @abstract A vector of two 64-bit signed (twos-complement) integers with
* relaxed alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::long2. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
#if defined __LP64__
typedef __attribute__((__ext_vector_type__(2),__aligned__(8))) simd_long1 simd_packed_long2;
#else
typedef __attribute__((__ext_vector_type__(2),__aligned__(4))) simd_long1 simd_packed_long2;
#endif
/*! @abstract A vector of four 64-bit signed (twos-complement) integers with
* relaxed alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::long4. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
#if defined __LP64__
typedef __attribute__((__ext_vector_type__(4),__aligned__(8))) simd_long1 simd_packed_long4;
#else
typedef __attribute__((__ext_vector_type__(4),__aligned__(4))) simd_long1 simd_packed_long4;
#endif
/*! @abstract A vector of eight 64-bit signed (twos-complement) integers
* with relaxed alignment.
* @description In C++ this type is also available as simd::packed::long8.
* This type is not available in Metal. The alignment of this type is only
* that of the underlying scalar element type, so you can use it to load or
* store from an array of that type. */
#if defined __LP64__
typedef __attribute__((__ext_vector_type__(8),__aligned__(8))) simd_long1 simd_packed_long8;
#else
typedef __attribute__((__ext_vector_type__(8),__aligned__(4))) simd_long1 simd_packed_long8;
#endif
/*! @abstract A vector of two 64-bit unsigned integers with relaxed
* alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::ulong2. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
#if defined __LP64__
typedef __attribute__((__ext_vector_type__(2),__aligned__(8))) simd_ulong1 simd_packed_ulong2;
#else
typedef __attribute__((__ext_vector_type__(2),__aligned__(4))) simd_ulong1 simd_packed_ulong2;
#endif
/*! @abstract A vector of four 64-bit unsigned integers with relaxed
* alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::ulong4. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
#if defined __LP64__
typedef __attribute__((__ext_vector_type__(4),__aligned__(8))) simd_ulong1 simd_packed_ulong4;
#else
typedef __attribute__((__ext_vector_type__(4),__aligned__(4))) simd_ulong1 simd_packed_ulong4;
#endif
/*! @abstract A vector of eight 64-bit unsigned integers with relaxed
* alignment.
* @description In C++ this type is also available as simd::packed::ulong8.
* This type is not available in Metal. The alignment of this type is only
* that of the underlying scalar element type, so you can use it to load or
* store from an array of that type. */
#if defined __LP64__
typedef __attribute__((__ext_vector_type__(8),__aligned__(8))) simd_ulong1 simd_packed_ulong8;
#else
typedef __attribute__((__ext_vector_type__(8),__aligned__(4))) simd_ulong1 simd_packed_ulong8;
#endif
/*! @abstract A vector of two 64-bit floating-point numbers with relaxed
* alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::double2. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
#if defined __LP64__
typedef __attribute__((__ext_vector_type__(2),__aligned__(8))) double simd_packed_double2;
#else
typedef __attribute__((__ext_vector_type__(2),__aligned__(4))) double simd_packed_double2;
#endif
/*! @abstract A vector of four 64-bit floating-point numbers with relaxed
* alignment.
* @description In C++ and Metal, this type is also available as
* simd::packed::double4. The alignment of this type is that of the
* underlying scalar element type, so you can use it to load or store from
* an array of that type. */
#if defined __LP64__
typedef __attribute__((__ext_vector_type__(4),__aligned__(8))) double simd_packed_double4;
#else
typedef __attribute__((__ext_vector_type__(4),__aligned__(4))) double simd_packed_double4;
#endif
/*! @abstract A vector of eight 64-bit floating-point numbers with relaxed
* alignment.
* @description In C++ this type is also available as
* simd::packed::double8. This type is not available in Metal. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
#if defined __LP64__
typedef __attribute__((__ext_vector_type__(8),__aligned__(8))) double simd_packed_double8;
#else
typedef __attribute__((__ext_vector_type__(8),__aligned__(4))) double simd_packed_double8;
#endif
/* MARK: C++ vector types */
#if defined __cplusplus
namespace simd {
namespace packed {
/*! @abstract A vector of two 8-bit signed (twos-complement) integers
* with relaxed alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_char2. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_char2 char2;
/*! @abstract A vector of four 8-bit signed (twos-complement) integers
* with relaxed alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_char4. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_char4 char4;
/*! @abstract A vector of eight 8-bit signed (twos-complement) integers
* with relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_char8. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_char8 char8;
/*! @abstract A vector of sixteen 8-bit signed (twos-complement)
* integers with relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_char16. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_char16 char16;
/*! @abstract A vector of thirty-two 8-bit signed (twos-complement)
* integers with relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_char32. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_char32 char32;
/*! @abstract A vector of sixty-four 8-bit signed (twos-complement)
* integers with relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_char64. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_char64 char64;
/*! @abstract A vector of two 8-bit unsigned integers with relaxed
* alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_uchar2. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_uchar2 uchar2;
/*! @abstract A vector of four 8-bit unsigned integers with relaxed
* alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_uchar4. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_uchar4 uchar4;
/*! @abstract A vector of eight 8-bit unsigned integers with relaxed
* alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_uchar8. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_uchar8 uchar8;
/*! @abstract A vector of sixteen 8-bit unsigned integers with relaxed
* alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_uchar16. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_uchar16 uchar16;
/*! @abstract A vector of thirty-two 8-bit unsigned integers with
* relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_uchar32. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_uchar32 uchar32;
/*! @abstract A vector of sixty-four 8-bit unsigned integers with
* relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_uchar64. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_uchar64 uchar64;
/*! @abstract A vector of two 16-bit signed (twos-complement) integers
* with relaxed alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_short2. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_short2 short2;
/*! @abstract A vector of four 16-bit signed (twos-complement) integers
* with relaxed alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_short4. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_short4 short4;
/*! @abstract A vector of eight 16-bit signed (twos-complement) integers
* with relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_short8. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_short8 short8;
/*! @abstract A vector of sixteen 16-bit signed (twos-complement)
* integers with relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_short16. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_short16 short16;
/*! @abstract A vector of thirty-two 16-bit signed (twos-complement)
* integers with relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_short32. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_short32 short32;
/*! @abstract A vector of two 16-bit unsigned integers with relaxed
* alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_ushort2. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_ushort2 ushort2;
/*! @abstract A vector of four 16-bit unsigned integers with relaxed
* alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_ushort4. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_ushort4 ushort4;
/*! @abstract A vector of eight 16-bit unsigned integers with relaxed
* alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_ushort8. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_ushort8 ushort8;
/*! @abstract A vector of sixteen 16-bit unsigned integers with relaxed
* alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_ushort16. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_ushort16 ushort16;
/*! @abstract A vector of thirty-two 16-bit unsigned integers with
* relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_ushort32. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_ushort32 ushort32;
/*! @abstract A vector of two 16-bit floating-point numbers with relaxed
* alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_half2. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_half2 half2;
/*! @abstract A vector of four 16-bit floating-point numbers with
* relaxed alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_half4. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_half4 half4;
/*! @abstract A vector of eight 16-bit floating-point numbers with
* relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_half8. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_half8 half8;
/*! @abstract A vector of sixteen 16-bit floating-point numbers with
* relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_half16. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_half16 half16;
/*! @abstract A vector of thirty-two 16-bit floating-point numbers with
* relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_half32. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_half32 half32;
/*! @abstract A vector of two 32-bit signed (twos-complement) integers
* with relaxed alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_int2. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_int2 int2;
/*! @abstract A vector of four 32-bit signed (twos-complement) integers
* with relaxed alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_int4. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_int4 int4;
/*! @abstract A vector of eight 32-bit signed (twos-complement) integers
* with relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_int8. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_int8 int8;
/*! @abstract A vector of sixteen 32-bit signed (twos-complement)
* integers with relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_int16. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_int16 int16;
/*! @abstract A vector of two 32-bit unsigned integers with relaxed
* alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_uint2. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_uint2 uint2;
/*! @abstract A vector of four 32-bit unsigned integers with relaxed
* alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_uint4. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_uint4 uint4;
/*! @abstract A vector of eight 32-bit unsigned integers with relaxed
* alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_uint8. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_uint8 uint8;
/*! @abstract A vector of sixteen 32-bit unsigned integers with relaxed
* alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_uint16. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_uint16 uint16;
/*! @abstract A vector of two 32-bit floating-point numbers with relaxed
* alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_float2. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_float2 float2;
/*! @abstract A vector of four 32-bit floating-point numbers with
* relaxed alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_float4. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_float4 float4;
/*! @abstract A vector of eight 32-bit floating-point numbers with
* relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_float8. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_float8 float8;
/*! @abstract A vector of sixteen 32-bit floating-point numbers with
* relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_float16. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_float16 float16;
/*! @abstract A vector of two 64-bit signed (twos-complement) integers
* with relaxed alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_long2. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_long2 long2;
/*! @abstract A vector of four 64-bit signed (twos-complement) integers
* with relaxed alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_long4. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_long4 long4;
/*! @abstract A vector of eight 64-bit signed (twos-complement) integers
* with relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_long8. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_long8 long8;
/*! @abstract A vector of two 64-bit unsigned integers with relaxed
* alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_ulong2. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_ulong2 ulong2;
/*! @abstract A vector of four 64-bit unsigned integers with relaxed
* alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_ulong4. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_ulong4 ulong4;
/*! @abstract A vector of eight 64-bit unsigned integers with relaxed
* alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_ulong8. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_ulong8 ulong8;
/*! @abstract A vector of two 64-bit floating-point numbers with relaxed
* alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_double2. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_double2 double2;
/*! @abstract A vector of four 64-bit floating-point numbers with
* relaxed alignment.
* @description In C or Objective-C, this type is available as
* simd_packed_double4. The alignment of this type is only that of the
* underlying scalar element type, so you can use it to load or store
* from an array of that type. */
typedef ::simd_packed_double4 double4;
/*! @abstract A vector of eight 64-bit floating-point numbers with
* relaxed alignment.
* @description This type is not available in Metal. In C or
* Objective-C, this type is available as simd_packed_double8. The
* alignment of this type is only that of the underlying scalar element
* type, so you can use it to load or store from an array of that type. */
typedef ::simd_packed_double8 double8;
} /* namespace simd::packed:: */
} /* namespace simd:: */
#endif /* __cplusplus */
/* MARK: Deprecated vector types */
/*! @group Deprecated vector types
* @discussion These are the original types used by earlier versions of the
* simd library; they are provided here for compatability with existing source
* files. Use the new ("simd_"-prefixed) types for future development. */
/*! @abstract A vector of two 8-bit signed (twos-complement) integers with
* relaxed alignment.
* @description This type is deprecated; you should use simd_packed_char2
* or simd::packed::char2 instead. */
typedef simd_packed_char2 packed_char2;
/*! @abstract A vector of four 8-bit signed (twos-complement) integers with
* relaxed alignment.
* @description This type is deprecated; you should use simd_packed_char4
* or simd::packed::char4 instead. */
typedef simd_packed_char4 packed_char4;
/*! @abstract A vector of eight 8-bit signed (twos-complement) integers with
* relaxed alignment.
* @description This type is deprecated; you should use simd_packed_char8
* or simd::packed::char8 instead. */
typedef simd_packed_char8 packed_char8;
/*! @abstract A vector of sixteen 8-bit signed (twos-complement) integers
* with relaxed alignment.
* @description This type is deprecated; you should use simd_packed_char16
* or simd::packed::char16 instead. */
typedef simd_packed_char16 packed_char16;
/*! @abstract A vector of thirty-two 8-bit signed (twos-complement) integers
* with relaxed alignment.
* @description This type is deprecated; you should use simd_packed_char32
* or simd::packed::char32 instead. */
typedef simd_packed_char32 packed_char32;
/*! @abstract A vector of sixty-four 8-bit signed (twos-complement) integers
* with relaxed alignment.
* @description This type is deprecated; you should use simd_packed_char64
* or simd::packed::char64 instead. */
typedef simd_packed_char64 packed_char64;
/*! @abstract A vector of two 8-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_uchar2
* or simd::packed::uchar2 instead. */
typedef simd_packed_uchar2 packed_uchar2;
/*! @abstract A vector of four 8-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_uchar4
* or simd::packed::uchar4 instead. */
typedef simd_packed_uchar4 packed_uchar4;
/*! @abstract A vector of eight 8-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_uchar8
* or simd::packed::uchar8 instead. */
typedef simd_packed_uchar8 packed_uchar8;
/*! @abstract A vector of sixteen 8-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_uchar16
* or simd::packed::uchar16 instead. */
typedef simd_packed_uchar16 packed_uchar16;
/*! @abstract A vector of thirty-two 8-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_uchar32
* or simd::packed::uchar32 instead. */
typedef simd_packed_uchar32 packed_uchar32;
/*! @abstract A vector of sixty-four 8-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_uchar64
* or simd::packed::uchar64 instead. */
typedef simd_packed_uchar64 packed_uchar64;
/*! @abstract A vector of two 16-bit signed (twos-complement) integers with
* relaxed alignment.
* @description This type is deprecated; you should use simd_packed_short2
* or simd::packed::short2 instead. */
typedef simd_packed_short2 packed_short2;
/*! @abstract A vector of four 16-bit signed (twos-complement) integers with
* relaxed alignment.
* @description This type is deprecated; you should use simd_packed_short4
* or simd::packed::short4 instead. */
typedef simd_packed_short4 packed_short4;
/*! @abstract A vector of eight 16-bit signed (twos-complement) integers
* with relaxed alignment.
* @description This type is deprecated; you should use simd_packed_short8
* or simd::packed::short8 instead. */
typedef simd_packed_short8 packed_short8;
/*! @abstract A vector of sixteen 16-bit signed (twos-complement) integers
* with relaxed alignment.
* @description This type is deprecated; you should use simd_packed_short16
* or simd::packed::short16 instead. */
typedef simd_packed_short16 packed_short16;
/*! @abstract A vector of thirty-two 16-bit signed (twos-complement)
* integers with relaxed alignment.
* @description This type is deprecated; you should use simd_packed_short32
* or simd::packed::short32 instead. */
typedef simd_packed_short32 packed_short32;
/*! @abstract A vector of two 16-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_ushort2
* or simd::packed::ushort2 instead. */
typedef simd_packed_ushort2 packed_ushort2;
/*! @abstract A vector of four 16-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_ushort4
* or simd::packed::ushort4 instead. */
typedef simd_packed_ushort4 packed_ushort4;
/*! @abstract A vector of eight 16-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_ushort8
* or simd::packed::ushort8 instead. */
typedef simd_packed_ushort8 packed_ushort8;
/*! @abstract A vector of sixteen 16-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use
* simd_packed_ushort16 or simd::packed::ushort16 instead. */
typedef simd_packed_ushort16 packed_ushort16;
/*! @abstract A vector of thirty-two 16-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use
* simd_packed_ushort32 or simd::packed::ushort32 instead. */
typedef simd_packed_ushort32 packed_ushort32;
/*! @abstract A vector of two 32-bit signed (twos-complement) integers with
* relaxed alignment.
* @description This type is deprecated; you should use simd_packed_int2 or
* simd::packed::int2 instead. */
typedef simd_packed_int2 packed_int2;
/*! @abstract A vector of four 32-bit signed (twos-complement) integers with
* relaxed alignment.
* @description This type is deprecated; you should use simd_packed_int4 or
* simd::packed::int4 instead. */
typedef simd_packed_int4 packed_int4;
/*! @abstract A vector of eight 32-bit signed (twos-complement) integers
* with relaxed alignment.
* @description This type is deprecated; you should use simd_packed_int8 or
* simd::packed::int8 instead. */
typedef simd_packed_int8 packed_int8;
/*! @abstract A vector of sixteen 32-bit signed (twos-complement) integers
* with relaxed alignment.
* @description This type is deprecated; you should use simd_packed_int16
* or simd::packed::int16 instead. */
typedef simd_packed_int16 packed_int16;
/*! @abstract A vector of two 32-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_uint2
* or simd::packed::uint2 instead. */
typedef simd_packed_uint2 packed_uint2;
/*! @abstract A vector of four 32-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_uint4
* or simd::packed::uint4 instead. */
typedef simd_packed_uint4 packed_uint4;
/*! @abstract A vector of eight 32-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_uint8
* or simd::packed::uint8 instead. */
typedef simd_packed_uint8 packed_uint8;
/*! @abstract A vector of sixteen 32-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_uint16
* or simd::packed::uint16 instead. */
typedef simd_packed_uint16 packed_uint16;
/*! @abstract A vector of two 32-bit floating-point numbers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_float2
* or simd::packed::float2 instead. */
typedef simd_packed_float2 packed_float2;
/*! @abstract A vector of four 32-bit floating-point numbers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_float4
* or simd::packed::float4 instead. */
typedef simd_packed_float4 packed_float4;
/*! @abstract A vector of eight 32-bit floating-point numbers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_float8
* or simd::packed::float8 instead. */
typedef simd_packed_float8 packed_float8;
/*! @abstract A vector of sixteen 32-bit floating-point numbers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_float16
* or simd::packed::float16 instead. */
typedef simd_packed_float16 packed_float16;
/*! @abstract A vector of two 64-bit signed (twos-complement) integers with
* relaxed alignment.
* @description This type is deprecated; you should use simd_packed_long2
* or simd::packed::long2 instead. */
typedef simd_packed_long2 packed_long2;
/*! @abstract A vector of four 64-bit signed (twos-complement) integers with
* relaxed alignment.
* @description This type is deprecated; you should use simd_packed_long4
* or simd::packed::long4 instead. */
typedef simd_packed_long4 packed_long4;
/*! @abstract A vector of eight 64-bit signed (twos-complement) integers
* with relaxed alignment.
* @description This type is deprecated; you should use simd_packed_long8
* or simd::packed::long8 instead. */
typedef simd_packed_long8 packed_long8;
/*! @abstract A vector of two 64-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_ulong2
* or simd::packed::ulong2 instead. */
typedef simd_packed_ulong2 packed_ulong2;
/*! @abstract A vector of four 64-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_ulong4
* or simd::packed::ulong4 instead. */
typedef simd_packed_ulong4 packed_ulong4;
/*! @abstract A vector of eight 64-bit unsigned integers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_ulong8
* or simd::packed::ulong8 instead. */
typedef simd_packed_ulong8 packed_ulong8;
/*! @abstract A vector of two 64-bit floating-point numbers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_double2
* or simd::packed::double2 instead. */
typedef simd_packed_double2 packed_double2;
/*! @abstract A vector of four 64-bit floating-point numbers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_double4
* or simd::packed::double4 instead. */
typedef simd_packed_double4 packed_double4;
/*! @abstract A vector of eight 64-bit floating-point numbers with relaxed
* alignment.
* @description This type is deprecated; you should use simd_packed_double8
* or simd::packed::double8 instead. */
typedef simd_packed_double8 packed_double8;
# endif /* SIMD_COMPILER_HAS_REQUIRED_FEATURES */
#endif
|