From 1401906d8122b09e40c174167432ce36bddc63e7 Mon Sep 17 00:00:00 2001 From: Emil J Date: Thu, 7 Nov 2024 00:26:01 +0100 Subject: [PATCH] docs: formatting and fixes Co-authored-by: KrystalDelusion <93062060+KrystalDelusion@users.noreply.github.com> --- docs/source/yosys_internals/hashing.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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