C++ Logo


Advanced search

Re: [std-proposals] SIMD by just operating on 2 arrays

From: samuel ammonius <sfammonius_at_[hidden]>
Date: Wed, 12 Apr 2023 12:47:27 -0230
On Wed, Apr 12, 2023 at 12:39 PM bmon Dor via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> I think it is a bad idea to do so.
We need a clear syntax to know if the SIMD would be applied.

I think a function would be overkill though. It's just multiple adding or
subtracting happening at the same time, so it would be like having a
function for adding 2 floats and a function for adding 2 ints and so on.
And most compilers already optimize SIMD into a lot of situations, so the
cases where SIMD is used don't have to be obvious.

Received on 2023-04-12 15:17:40