SSE SIMD Optimization For Loop
Posted
by Projectile Fish
on Stack Overflow
See other posts from Stack Overflow
or by Projectile Fish
Published on 2010-05-27T03:39:39Z
Indexed on
2010/05/27
3:41 UTC
Read the original article
Hit count: 339
I have some code in a loop
for(int i = 0; i < n; i++)
{
u[i] = c * u[i] + s * b[i];
}
So, u and b are vectors of the same length, and c and s are scalars. Is this code a good candidate for vectorization for use with SSE in order to get a speedup?
© Stack Overflow or respective owner