C++ Logo

std-proposals

Advanced search

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

From: Thiago Macieira <thiago_at_[hidden]>
Date: Wed, 12 Apr 2023 15:42:45 -0300
On Wednesday, 12 April 2023 13:15:46 -03 samuel ammonius via Std-Proposals
wrote:
> I think a vectorized CPU would still be able to copy the elements of an
> unaligned array with the same speed though, right?

That depends on the CPU architecture, micro-architecture and generation. The
original SSE (which supported float[4]) took twice as long to perform an
unaligned load as an aligned one.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-04-12 18:42:53