February 07, 2015
I have two char arrays at the size of 16KB. I will copy a part of data between them again and again.

arrayA[0 .. dataLen] = arrayB[0 .. dataLen];


Does the compiler generate code that uses SIMD operations (128-bits memory copy) automatically, or do I need to do anything special for this?
February 08, 2015
On Saturday, 7 February 2015 at 06:30:32 UTC, tcak wrote:
> I have two char arrays at the size of 16KB. I will copy a part of data between them again and again.
>
> arrayA[0 .. dataLen] = arrayB[0 .. dataLen];
>
>
> Does the compiler generate code that uses SIMD operations (128-bits memory copy) automatically, or do I need to do anything special for this?

Does SIMD even matter anything when it comes to copying? I was sure it was just about moving data into SIMD registers for later operation on that.