My operator idea

Programming, for all ages and all languages.
Post Reply
blackoil
Member
Member
Posts: 146
Joined: Mon Feb 12, 2007 4:45 am

My operator idea

Post 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
Post Reply