3 ms·
Yeah, SIMD is being very actively worked on; until then, you can link in an external assembly file, but that's not exactly the best UX.
by steveklabnik 9y ago
Yeah, SIMD is being very actively worked on; until then, you can link in an external assembly file, but that's not exactly the best UX.
- Const-me 9y agoYep, assembly’s not the best UX. When you’re coding assembly, you have to code everything in it, including code running on the scalar parts of CPU cores. With intrinsics you can code these parts the usual way, e.g. for( size_t i=0; … ) With intrinsics you can even compose your vectorized code the usual way, VC and Clang have __vectorcall calling convention for that, Intel has very similar __attribute__((regcall)).
- steveklabnik 9y agoYup, absolutely. My understanding is that an RFC is currently being written, so it's gonna be a little while to get into stable, but not forever. We'd have liked to have had it sooner, but some stuff happened, that's just how it goes sometimes.