add note about simd
This commit is contained in:
parent
defb7b3b26
commit
a6df2053af
|
|
@ -46,6 +46,11 @@ However because C# JIT implementations (RyuJIT included) monomorphizes generics
|
||||||
|
|
||||||
... Good for us, because I abused this pattern in this program in order to make it easy to toggle on/off vectorization!
|
... Good for us, because I abused this pattern in this program in order to make it easy to toggle on/off vectorization!
|
||||||
|
|
||||||
|
## SIMD in C#
|
||||||
|
It turns out C# has really nice cross-platform SIMD support, and `Vector2`, `Vector3`, `Vector4` etc. types all automatically benefit from this.
|
||||||
|
|
||||||
|
However, for our specific case we want to go as broad as we can, so if we've got 4 lanes, 8 lanes, etc on our given hardware, we'd like to utilize that best we can, and `Vector<T>` in C# it turns out [allows you to do exactly this](https://learn.microsoft.com/en-us/dotnet/standard/simd#vectort), huge props to the C# team for making it so simple.
|
||||||
|
|
||||||
# The Program
|
# The Program
|
||||||

|

|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue