[Gloucs] Fw:[Taclug-General] Linux Inline Assembly in C and C++
gloucs@mailman.lug.org.uk
gloucs at mailman.lug.org.uk
Sat Nov 2 21:26:00 2002
Here it is in C with the outer loops:
for(register long i=0;(i<BUFLEN)&&len>=sublength;i++) {
dex2=0;dex=0;
xLOOP_BEGIN:
if( dex<sublength ) {
/*
mbuff and sbuff are unsigned char arrays,
e1 e2 e0 are unsigned chars
*/
e1=(mbuff[dex]-subRange);
e2=(mbuff[dex]+subRange);
e0=(sbuff[dex2]);
/*This is what I wanted to replace*/
if((e0<=e2)&&(e0>=e1)) ;
else goto xLOOP_END;
dex++; dex2++;
goto xLOOP_BEGIN;
}//if
else
goto xLOOP_END;
xLOOP_END:
if(dex2>=sublength) {
puts("Subset found\n");
sbuff+=sublength;
len-=sublength;
r+=3;
}
else {
sbuff++;
len--;
}
}
James Smith
e-mail: james.smith31@juno.com
e-mail: code11smith007@aol.com
________________________________________________________________
Sign Up for Juno Platinum Internet Access Today
Only $9.95 per month!
Visit www.juno.com