Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changes between Version 3 and Version 4 of PythonChallenge3da

Show
Ignore:
Author:
gim (IP: 83.29.218.119)
Timestamp:
07/25/07 13:35:30 (7 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PythonChallenge3da

    v3 v4  
    8484char lastlet; 
    8585}}} 
    86 'current' will hold actually computed 'hash' (bitmask), and 'lastlet' will hold latest letter 'in the middle'. 
     86''current'' will hold actually computed ''hash'' (bitmask), and ''lastlet'' will hold latest letter ''in the middle''. 
    8787 
    8888{{{ 
    9191        current <<= 2, current |= getcase(letter); 
    9292}}} 
    93 Precompute 'hash' for first 8 characters, by simply shifting our variable by two bits, and adding the proper bits. 
     93Precompute ''hash'' for first 8 characters, by simply shifting our variable by two bits, and adding the proper bits. 
    9494 
    95 Later process the rest of the line, remembering current 'middle letter'. Because in our hash we represent every letter as two bits we need to binary-and only the last 18 bits, that's what 0x3ffff is there for. 
     95Later process the rest of the line, remembering current ''middle letter''. Because in our hash we represent every letter as two bits we need to binary-and only the last 18 bits, that's what 0x3ffff is there for.