On Friday, 8 May 2020 at 13:11:02 UTC, Guillaume Piolat wrote:
On Friday, 8 May 2020 at 12:38:51 UTC, Marcio Martins wrote:
How would I go about calling _mm_* functions in D in a way
that is portable between D compilers?
Hello,
I've made this library for that exact purpose:
https://github.com/AuburnSounds/intel-intrinsics
Supports every intrinsic listed under MMX/SSE/SSE2/SSE3 in
https://software.intel.com/sites/landingpage/IntrinsicsGuide/
I saw the intel-intrinsics package, but unfortunately it stops at
SEE3 and I need SSE4.2 for this.
How is this library working? Will LDC/LLVM detect the name and
replace it with the right instructions? If so, could I just
provide an empty _mm_crc32_u8 and it'd pick it up correctly?
Thanks guys!