This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH 0/2] Loop distribution for memset zero
On Sat, 31 Jul 2010, Sebastian Pop wrote:
> > as we probably want to add memcpy or array sin/cos operations as well
> > here.
> I can imagine the memcpy pattern, but could you please provide an
> example for sin/cos patterns?
Some math libraries (the one from AMD at least for instance) provide not
only vectorized intrinsics for a fixed vector size (e.g. 4 float
elements), but also for a generic arbitrarily sized array.
void vrsa_expf(int n, float *src, float *dest);
is equivalent to:
for (i = 0; i < n; i++)
dest[i] = expf (src[i]);