






Moderators: electrogear, exonerate



hansdump wrote:Nice Tutorial. Newbies will be happy!!
H.



Nu Audio Science wrote:You know what i just done some heavy duty tests and to be honest i wish i had kept the coded versions over the ASM versions for some of my plugs because compiled the ASM is using significantly more CPU than the ASM
And that is a straight 1:1 code to ASM comparison
If i can find the coded versions in an older save on my drive i will put together a comparison OSM but i have to be honest at this point i dont think the 1:1 code to ASM thing is of any use at all
I would guess you need to heavily optomise the ASM once copied to even get close to the straight code in these examples
NAS
. Yes. Code to ASm 1:1 doesnt do anything. Not that I know of. Its not until you start optimizing it that you see the gains.
streamin in;
streamout out;
float smIntVarTemp=0.0;
int smIntVarArrayIndex=0;
float smIntVarZero=0;
float arymax=255;
float n=0;
float acum=0;
float in2=0;
float F0=0;
float F256=256;
float F1=1;
float ary[256];
movaps xmm3,F0;
movaps xmm7,in;
mulps xmm7,xmm7;
movaps in2,xmm7;
addps xmm7,acum;
movaps xmm6,n;
maxps xmm6,smIntVarZero;
minps xmm6,arymax;
cvtps2dq xmm6,xmm6;
movaps smIntVarArrayIndex,xmm6;
push eax;
mov eax,smIntVarArrayIndex[0];
shl eax,4;
fld ary[eax];
fstp smIntVarTemp[0];
movaps xmm1,smIntVarTemp;
pop eax;
subps xmm7,xmm1;
maxps xmm7,xmm3;
movaps acum,xmm7;
movaps xmm4,n;
maxps xmm4,smIntVarZero;
minps xmm4,arymax;
cvtps2dq xmm4,xmm4;
movaps smIntVarArrayIndex,xmm4;
push eax;
mov eax,smIntVarArrayIndex[0];
shl eax,4;
fld in2[0];
fstp ary[eax];
pop eax;
divps xmm7,F256;
movaps xmm0,n;
addps xmm0,F1;
movaps n,xmm0;
mov eax,ecx;
and eax,255;
cmp eax,0;
jnz end0;
movaps n,xmm3;
end0:
sqrtps xmm1,xmm7;
movaps out,xmm1;Maybe acum/256 = aculm*(1/256)?aliasant wrote:Here is the Mono RMS code. Maybe someone can optimize it even further?
- Code: Select all
...
divps xmm7,F256;...

MyCo wrote:@aliasant: in the code you removed the other 3 SSE channels, so it won't work on a polyphone system

MyCo wrote:damn... haven't read it... too much text

Users browsing this forum: No registered users and 2 guests