Topic
  • 2 replies
  • Latest Post - ‏2010-07-03T10:45:17Z by SystemAdmin
lqcd
lqcd
16 Posts

Pinned topic convert from vector float to vector double

‏2010-06-29T14:40:48Z |
How to convert a float stored in element 0 of a vector float to a vector double with element 0 set to this value. Element 1 of resulting vector double not of importance.

Seeking for a reverse function of spu_roundtf();

There must be a more efficient way than this:

vector float f;
vector double d = spu_splats( spu_extract( f , 0 ) );

Frank
Updated on 2010-07-03T10:45:17Z at 2010-07-03T10:45:17Z by SystemAdmin