Page 1 of 1

My operator idea

Posted: Sat Jan 05, 2008 9:05 am
by blackoil
Hi, I have own private C-like compiler, output assembly code.
For easy SIMD program, I have such an idea. Is it nice?

#operator CVTPS2PI ( packed float , packed int )

void main()
{
packed float f;
packed int i;

i=CVTPS2PI(f);
}

;output assembly code
movaps xmm0,[f]
cvtps2pi xmm1,xmm0
movd ,xmm1