Implement the Count property, the IEquatable and IFormattable interfaces, and the...
authorTanner Gooding <tagoo@outlook.com>
Thu, 29 Nov 2018 20:15:43 +0000 (12:15 -0800)
committerGitHub <noreply@github.com>
Thu, 29 Nov 2018 20:15:43 +0000 (12:15 -0800)
commit8bea77ee400d17a289db630bfd9676ce772426f5
tree960f21387093eebdbce5f1d36a4a50447efc6d33
parent3eac0693fab69a4b02f7d61dd474c37798f65608
Implement the Count property, the IEquatable and IFormattable interfaces, and the standard object overrides on Vector64/128/256<T> (dotnet/coreclr#21259)

* Exposing the Count property on Vector64/128/256<T>

* Implementing IEquatable, IFormattable, and the object overrides on Vector64/128/256<T>

* Use StringBuilderCache, HashCode, and the provided format specifier

* Use StringBuilderCache.GetStringAndRelease and get the correct element when formatting Vector64/128/256<T>

Commit migrated from https://github.com/dotnet/coreclr/commit/211d963a42c8988770afa4d2edcbe9be0ed0b8a8
src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector128_1.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector256_1.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector64_1.cs