Fast array copy. SIMD manual or automatic?

fra via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Feb 8 06:57:08 PST 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.


More information about the Digitalmars-d-learn mailing list