Skip to content

Commit

Permalink
docs: formatting and fixes
Browse files Browse the repository at this point in the history
Co-authored-by: KrystalDelusion <93062060+KrystalDelusion@users.noreply.github.com>
  • Loading branch information
widlarizer and KrystalDelusion authored Nov 6, 2024
1 parent efab718 commit 0bcb41c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/source/yosys_internals/hashing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ The hash function

The hash function generally used in Yosys is the XOR version of DJB2:

``state = ((state << 5) + state) ^ value``
::

state = ((state << 5) + state) ^ value

This is an old-school hash designed to hash ASCII characters. Yosys doesn't hash
a lot of ASCII text, but it still happens to be a local optimum due to factors
Expand Down

0 comments on commit 0bcb41c

Please sign in to comment.