[Mono-dev] Mono simd problems

crashfourit crashfourit at gmail.com
Tue Dec 30 13:54:27 EST 2008


I have found some problems in mono.simd in 2.2 RC3. Vector4f.Shuffle(v,
ShuffleSel.ExpandX) with non zero values in X and I get all zeros as a
result. I checked it out and .Net does not have this problem. So, my
conclusion is has to do something with the jit engine.

that and :
fixed (Matrix4x4 *m = &this) {
Vector4f *f = (Vector4f*) m;
        		r0 = *f++;
		        r1 = *f++;
		        r2 = *f++;
		        r3 = *f;
}

Does work on .net and not in 2.2 rc3; to get it to work I had to do this:
fixed (Matrix4x4 *m = &this) {
r0 = *((Vector4f*) m);
        		r1 = *((Vector4f*) &(*m).m10);
        		r2 = *((Vector4f*) &(*m).m20);
        		r3 = *((Vector4f*) &(*m).m30);
}

Oh, and it would be nice to have Vector4f and the like to override
ToString() for debugging purposes.
-- 
View this message in context: http://www.nabble.com/Mono-simd-problems-tp21221527p21221527.html
Sent from the Mono - Dev mailing list archive at Nabble.com.



More information about the Mono-devel-list mailing list