[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: altivec: how to load a scalar.




>
>    vC = malloc(ATL_Cachelen + sizeof(float)*16);
>    ATL_assert( vC && ( ((M>>2)<<2) == M ) && ( ((N>>2)<<2) == N ) )
>    tC = ATL_AlignPtr(vC);
>
>

Just a short comment here: You can use vec_malloc to allocate 128-bit 
aligned memory.
Maybe you know that already and there is a good reason for doing the above?

-- 

Nicholas Coult, Ph.D.,  web: http://melby.augsburg.edu/~coult
Assistant Professor, Department of Mathematics, Augsburg College
coult@augsburg.edu, phone:  (612) 330-1064 office: Science Hall 137B