February 07, 2015 Fast array copy. SIMD manual or automatic? | ||||
---|---|---|---|---|
| ||||
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 Re: Fast array copy. SIMD manual or automatic? | ||||
---|---|---|---|---|
| ||||
Posted in reply to tcak | 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.
|
Copyright © 1999-2021 by the D Language Foundation