4 ms·
I would argue that learning the 'basics' of intrinsic is less of a burden than learning a new C extension and modifying your existing code base to include addit
by fsaintjacques 10y ago
I would argue that learning the 'basics' of intrinsic is less of a burden than learning a new C extension and modifying your existing code base to include additional new build tools.
OTOH, I like the idea of automatic lane width detection.
- CyberDildonics 10y agoI've learned ISPC and didn't find it too difficult. It largely boils down to the varying and uniform keywords along with one more loop syntax. I've looked into intrinsics and I'm extremely skeptical that there is much benefit there other than to play with the actual CPU instructions. ISPC produces tiny .o | .obj files and a header file, the integration has not been a hurdle that I can remember.
- scott_s 10y agoBased on my understanding of both, learning the new C extensions would be easier than using the intrinsics. Whatever concepts you need to understand the new C extensions (which are limited to type modifiers and a few new control-flow modifiers) you will also need to understand to use the intrinsics. However, I agree that having another dependency in your build may be more of a problem.