diff --git a/docs/source/yosys_internals/hashing.rst b/docs/source/yosys_internals/hashing.rst index 32c4453c8..372be05ec 100644 --- a/docs/source/yosys_internals/hashing.rst +++ b/docs/source/yosys_internals/hashing.rst @@ -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