infuzion ·
Eska here wrote: RNDINT streamin w; streamout int; float temp; temp=w+8.38861e+006; int=temp-8.38861e+006;
It works sometimes OK, but Rounds-to-even (banker's rounding). And it doesn't round off every other correctly either: 2.5 rounds to 2, but -2.5 becomes -2.5! 🙁
So, here is what I got: ASM seems more readable to me 🙂 streamin in;streamout int; float rounder=8388611; movaps xmm0,in; addps xmm0,rounder; subps xmm0,rounder; movaps int,xmm0; If Fabb or someone else could please give feedback or extra tips, that would be great. cheers