My operator idea
Posted: Sat Jan 05, 2008 9:05 am
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
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