Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Vector64.cs
Go to the documentation of this file.
7using System.Text;
9
11
12public static class Vector64
13{
14 [MethodImpl(MethodImplOptions.AggressiveInlining)]
15 [Intrinsic]
16 public static Vector64<U> As<T, U>(this Vector64<T> vector) where T : struct where U : struct
17 {
18 ThrowHelper.ThrowForUnsupportedIntrinsicsVectorBaseType<T>();
19 ThrowHelper.ThrowForUnsupportedIntrinsicsVectorBaseType<U>();
20 return Unsafe.As<Vector64<T>, Vector64<U>>(ref vector);
21 }
22
23 [Intrinsic]
24 public static Vector64<byte> AsByte<T>(this Vector64<T> vector) where T : struct
25 {
26 return vector.As<T, byte>();
27 }
28
29 [Intrinsic]
30 public static Vector64<double> AsDouble<T>(this Vector64<T> vector) where T : struct
31 {
32 return vector.As<T, double>();
33 }
34
35 [Intrinsic]
36 public static Vector64<short> AsInt16<T>(this Vector64<T> vector) where T : struct
37 {
38 return vector.As<T, short>();
39 }
40
41 [Intrinsic]
42 public static Vector64<int> AsInt32<T>(this Vector64<T> vector) where T : struct
43 {
44 return vector.As<T, int>();
45 }
46
47 [Intrinsic]
48 public static Vector64<long> AsInt64<T>(this Vector64<T> vector) where T : struct
49 {
50 return vector.As<T, long>();
51 }
52
53 [Intrinsic]
54 [CLSCompliant(false)]
55 public static Vector64<sbyte> AsSByte<T>(this Vector64<T> vector) where T : struct
56 {
57 return vector.As<T, sbyte>();
58 }
59
60 [Intrinsic]
61 public static Vector64<float> AsSingle<T>(this Vector64<T> vector) where T : struct
62 {
63 return vector.As<T, float>();
64 }
65
66 [Intrinsic]
67 [CLSCompliant(false)]
68 public static Vector64<ushort> AsUInt16<T>(this Vector64<T> vector) where T : struct
69 {
70 return vector.As<T, ushort>();
71 }
72
73 [Intrinsic]
74 [CLSCompliant(false)]
75 public static Vector64<uint> AsUInt32<T>(this Vector64<T> vector) where T : struct
76 {
77 return vector.As<T, uint>();
78 }
79
80 [Intrinsic]
81 [CLSCompliant(false)]
82 public static Vector64<ulong> AsUInt64<T>(this Vector64<T> vector) where T : struct
83 {
84 return vector.As<T, ulong>();
85 }
86
87 [Intrinsic]
88 public static Vector64<byte> Create(byte value)
89 {
91 {
92 }
93 return SoftwareFallback(value);
94 unsafe static Vector64<byte> SoftwareFallback(byte value)
95 {
96 byte* source = stackalloc byte[8] { value, value, value, value, value, value, value, value };
97 return Unsafe.AsRef<Vector64<byte>>(source);
98 }
99 }
100
101 [Intrinsic]
102 public static Vector64<double> Create(double value)
103 {
105 {
106 }
107 return SoftwareFallback(value);
108 static Vector64<double> SoftwareFallback(double value)
109 {
110 return Unsafe.As<double, Vector64<double>>(ref value);
111 }
112 }
113
114 [Intrinsic]
115 public static Vector64<short> Create(short value)
116 {
118 {
119 }
120 return SoftwareFallback(value);
121 unsafe static Vector64<short> SoftwareFallback(short value)
122 {
123 short* source = stackalloc short[4] { value, value, value, value };
124 return Unsafe.AsRef<Vector64<short>>(source);
125 }
126 }
127
128 [Intrinsic]
129 public static Vector64<int> Create(int value)
130 {
132 {
133 }
134 return SoftwareFallback(value);
135 unsafe static Vector64<int> SoftwareFallback(int value)
136 {
137 int* source = stackalloc int[2] { value, value };
138 return Unsafe.AsRef<Vector64<int>>(source);
139 }
140 }
141
142 [Intrinsic]
143 public static Vector64<long> Create(long value)
144 {
146 {
147 }
148 return SoftwareFallback(value);
149 static Vector64<long> SoftwareFallback(long value)
150 {
151 return Unsafe.As<long, Vector64<long>>(ref value);
152 }
153 }
154
155 [Intrinsic]
156 [CLSCompliant(false)]
157 public static Vector64<sbyte> Create(sbyte value)
158 {
160 {
161 }
162 return SoftwareFallback(value);
163 unsafe static Vector64<sbyte> SoftwareFallback(sbyte value)
164 {
165 sbyte* source = stackalloc sbyte[8] { value, value, value, value, value, value, value, value };
166 return Unsafe.AsRef<Vector64<sbyte>>(source);
167 }
168 }
169
170 [Intrinsic]
171 public static Vector64<float> Create(float value)
172 {
174 {
175 }
176 return SoftwareFallback(value);
177 unsafe static Vector64<float> SoftwareFallback(float value)
178 {
179 float* source = stackalloc float[2] { value, value };
180 return Unsafe.AsRef<Vector64<float>>(source);
181 }
182 }
183
184 [Intrinsic]
185 [CLSCompliant(false)]
186 public static Vector64<ushort> Create(ushort value)
187 {
189 {
190 }
191 return SoftwareFallback(value);
192 unsafe static Vector64<ushort> SoftwareFallback(ushort value)
193 {
194 ushort* source = stackalloc ushort[4] { value, value, value, value };
195 return Unsafe.AsRef<Vector64<ushort>>(source);
196 }
197 }
198
199 [Intrinsic]
200 [CLSCompliant(false)]
201 public static Vector64<uint> Create(uint value)
202 {
204 {
205 }
206 return SoftwareFallback(value);
207 unsafe static Vector64<uint> SoftwareFallback(uint value)
208 {
209 uint* source = stackalloc uint[2] { value, value };
210 return Unsafe.AsRef<Vector64<uint>>(source);
211 }
212 }
213
214 [Intrinsic]
215 [CLSCompliant(false)]
216 public static Vector64<ulong> Create(ulong value)
217 {
219 {
220 }
221 return SoftwareFallback(value);
222 static Vector64<ulong> SoftwareFallback(ulong value)
223 {
224 return Unsafe.As<ulong, Vector64<ulong>>(ref value);
225 }
226 }
227
228 [Intrinsic]
229 public static Vector64<byte> Create(byte e0, byte e1, byte e2, byte e3, byte e4, byte e5, byte e6, byte e7)
230 {
232 {
233 }
234 return SoftwareFallback(e0, e1, e2, e3, e4, e5, e6, e7);
235 unsafe static Vector64<byte> SoftwareFallback(byte e0, byte e1, byte e2, byte e3, byte e4, byte e5, byte e6, byte e7)
236 {
237 byte* source = stackalloc byte[8] { e0, e1, e2, e3, e4, e5, e6, e7 };
238 return Unsafe.AsRef<Vector64<byte>>(source);
239 }
240 }
241
242 [Intrinsic]
243 public static Vector64<short> Create(short e0, short e1, short e2, short e3)
244 {
246 {
247 }
248 return SoftwareFallback(e0, e1, e2, e3);
249 unsafe static Vector64<short> SoftwareFallback(short e0, short e1, short e2, short e3)
250 {
251 short* source = stackalloc short[4] { e0, e1, e2, e3 };
252 return Unsafe.AsRef<Vector64<short>>(source);
253 }
254 }
255
256 [Intrinsic]
257 public static Vector64<int> Create(int e0, int e1)
258 {
260 {
261 }
262 return SoftwareFallback(e0, e1);
263 unsafe static Vector64<int> SoftwareFallback(int e0, int e1)
264 {
265 int* source = stackalloc int[2] { e0, e1 };
266 return Unsafe.AsRef<Vector64<int>>(source);
267 }
268 }
269
270 [Intrinsic]
271 [CLSCompliant(false)]
272 public static Vector64<sbyte> Create(sbyte e0, sbyte e1, sbyte e2, sbyte e3, sbyte e4, sbyte e5, sbyte e6, sbyte e7)
273 {
275 {
276 }
277 return SoftwareFallback(e0, e1, e2, e3, e4, e5, e6, e7);
278 unsafe static Vector64<sbyte> SoftwareFallback(sbyte e0, sbyte e1, sbyte e2, sbyte e3, sbyte e4, sbyte e5, sbyte e6, sbyte e7)
279 {
280 sbyte* source = stackalloc sbyte[8] { e0, e1, e2, e3, e4, e5, e6, e7 };
281 return Unsafe.AsRef<Vector64<sbyte>>(source);
282 }
283 }
284
285 [Intrinsic]
286 public static Vector64<float> Create(float e0, float e1)
287 {
289 {
290 }
291 return SoftwareFallback(e0, e1);
292 unsafe static Vector64<float> SoftwareFallback(float e0, float e1)
293 {
294 float* source = stackalloc float[2] { e0, e1 };
295 return Unsafe.AsRef<Vector64<float>>(source);
296 }
297 }
298
299 [Intrinsic]
300 [CLSCompliant(false)]
301 public static Vector64<ushort> Create(ushort e0, ushort e1, ushort e2, ushort e3)
302 {
304 {
305 }
306 return SoftwareFallback(e0, e1, e2, e3);
307 unsafe static Vector64<ushort> SoftwareFallback(ushort e0, ushort e1, ushort e2, ushort e3)
308 {
309 ushort* source = stackalloc ushort[4] { e0, e1, e2, e3 };
310 return Unsafe.AsRef<Vector64<ushort>>(source);
311 }
312 }
313
314 [Intrinsic]
315 [CLSCompliant(false)]
316 public static Vector64<uint> Create(uint e0, uint e1)
317 {
319 {
320 }
321 return SoftwareFallback(e0, e1);
322 unsafe static Vector64<uint> SoftwareFallback(uint e0, uint e1)
323 {
324 uint* source = stackalloc uint[2] { e0, e1 };
325 return Unsafe.AsRef<Vector64<uint>>(source);
326 }
327 }
328
330 {
332 {
333 }
334 return SoftwareFallback(value);
335 static Vector64<byte> SoftwareFallback(byte value)
336 {
338 Unsafe.WriteUnaligned(ref Unsafe.As<Vector64<byte>, byte>(ref source), value);
339 return source;
340 }
341 }
342
343 public static Vector64<double> CreateScalar(double value)
344 {
346 {
347 }
348 return SoftwareFallback(value);
349 static Vector64<double> SoftwareFallback(double value)
350 {
351 return Unsafe.As<double, Vector64<double>>(ref value);
352 }
353 }
354
355 public static Vector64<short> CreateScalar(short value)
356 {
358 {
359 }
360 return SoftwareFallback(value);
361 static Vector64<short> SoftwareFallback(short value)
362 {
364 Unsafe.WriteUnaligned(ref Unsafe.As<Vector64<short>, byte>(ref source), value);
365 return source;
366 }
367 }
368
370 {
372 {
373 }
374 return SoftwareFallback(value);
375 static Vector64<int> SoftwareFallback(int value)
376 {
378 Unsafe.WriteUnaligned(ref Unsafe.As<Vector64<int>, byte>(ref source), value);
379 return source;
380 }
381 }
382
384 {
386 {
387 }
388 return SoftwareFallback(value);
389 static Vector64<long> SoftwareFallback(long value)
390 {
391 return Unsafe.As<long, Vector64<long>>(ref value);
392 }
393 }
394
395 [CLSCompliant(false)]
396 public static Vector64<sbyte> CreateScalar(sbyte value)
397 {
399 {
400 }
401 return SoftwareFallback(value);
402 static Vector64<sbyte> SoftwareFallback(sbyte value)
403 {
405 Unsafe.WriteUnaligned(ref Unsafe.As<Vector64<sbyte>, byte>(ref source), value);
406 return source;
407 }
408 }
409
410 public static Vector64<float> CreateScalar(float value)
411 {
413 {
414 }
415 return SoftwareFallback(value);
416 static Vector64<float> SoftwareFallback(float value)
417 {
419 Unsafe.WriteUnaligned(ref Unsafe.As<Vector64<float>, byte>(ref source), value);
420 return source;
421 }
422 }
423
424 [CLSCompliant(false)]
425 public static Vector64<ushort> CreateScalar(ushort value)
426 {
428 {
429 }
430 return SoftwareFallback(value);
431 static Vector64<ushort> SoftwareFallback(ushort value)
432 {
434 Unsafe.WriteUnaligned(ref Unsafe.As<Vector64<ushort>, byte>(ref source), value);
435 return source;
436 }
437 }
438
439 [CLSCompliant(false)]
441 {
443 {
444 }
445 return SoftwareFallback(value);
446 static Vector64<uint> SoftwareFallback(uint value)
447 {
449 Unsafe.WriteUnaligned(ref Unsafe.As<Vector64<uint>, byte>(ref source), value);
450 return source;
451 }
452 }
453
454 [CLSCompliant(false)]
455 public static Vector64<ulong> CreateScalar(ulong value)
456 {
458 {
459 }
460 return SoftwareFallback(value);
461 static Vector64<ulong> SoftwareFallback(ulong value)
462 {
463 return Unsafe.As<ulong, Vector64<ulong>>(ref value);
464 }
465 }
466
467 [Intrinsic]
468 public unsafe static Vector64<byte> CreateScalarUnsafe(byte value)
469 {
470 byte* ptr = stackalloc byte[8];
471 *ptr = value;
472 return Unsafe.AsRef<Vector64<byte>>(ptr);
473 }
474
475 [Intrinsic]
476 public unsafe static Vector64<short> CreateScalarUnsafe(short value)
477 {
478 short* ptr = stackalloc short[4];
479 *ptr = value;
480 return Unsafe.AsRef<Vector64<short>>(ptr);
481 }
482
483 [Intrinsic]
484 public unsafe static Vector64<int> CreateScalarUnsafe(int value)
485 {
486 int* ptr = stackalloc int[2];
487 *ptr = value;
488 return Unsafe.AsRef<Vector64<int>>(ptr);
489 }
490
491 [CLSCompliant(false)]
492 [Intrinsic]
493 public unsafe static Vector64<sbyte> CreateScalarUnsafe(sbyte value)
494 {
495 sbyte* ptr = stackalloc sbyte[8];
496 *ptr = value;
497 return Unsafe.AsRef<Vector64<sbyte>>(ptr);
498 }
499
500 [Intrinsic]
501 public unsafe static Vector64<float> CreateScalarUnsafe(float value)
502 {
503 float* ptr = stackalloc float[2];
504 *ptr = value;
505 return Unsafe.AsRef<Vector64<float>>(ptr);
506 }
507
508 [CLSCompliant(false)]
509 [Intrinsic]
510 public unsafe static Vector64<ushort> CreateScalarUnsafe(ushort value)
511 {
512 ushort* ptr = stackalloc ushort[4];
513 *ptr = value;
514 return Unsafe.AsRef<Vector64<ushort>>(ptr);
515 }
516
517 [CLSCompliant(false)]
518 [Intrinsic]
519 public unsafe static Vector64<uint> CreateScalarUnsafe(uint value)
520 {
521 uint* ptr = stackalloc uint[2];
522 *ptr = value;
523 return Unsafe.AsRef<Vector64<uint>>(ptr);
524 }
525
526 [Intrinsic]
527 public static T GetElement<T>(this Vector64<T> vector, int index) where T : struct
528 {
529 ThrowHelper.ThrowForUnsupportedIntrinsicsVectorBaseType<T>();
530 if ((uint)index >= (uint)Vector64<T>.Count)
531 {
533 }
534 return Unsafe.Add(ref Unsafe.As<Vector64<T>, T>(ref vector), index);
535 }
536
537 [Intrinsic]
538 public static Vector64<T> WithElement<T>(this Vector64<T> vector, int index, T value) where T : struct
539 {
540 ThrowHelper.ThrowForUnsupportedIntrinsicsVectorBaseType<T>();
541 if ((uint)index >= (uint)Vector64<T>.Count)
542 {
544 }
545 Vector64<T> source = vector;
546 Unsafe.Add(ref Unsafe.As<Vector64<T>, T>(ref source), index) = value;
547 return source;
548 }
549
550 [Intrinsic]
551 public static T ToScalar<T>(this Vector64<T> vector) where T : struct
552 {
553 ThrowHelper.ThrowForUnsupportedIntrinsicsVectorBaseType<T>();
554 return Unsafe.As<Vector64<T>, T>(ref vector);
555 }
556
557 [Intrinsic]
558 public static Vector128<T> ToVector128<T>(this Vector64<T> vector) where T : struct
559 {
560 ThrowHelper.ThrowForUnsupportedIntrinsicsVectorBaseType<T>();
562 Unsafe.As<Vector128<T>, Vector64<T>>(ref source) = vector;
563 return source;
564 }
565
566 [Intrinsic]
567 public unsafe static Vector128<T> ToVector128Unsafe<T>(this Vector64<T> vector) where T : struct
568 {
569 ThrowHelper.ThrowForUnsupportedIntrinsicsVectorBaseType<T>();
570 byte* source = stackalloc byte[16];
571 Unsafe.AsRef<Vector64<T>>(source) = vector;
572 return Unsafe.AsRef<Vector128<T>>(source);
573 }
574}
575[StructLayout(LayoutKind.Sequential, Size = 8)]
576[Intrinsic]
577[DebuggerDisplay("{DisplayString,nq}")]
578[DebuggerTypeProxy(typeof(Vector64DebugView<>))]
579public readonly struct Vector64<T> : IEquatable<Vector64<T>> where T : struct
580{
581 private readonly ulong _00;
582
583 public static int Count
584 {
585 [Intrinsic]
586 get
587 {
588 ThrowHelper.ThrowForUnsupportedIntrinsicsVectorBaseType<T>();
589 return 8 / Unsafe.SizeOf<T>();
590 }
591 }
592
593 public static Vector64<T> Zero
594 {
595 [Intrinsic]
596 get
597 {
598 ThrowHelper.ThrowForUnsupportedIntrinsicsVectorBaseType<T>();
599 return default(Vector64<T>);
600 }
601 }
602
604 {
605 [Intrinsic]
606 get
607 {
608 ThrowHelper.ThrowForUnsupportedIntrinsicsVectorBaseType<T>();
609 return Vector64.Create(uint.MaxValue).As<uint, T>();
610 }
611 }
612
613 internal string DisplayString
614 {
615 get
616 {
617 if (IsSupported)
618 {
619 return ToString();
620 }
621 return SR.NotSupported_Type;
622 }
623 }
624
625 internal static bool IsSupported
626 {
627 [MethodImpl(MethodImplOptions.AggressiveInlining)]
628 get
629 {
630 if (!(typeof(T) == typeof(byte)) && !(typeof(T) == typeof(sbyte)) && !(typeof(T) == typeof(short)) && !(typeof(T) == typeof(ushort)) && !(typeof(T) == typeof(int)) && !(typeof(T) == typeof(uint)) && !(typeof(T) == typeof(long)) && !(typeof(T) == typeof(ulong)) && !(typeof(T) == typeof(float)))
631 {
632 return typeof(T) == typeof(double);
633 }
634 return true;
635 }
636 }
637
639 {
640 ThrowHelper.ThrowForUnsupportedIntrinsicsVectorBaseType<T>();
641 for (int i = 0; i < Count; i++)
642 {
643 if (!((IEquatable<T>)(object)this.GetElement(i)).Equals(other.GetElement(i)))
644 {
645 return false;
646 }
647 }
648 return true;
649 }
650
651 public override bool Equals([NotNullWhen(true)] object? obj)
652 {
653 if (obj is Vector64<T>)
654 {
655 return Equals((Vector64<T>)obj);
656 }
657 return false;
658 }
659
660 public override int GetHashCode()
661 {
662 ThrowHelper.ThrowForUnsupportedIntrinsicsVectorBaseType<T>();
663 HashCode hashCode = default(HashCode);
664 for (int i = 0; i < Count; i++)
665 {
666 hashCode.Add(this.GetElement(i).GetHashCode());
667 }
668 return hashCode.ToHashCode();
669 }
670
671 public override string ToString()
672 {
673 ThrowHelper.ThrowForUnsupportedIntrinsicsVectorBaseType<T>();
674 int num = Count - 1;
675 Span<char> initialBuffer = stackalloc char[64];
676 ValueStringBuilder valueStringBuilder = new ValueStringBuilder(initialBuffer);
677 CultureInfo invariantCulture = CultureInfo.InvariantCulture;
678 valueStringBuilder.Append('<');
679 for (int i = 0; i < num; i++)
680 {
681 valueStringBuilder.Append(((IFormattable)(object)this.GetElement(i)).ToString("G", invariantCulture));
682 valueStringBuilder.Append(',');
683 valueStringBuilder.Append(' ');
684 }
685 valueStringBuilder.Append(((IFormattable)(object)this.GetElement(num)).ToString("G", invariantCulture));
686 valueStringBuilder.Append('>');
687 return valueStringBuilder.ToString();
688 }
689}
static CultureInfo InvariantCulture
static Vector64< ushort > Create(ushort value)
Definition Vector64.cs:186
static Vector64< short > CreateScalar(short value)
Definition Vector64.cs:355
static unsafe Vector128< T > ToVector128Unsafe< T >(this Vector64< T > vector)
Definition Vector64.cs:567
static Vector64< T > WithElement< T >(this Vector64< T > vector, int index, T value)
Definition Vector64.cs:538
static unsafe Vector64< sbyte > CreateScalarUnsafe(sbyte value)
Definition Vector64.cs:493
static Vector64< int > Create(int e0, int e1)
Definition Vector64.cs:257
static Vector64< long > CreateScalar(long value)
Definition Vector64.cs:383
static Vector64< sbyte > Create(sbyte e0, sbyte e1, sbyte e2, sbyte e3, sbyte e4, sbyte e5, sbyte e6, sbyte e7)
Definition Vector64.cs:272
static Vector64< U > As< T, U >(this Vector64< T > vector)
Definition Vector64.cs:16
bool Equals(Vector64< T > other)
Definition Vector64.cs:638
static Vector64< float > Create(float e0, float e1)
Definition Vector64.cs:286
static Vector64< byte > Create(byte value)
Definition Vector64.cs:88
static Vector64< float > AsSingle< T >(this Vector64< T > vector)
Definition Vector64.cs:61
static unsafe Vector64< float > CreateScalarUnsafe(float value)
Definition Vector64.cs:501
static Vector64< ushort > CreateScalar(ushort value)
Definition Vector64.cs:425
static Vector64< long > AsInt64< T >(this Vector64< T > vector)
Definition Vector64.cs:48
static Vector64< byte > AsByte< T >(this Vector64< T > vector)
Definition Vector64.cs:24
static unsafe Vector64< uint > CreateScalarUnsafe(uint value)
Definition Vector64.cs:519
static unsafe Vector64< int > CreateScalarUnsafe(int value)
Definition Vector64.cs:484
static Vector64< sbyte > AsSByte< T >(this Vector64< T > vector)
Definition Vector64.cs:55
static Vector64< double > CreateScalar(double value)
Definition Vector64.cs:343
static Vector128< T > ToVector128< T >(this Vector64< T > vector)
Definition Vector64.cs:558
static Vector64< byte > Create(byte e0, byte e1, byte e2, byte e3, byte e4, byte e5, byte e6, byte e7)
Definition Vector64.cs:229
static Vector64< float > Create(float value)
Definition Vector64.cs:171
static Vector64< int > CreateScalar(int value)
Definition Vector64.cs:369
static Vector64< short > Create(short e0, short e1, short e2, short e3)
Definition Vector64.cs:243
static Vector64< T > Zero
Definition Vector64.cs:594
static T ToScalar< T >(this Vector64< T > vector)
Definition Vector64.cs:551
static Vector64< short > Create(short value)
Definition Vector64.cs:115
static unsafe Vector64< ushort > CreateScalarUnsafe(ushort value)
Definition Vector64.cs:510
static Vector64< sbyte > CreateScalar(sbyte value)
Definition Vector64.cs:396
static Vector64< sbyte > Create(sbyte value)
Definition Vector64.cs:157
static Vector64< uint > Create(uint value)
Definition Vector64.cs:201
static Vector64< ushort > Create(ushort e0, ushort e1, ushort e2, ushort e3)
Definition Vector64.cs:301
static Vector64< uint > CreateScalar(uint value)
Definition Vector64.cs:440
static Vector64< uint > Create(uint e0, uint e1)
Definition Vector64.cs:316
static Vector64< ulong > CreateScalar(ulong value)
Definition Vector64.cs:455
static Vector64< int > Create(int value)
Definition Vector64.cs:129
static Vector64< float > CreateScalar(float value)
Definition Vector64.cs:410
static T GetElement< T >(this Vector64< T > vector, int index)
Definition Vector64.cs:527
static Vector64< double > Create(double value)
Definition Vector64.cs:102
static Vector64< long > Create(long value)
Definition Vector64.cs:143
static Vector64< T > AllBitsSet
Definition Vector64.cs:604
static Vector64< byte > CreateScalar(byte value)
Definition Vector64.cs:329
static Vector64< ulong > AsUInt64< T >(this Vector64< T > vector)
Definition Vector64.cs:82
override bool Equals([NotNullWhen(true)] object? obj)
Definition Vector64.cs:651
static Vector64< ushort > AsUInt16< T >(this Vector64< T > vector)
Definition Vector64.cs:68
static unsafe Vector64< short > CreateScalarUnsafe(short value)
Definition Vector64.cs:476
static Vector64< int > AsInt32< T >(this Vector64< T > vector)
Definition Vector64.cs:42
static Vector64< short > AsInt16< T >(this Vector64< T > vector)
Definition Vector64.cs:36
static Vector64< uint > AsUInt32< T >(this Vector64< T > vector)
Definition Vector64.cs:75
static Vector64< double > AsDouble< T >(this Vector64< T > vector)
Definition Vector64.cs:30
static unsafe Vector64< byte > CreateScalarUnsafe(byte value)
Definition Vector64.cs:468
static Vector64< ulong > Create(ulong value)
Definition Vector64.cs:216
static string NotSupported_Type
Definition SR.cs:1718
Definition SR.cs:7
static void ThrowArgumentOutOfRangeException(System.ExceptionArgument argument)
void Add(int value)
Definition HashCode.cs:239