--- Comment #3 from pinskia at gcc dot gnu dot org 2006-11-18 11:17 ---
(In reply to comment #2)
> Thanks for the hint! Assembly looks ok right now - didn't expect that this
> kind
> of casting would work (it doesn't in msvc compilers). Anyway it would be nice
> if the compiler would de
--- Comment #2 from spd at poczta dot fm 2006-11-18 10:25 ---
(In reply to comment #1)
> The problem here I think is unions.
>
> Here is how I would have written this code (without using unions in fact):
>
> void array_sample_fun(__m128 *dst, const __m128 *src, int length) {
>
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-11-18 00:14 ---
The problem here I think is unions.
Here is how I would have written this code (without using unions in fact):
void array_sample_fun(__m128 *dst, const __m128 *src, int length) {
__m128 af = _mm_set1_ps(1.