On Wednesday, 6 February 2019 at 07:41:25 UTC, Simen Kjærås wrote:

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

--
  Simen

The problem is that when you emulate core.simd (DMD 32-bit on Windows require that, if you want super fast OPTLINK build times), then you have no way to have user-defined implicit conversions. and magic vector types from the compiler float4 / int4 / short8 / long2 / byte16 are all implicitely convertible to each other, but I don't think we can replicate this.

Reply via email to