Re: Fastcode CharPosRev B&V 0.6.2



"Dennis" <marianndkc@xxxxxxxxxxxxxxx> wrote in message
news:456c4421@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi John

Perhaps we should give this function another name.

function CharPosRev_JOH_IA32_4_a(SearchChar : Char; const S: string) :
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0 {All 16 Bytes of xmm0 = cl}
movdqu xmm1, [eax+edx] {Check Last 16 Chars}
pcmpeqb xmm1, xmm0
pmovmskb ecx, xmm1

What about?

function CharPosRev_JOH_SSE2_1_a(SearchChar : Char; const S: string) :


As corrected further up in this thread.

--
regards,
John

The Fastcode Project:
http://www.fastcodeproject.org/


.