S-13 - if(pqMask[iq& qMask break iLetter...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
jmp_buf jbAnagram; #define OneStep(i) \ ppwStart++; \ continue; \ } void FindAnagram(Quad * pqMask, PPWord ppwStart, int iLetter) { Quad aqNext[MAX_QUADS]; register PWord pw; Quad qMask; unsigned iq; PPWord ppwEnd = &apwCand[0]; ppwEnd += cpwCand; ; if (HaltProcessing()) longjmp(jbAnagram, 1); Debug(printf("Trying :"); DumpWord(pqMask); printf(":\n");) for (;;) { iq = alPhrase[achByFrequency[iLetter]].iq; qMask = alPhrase[achByFrequency[iLetter]].uBits << alPhrase[achByFrequency[iLetter]].uShift;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: if (pqMask[iq] & qMask) break; iLetter++; } Debug(printf("Pivoting on %c\n", i2ch(achByFrequency[iLetter]));) while (ppwStart < ppwEnd) { /* Half of the program execution */ pw = *ppwStart; /* time is spent in these three */ Stat(if (++ulLowCount == 0) ++ulHighCount;) #if MAX_QUADS > 0 OneStep(0); /* lines of code. */ #endif #if MAX_QUADS > 1 OneStep(1); #endif #if MAX_QUADS > 2 OneStep(2); #endif #if MAX_QUADS > 3 OneStep(3); #endif #if MAX_QUADS > 4 @@"Add more unrolling steps here, please."@@ #endif...
View Full Document

This note was uploaded on 12/20/2009 for the course ECE 466 taught by Professor Staff during the Fall '09 term at Clarkson University .

Page1 / 2

S-13 - if(pqMask[iq& qMask break iLetter...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online