intel-intrinsics v1.0.0

Simen Kjærås simen.kjaras at gmail.com
Wed Feb 6 07:41:25 UTC 2019


On Wednesday, 6 February 2019 at 01:05:29 UTC, Guillaume Piolat 
wrote:
> "intel-intrinsics" is a DUB package for people interested in 
> x86 performance that want neither to write assembly, nor a 
> LDC-specific snippet... and still have fastest possible code.

Neat. Question: On Github it's stated that implicit conversions 
aren't supported, with this example:

__m128i b = _mm_set1_epi32(42);
__m128 a = b;             // NO, only works in LDC

Couldn't this be solved through something like this:

struct __m128 {
     float4 value;
     alias value this;
     void opAssign(__m128i rhs) {
         value = cast(float4)rhs.value;
     }
}

--
   Simen


More information about the Digitalmars-d-announce mailing list