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 ) );
Pinned topic convert from vector float to vector double
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2010-07-03T10:45:17Z at 2010-07-03T10:45:17Z by SystemAdmin
SystemAdmin 110000D4XK10114 Posts
Re: convert from vector float to vector double2010-07-03T10:45:17ZThis is the accepted answer. This is the accepted answer.you can extend the vector by spu_extend intrinsic.