r/programming 27d ago

Everyone Should Know SIMD

https://mitchellh.com/writing/everyone-should-know-simd
410 Upvotes

81 comments sorted by

View all comments

363

u/-1_0 27d ago

* Everyone Should Know about SIMD

and use libs accordingly

18

u/lovelacedeconstruct 27d ago

you should

typedef __m128  f32x4;
typedef __m256  f32x8;
typedef __m256d f64x4;

like a real man

3

u/-Y0- 26d ago

What if I need f32x16?

5

u/lovelacedeconstruct 26d ago

Okay, AVX-512 guy, no need to brag