[PATCH] bitops: use safer link explaining the algorithm
Wolfram Sang
wsa+renesas at sang-engineering.com
Sat Jan 25 05:01:55 PST 2025
During review, a concern was raised that the link explaining the
algorithm might get stale. Meanwhile, the site has been archived in the
WayBack machine. So, use their link which is hopefully more stable.
Fixes: c320592f3f2a ("bitops: add generic parity calculation for u8")
Signed-off-by: Wolfram Sang <wsa+renesas at sang-engineering.com>
---
The original patch went upstream via I3C. Yury, do you want to take this
fixup or shall it also go via I3C?
include/linux/bitops.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/bitops.h b/include/linux/bitops.h
index c1cb53cf2f0f..dde4ad0034ae 100644
--- a/include/linux/bitops.h
+++ b/include/linux/bitops.h
@@ -254,7 +254,7 @@ static inline int parity8(u8 val)
{
/*
* One explanation of this algorithm:
- * https://funloop.org/codex/problem/parity/README.html
+ * http://web.archive.org/web/20250105093316/https://funloop.org/codex/problem/parity/README.html
*/
val ^= val >> 4;
return (0x6996 >> (val & 0xf)) & 1;
--
2.45.2
More information about the linux-i3c
mailing list