Using SSE3 vector shuffel with LDC
Nicholas Wilson
iamthewilsonator at hotmail.com
Sun May 26 13:58:03 UTC 2019
On Sunday, 26 May 2019 at 12:10:30 UTC, KytoDragon wrote:
> I have been trying to port some programs to D that heavely use
> SSE instructions.
> In particular, i still need _mm_shuffle_epi8, _mm_alignr_epi8
> and _mm_aesdec_si128.
> LDC does not support the core.simd approach and ldc.simd only
> supports a few operations, including a vector shuffel with a
> fixed mask (I need a variable mask).
> So how would one go about using theese with LDC?
>
> I need to be able to:
> - consistently generate SSE instruction, even in debug builds.
> - inline the function.
>
> I have been unable to find a solution using either the simd
> package, inline asm or inline llvm-ir.
Have you seen https://github.com/AuburnSounds/intel-intrinsics ?
( see also http://dconf.org/2019/talks/piolat.html)
More information about the digitalmars-d-ldc
mailing list