From 4ecb3117981d19c20589e2c4d32f9626593b7f4a Mon Sep 17 00:00:00 2001 From: Zsolt Felfoldi Date: Sun, 6 Oct 2024 22:57:48 +0200 Subject: [PATCH] core/filtermaps: fixed comment --- core/filtermaps/math.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/filtermaps/math.go b/core/filtermaps/math.go index ca6d01c08c..c629409048 100644 --- a/core/filtermaps/math.go +++ b/core/filtermaps/math.go @@ -174,8 +174,8 @@ func (p potentialMatches) Less(i, j int) bool { return p[i] < p[j] } func (p potentialMatches) Swap(i, j int) { p[i], p[j] = p[j], p[i] } // uint32ModInverse takes an odd 32 bit number and returns its modular -// multiplicative inverse (mod 2**32), meaning that for any uint32 x and odd y -// x * y * uint32ModInverse(y) == 1. +// multiplicative inverse (mod 2**32), meaning that for any odd uint32 value v +// uint32(v * uint32ModInverse(v)) == 1. func uint32ModInverse(v uint32) uint32 { if v&1 == 0 { panic("uint32ModInverse called with even argument")