Re: GCC Vector Extensions

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

 



Hi Christian,

I believe the...
  const v4i vRes = (v4i) v;
...will do a memcpy, not a float to int conversion.

If you change it to...
  const v4i vRes = v;
... you get error: cannot convert 'const float __vector__' to 'const int
__vector__' in initialization

I think your big hammer cast is hiding the problem.  Your %d output is the
int32 values of the bit patterns of the float32 values.

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux