User Tools

Site Tools


chess:programming:de_bruijn_sequence:8-bit_example

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
chess:programming:de_bruijn_sequence:8-bit_example [2021/11/30 00:51] peterchess:programming:de_bruijn_sequence:8-bit_example [2021/11/30 00:53] (current) – [Explaining the usage of this de Bruijn sequence] peter
Line 98: Line 98:
  
   * It takes a number from 1 to 8 to lookup.   * It takes a number from 1 to 8 to lookup.
-  * It multiplies this number by 0x1D, which is 29 Decimal.+  * It multiplies this number by 0x1D, which is 29 Decimal.  This is the Magic Number.
   * It right-shifts this by 5 to determine the specific bit position of that lookup value.   * It right-shifts this by 5 to determine the specific bit position of that lookup value.
  
-^Lookup^Multiple by the Magic number^Right-shift by the offset^+^Lookup^Lookup multiple by the magic number^Right-shifted by the offset^
 ^:::^(29 in this example)^(5 in this example)^ ^:::^(29 in this example)^(5 in this example)^
 |1|29|0| |1|29|0|
chess/programming/de_bruijn_sequence/8-bit_example.1638233475.txt.gz · Last modified: 2021/11/30 00:51 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki