48 references to Vector
mscorlib (1)
mscorlib.cs (1)
81[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Vector))]
netstandard (1)
netstandard.cs (1)
1337[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Vector))]
System.Linq (11)
System\Linq\Average.cs (3)
32if (Vector.IsHardwareAccelerated && span.Length >= Vector<int>.Count) 37Vector.Widen(new Vector<int>(span.Slice(i)), out Vector<long> low, out Vector<long> high); 43sum += Vector.Sum(sums);
System\Linq\Range.cs (1)
84if (Vector.IsHardwareAccelerated &&
System\Linq\Sum.cs (7)
53&& Vector.IsHardwareAccelerated 85Debug.Assert(Vector.IsHardwareAccelerated); 128Vector<T> data = Vector.LoadUnsafe(ref ptr, index); 132data = Vector.LoadUnsafe(ref ptr, index + (nuint)Vector<T>.Count); 136data = Vector.LoadUnsafe(ref ptr, index + (nuint)Vector<T>.Count * 2); 140data = Vector.LoadUnsafe(ref ptr, index + (nuint)Vector<T>.Count * 3); 160Vector<T> data = Vector.LoadUnsafe(ref ptr, index);
System.Net.WebSockets (2)
System\Net\WebSockets\ManagedWebSocket.cs (2)
1683if (Vector.IsHardwareAccelerated && (toMaskEnd - toMaskPtr) >= Vector<byte>.Count) 1685Vector<byte> maskVector = Vector.AsVectorByte(new Vector<int>(rolledMask));
System.Numerics.Vectors (1)
artifacts\obj\System.Numerics.Vectors\Debug\net10.0\System.Numerics.Vectors.Forwards.cs (1)
7[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Vector))]
System.Private.CoreLib (31)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (6)
43this = Vector.Create(value); 132get => Vector.Create(Scalar<T>.AllBitsSet); 192get => Vector.Create(Scalar<T>.One); 503public static Vector<T> operator *(Vector<T> value, T factor) => value * Vector.Create(factor); 580return value ^ Vector.Create(-0.0f).As<float, T>(); 584return value ^ Vector.Create(-0.0).As<double, T>();
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (1)
20/// <summary>Specifies the alignment of the vector as used by the <see cref="LoadAligned(float*)" /> and <see cref="Vector.StoreAligned(Vector2, float*)" /> APIs.</summary>
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (1)
20/// <summary>Specifies the alignment of the vector as used by the <see cref="LoadAligned(float*)" /> and <see cref="Vector.StoreAligned(Vector3, float*)" /> APIs.</summary>
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (1)
19/// <summary>Specifies the alignment of the vector as used by the <see cref="LoadAligned(float*)" /> and <see cref="Vector.StoreAligned(Vector4, float*)" /> APIs.</summary>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\VectorMath.cs (9)
2362result = (TVectorDouble)(object)Vector.ConvertToDouble((Vector<long>)(object)vector); 2397result = (TVectorSingle)(object)Vector.ConvertToSingle((Vector<int>)(object)vector); 2521result = (TVector)(object)Vector.Create(value); 2555result = (TVector)(object)Vector.Create(value); 2648result = (TVectorSingle)(object)Vector.Narrow((Vector<double>)(object)lower, (Vector<double>)(object)upper); 2686result = (TVectorUInt32)(object)Vector.ShiftLeft( 2735result = (TVectorUInt64)(object)Vector.ShiftLeft( 2973result = (TVectorDouble)(object)Vector.WidenLower((Vector<float>)(object)vector); 3013result = (TVectorDouble)(object)Vector.WidenUpper((Vector<float>)(object)vector);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.ByteMemOps.cs (1)
433if (!Vector.IsHardwareAccelerated)
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Char.cs (1)
480if (Vector.IsHardwareAccelerated && minLength >= (nuint)Vector<ushort>.Count)
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (1)
24if (!Vector.IsHardwareAccelerated) { goto CannotVectorize; }
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Utility.cs (10)
45if (Vector.IsHardwareAccelerated && bufferLength >= 2 * (uint)Vector<ushort>.Count) 52if (Vector.LessThanOrEqualAll(Unsafe.ReadUnaligned<Vector<ushort>>(pBuffer), maxLatin1)) 72if (Vector.GreaterThanAny(Unsafe.Read<Vector<ushort>>(pBuffer), maxLatin1)) 579else if (Vector.IsHardwareAccelerated) 616if (Vector.GreaterThanAny(Vector.BitwiseOr(utf16VectorHigh, utf16VectorLow), maxLatin1)) 622Vector<byte> latin1Vector = Vector.Narrow(utf16VectorHigh, utf16VectorLow); 1075if (Vector.IsHardwareAccelerated) 1088Vector.Widen(Vector.AsVectorByte(latin1Vector), out Vector<ushort> utf16LowVector, out Vector<ushort> utf16HighVector);
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\AllowedBmpCodePointsBitmap.cs (1)
73if (Vector.IsHardwareAccelerated && BitConverter.IsLittleEndian)